org.codehaus.groovy.runtime
Class WritableFile
java.lang.Object
java.io.File
org.codehaus.groovy.runtime.WritableFile
- All Implemented Interfaces:
- Comparable, Serializable, groovy.lang.Writable
- public class WritableFile
- extends File
- implements groovy.lang.Writable
A Writable File.
- Author:
- John Wilson
- See Also:
- Serialized Form
WritableFile
public WritableFile(File delegate)
WritableFile
public WritableFile(File delegate,
String encoding)
writeTo
public Writer writeTo(Writer out)
throws IOException
- Description copied from interface:
groovy.lang.Writable
- writes this object to the given stream
- Specified by:
writeTo
in interface groovy.lang.Writable
- Throws:
IOException
canRead
public boolean canRead()
canWrite
public boolean canWrite()
compareTo
public int compareTo(File arg0)
compareTo
public int compareTo(Object arg0)
- Specified by:
compareTo
in interface Comparable
createNewFile
public boolean createNewFile()
throws IOException
- Throws:
IOException
delete
public boolean delete()
deleteOnExit
public void deleteOnExit()
equals
public boolean equals(Object arg0)
exists
public boolean exists()
getAbsoluteFile
public File getAbsoluteFile()
getAbsolutePath
public String getAbsolutePath()
getCanonicalFile
public File getCanonicalFile()
throws IOException
- Throws:
IOException
getCanonicalPath
public String getCanonicalPath()
throws IOException
- Throws:
IOException
getName
public String getName()
getParent
public String getParent()
getParentFile
public File getParentFile()
getPath
public String getPath()
hashCode
public int hashCode()
isAbsolute
public boolean isAbsolute()
isDirectory
public boolean isDirectory()
isFile
public boolean isFile()
isHidden
public boolean isHidden()
lastModified
public long lastModified()
length
public long length()
list
public String[] list()
list
public String[] list(FilenameFilter arg0)
listFiles
public File[] listFiles()
listFiles
public File[] listFiles(FileFilter arg0)
listFiles
public File[] listFiles(FilenameFilter arg0)
mkdir
public boolean mkdir()
mkdirs
public boolean mkdirs()
renameTo
public boolean renameTo(File arg0)
setLastModified
public boolean setLastModified(long arg0)
setReadOnly
public boolean setReadOnly()
toString
public String toString()
toURI
public URI toURI()
toURL
public URL toURL()
throws MalformedURLException
- Throws:
MalformedURLException
Copyright © 2003-2004 The Codehaus. All Rights Reserved.