|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface FileInterface
Method Summary | |
---|---|
boolean |
canRead()
Returns a boolean indicating whether or not a readable file exists. |
boolean |
canWrite()
Returns a boolean indicating whether or not a writable file exists. |
boolean |
delete()
Deletes the specified file. |
boolean |
exists()
Returns a boolean indicating whether or not a file exists. |
java.lang.String |
getAbsolutePath()
Gets the absolute path of the file. |
java.lang.String |
getName()
Gets the name of the file. |
java.lang.String |
getParent()
Gets the name of the parent directory. |
java.lang.String |
getPath()
Gets the path of the file. |
boolean |
isAbsolute()
Returns a boolean indicating whether the file name is absolute. |
boolean |
isDirectory()
Returns a boolean indicating whether or not a directory file exists. |
boolean |
isFile()
Returns a boolean indicating whether or not a normal file exists. |
long |
lastModified()
Returns the last modification time. |
long |
length()
Returns the length of the file. |
java.lang.String[] |
list()
Lists the files in a directory. |
java.lang.String[] |
list(java.io.FilenameFilter filter)
Uses the specified filter to list files in a directory. |
boolean |
mkdir()
Creates a directory and returns a boolean indicating the success of the creation. |
boolean |
mkdirs()
Creates all directories in this path. |
boolean |
renameTo(java.io.File dest)
Renames a file and returns a boolean indicating whether or not this method was successful. |
Method Detail |
---|
java.lang.String getName()
java.lang.String getPath()
java.lang.String getAbsolutePath()
java.lang.String getParent()
boolean exists()
boolean canWrite()
boolean canRead()
boolean isFile()
boolean isDirectory()
boolean isAbsolute()
long lastModified()
long length()
boolean mkdir()
boolean renameTo(java.io.File dest)
dest
- the new file nameboolean mkdirs()
java.lang.String[] list()
java.lang.String[] list(java.io.FilenameFilter filter)
filter
- the filter used to select file names
FilenameFilter
boolean delete()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |