|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
FileHandle is the Interface that defines file based actions.
Method Summary | |
void |
delete()
Deletes the file. |
boolean |
exists()
Check if the file exists. |
FileInfo |
getFileInfo()
Returns details about this file. |
java.net.URI |
getURI()
Returns the URI. |
java.lang.String[] |
list()
List the file. |
void |
mkdirs()
Creates all necessary dirs for the file. |
Method Detail |
public void delete() throws FileHandleException
FileHandleException
- if an error during the delete occurs.public java.lang.String[] list() throws FileHandleException
FileHandleException
- if an error during the delete occurs.public boolean exists() throws FileHandleException, java.lang.SecurityException
FileHandleException
- if an error during the inquiry occurs.
java.lang.SecurityException
public void mkdirs() throws FileHandleException
FileHandleException
- if the creation failspublic FileInfo getFileInfo() throws FileHandleException, java.io.FileNotFoundException
FileHandleException
java.io.FileNotFoundException
public java.net.URI getURI()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |