alt.java.io
Interface File
- All Known Implementing Classes:
- FileImpl, MockFile
public interface File
getName
java.lang.String getName()
getParent
java.lang.String getParent()
getParentFile
File getParentFile()
getPath
java.lang.String getPath()
isAbsolute
boolean isAbsolute()
getAbsolutePath
java.lang.String getAbsolutePath()
getAbsoluteFile
File getAbsoluteFile()
getCanonicalPath
java.lang.String getCanonicalPath()
throws java.io.IOException
- Throws:
java.io.IOException
getCanonicalFile
File getCanonicalFile()
throws java.io.IOException
- Throws:
java.io.IOException
toURL
java.net.URL toURL()
throws java.net.MalformedURLException
- Throws:
java.net.MalformedURLException
canRead
boolean canRead()
canWrite
boolean canWrite()
exists
boolean exists()
isDirectory
boolean isDirectory()
isFile
boolean isFile()
isHidden
boolean isHidden()
lastModified
long lastModified()
length
long length()
createNewFile
boolean createNewFile()
throws java.io.IOException
- Throws:
java.io.IOException
delete
boolean delete()
deleteOnExit
void deleteOnExit()
list
java.lang.String[] list()
list
java.lang.String[] list(java.io.FilenameFilter filter)
listFiles
File[] listFiles()
listFiles
File[] listFiles(java.io.FilenameFilter filter)
listFiles
File[] listFiles(java.io.FileFilter filter)
mkdir
boolean mkdir()
mkdirs
boolean mkdirs()
renameTo
boolean renameTo(File dest)
setLastModified
boolean setLastModified(long time)
setReadOnly
boolean setReadOnly()
compareTo
int compareTo(File pathname)
compareTo
int compareTo(java.lang.Object o)
getRealFile
java.io.File getRealFile()
createTempFile
File createTempFile(java.lang.String prefix,
java.lang.String suffix,
File directory)
throws java.io.IOException
- Throws:
java.io.IOException
createTempFile
File createTempFile(java.lang.String prefix,
java.lang.String suffix)
throws java.io.IOException
- Throws:
java.io.IOException
listRoots
File[] listRoots()
Copyright © 2002 Mock Objects. All Rights Reserved.