org.codehaus.groovy.runtime
Class WritableFile

java.lang.Object
  extended byjava.io.File
      extended byorg.codehaus.groovy.runtime.WritableFile
All Implemented Interfaces:
Comparable, Serializable, Writable

public class WritableFile
extends File
implements Writable

A Writable File.

Author:
John Wilson
See Also:
Serialized Form

Field Summary
 
Fields inherited from class java.io.File
pathSeparator, pathSeparatorChar, separator, separatorChar
 
Constructor Summary
WritableFile(File delegate)
           
WritableFile(File delegate, String encoding)
           
 
Method Summary
 boolean canRead()
           
 boolean canWrite()
           
 int compareTo(File arg0)
           
 int compareTo(Object arg0)
           
 boolean createNewFile()
           
 boolean delete()
           
 void deleteOnExit()
           
 boolean equals(Object arg0)
           
 boolean exists()
           
 File getAbsoluteFile()
           
 String getAbsolutePath()
           
 File getCanonicalFile()
           
 String getCanonicalPath()
           
 String getName()
           
 String getParent()
           
 File getParentFile()
           
 String getPath()
           
 int hashCode()
           
 boolean isAbsolute()
           
 boolean isDirectory()
           
 boolean isFile()
           
 boolean isHidden()
           
 long lastModified()
           
 long length()
           
 String[] list()
           
 String[] list(FilenameFilter arg0)
           
 File[] listFiles()
           
 File[] listFiles(FileFilter arg0)
           
 File[] listFiles(FilenameFilter arg0)
           
 boolean mkdir()
           
 boolean mkdirs()
           
 boolean renameTo(File arg0)
           
 boolean setLastModified(long arg0)
           
 boolean setReadOnly()
           
 String toString()
           
 URI toURI()
           
 URL toURL()
           
 Writer writeTo(Writer out)
          writes this object to the given stream
 
Methods inherited from class java.io.File
createTempFile, createTempFile, listRoots
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

WritableFile

public WritableFile(File delegate)

WritableFile

public WritableFile(File delegate,
                    String encoding)
Method Detail

writeTo

public Writer writeTo(Writer out)
               throws IOException
Description copied from interface: Writable
writes this object to the given stream

Specified by:
writeTo in interface 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-2005 The Codehaus. All Rights Reserved.