alt.java.io
Interface File

All Known Implementing Classes:
FileImpl, MockFile

public interface File


Method Summary
 boolean canRead()
           
 boolean canWrite()
           
 int compareTo(File pathname)
           
 int compareTo(java.lang.Object o)
           
 boolean createNewFile()
           
 File createTempFile(java.lang.String prefix, java.lang.String suffix)
           
 File createTempFile(java.lang.String prefix, java.lang.String suffix, File directory)
           
 boolean delete()
           
 void deleteOnExit()
           
 boolean exists()
           
 File getAbsoluteFile()
           
 java.lang.String getAbsolutePath()
           
 File getCanonicalFile()
           
 java.lang.String getCanonicalPath()
           
 java.lang.String getName()
           
 java.lang.String getParent()
           
 File getParentFile()
           
 java.lang.String getPath()
           
 java.io.File getRealFile()
           
 boolean isAbsolute()
           
 boolean isDirectory()
           
 boolean isFile()
           
 boolean isHidden()
           
 long lastModified()
           
 long length()
           
 java.lang.String[] list()
           
 java.lang.String[] list(java.io.FilenameFilter filter)
           
 File[] listFiles()
           
 File[] listFiles(java.io.FileFilter filter)
           
 File[] listFiles(java.io.FilenameFilter filter)
           
 File[] listRoots()
           
 boolean mkdir()
           
 boolean mkdirs()
           
 boolean renameTo(File dest)
           
 boolean setLastModified(long time)
           
 boolean setReadOnly()
           
 java.net.URL toURL()
           
 

Method Detail

getName

public java.lang.String getName()

getParent

public java.lang.String getParent()

getParentFile

public File getParentFile()

getPath

public java.lang.String getPath()

isAbsolute

public boolean isAbsolute()

getAbsolutePath

public java.lang.String getAbsolutePath()

getAbsoluteFile

public File getAbsoluteFile()

getCanonicalPath

public java.lang.String getCanonicalPath()
                                  throws java.io.IOException
Throws:
java.io.IOException

getCanonicalFile

public File getCanonicalFile()
                      throws java.io.IOException
Throws:
java.io.IOException

toURL

public java.net.URL toURL()
                   throws java.net.MalformedURLException
Throws:
java.net.MalformedURLException

canRead

public boolean canRead()

canWrite

public boolean canWrite()

exists

public boolean exists()

isDirectory

public boolean isDirectory()

isFile

public boolean isFile()

isHidden

public boolean isHidden()

lastModified

public long lastModified()

length

public long length()

createNewFile

public boolean createNewFile()
                      throws java.io.IOException
Throws:
java.io.IOException

delete

public boolean delete()

deleteOnExit

public void deleteOnExit()

list

public java.lang.String[] list()

list

public java.lang.String[] list(java.io.FilenameFilter filter)

listFiles

public File[] listFiles()

listFiles

public File[] listFiles(java.io.FilenameFilter filter)

listFiles

public File[] listFiles(java.io.FileFilter filter)

mkdir

public boolean mkdir()

mkdirs

public boolean mkdirs()

renameTo

public boolean renameTo(File dest)

setLastModified

public boolean setLastModified(long time)

setReadOnly

public boolean setReadOnly()

compareTo

public int compareTo(File pathname)

compareTo

public int compareTo(java.lang.Object o)

getRealFile

public java.io.File getRealFile()

createTempFile

public File createTempFile(java.lang.String prefix,
                           java.lang.String suffix,
                           File directory)
                    throws java.io.IOException
Throws:
java.io.IOException

createTempFile

public File createTempFile(java.lang.String prefix,
                           java.lang.String suffix)
                    throws java.io.IOException
Throws:
java.io.IOException

listRoots

public File[] listRoots()


Copyright © 2002 Mock Objects. All Rights Reserved.