alt.java.io

Interface File

Known Implementing Classes:
FileImpl, MockFile

public interface File

Method Summary

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

Method Details

canRead

public boolean canRead()

canWrite

public boolean canWrite()

compareTo

public int compareTo(Object o)

compareTo

public int compareTo(File pathname)

createNewFile

public boolean createNewFile()
            throws IOException

createTempFile

public File createTempFile(String prefix,
                           String suffix)
            throws IOException

createTempFile

public File createTempFile(String prefix,
                           String suffix,
                           File directory)
            throws IOException

delete

public boolean delete()

deleteOnExit

public void deleteOnExit()

exists

public boolean exists()

getAbsoluteFile

public File getAbsoluteFile()

getAbsolutePath

public String getAbsolutePath()

getCanonicalFile

public File getCanonicalFile()
            throws IOException

getCanonicalPath

public String getCanonicalPath()
            throws IOException

getName

public String getName()

getParent

public String getParent()

getParentFile

public File getParentFile()

getPath

public String getPath()

getRealFile

public java.io.File getRealFile()

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 filter)

listFiles

public File[] listFiles()

listFiles

public File[] listFiles(FileFilter filter)

listFiles

public File[] listFiles(FilenameFilter filter)

listRoots

public File[] listRoots()

mkdir

public boolean mkdir()

mkdirs

public boolean mkdirs()

renameTo

public boolean renameTo(File dest)

setLastModified

public boolean setLastModified(long time)

setReadOnly

public boolean setReadOnly()

toURL

public URL toURL()
            throws MalformedURLException

Copyright © 2002 Mock Objects. All Rights Reserved.