alt.java.io
Interface File
- All Known Implementing Classes:
- FileImpl, MockFile
- public interface File
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.