|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.edg.data.reptor.storage.FileHandleLocalImpl
FileHandleLocalImpl is the implementation of FileHandle for files available on a local file system based on the java.io.File class.
Constructor Summary | |
FileHandleLocalImpl(java.net.URI uri)
Constructs a new FileHandleLocalImpl |
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()
Return the URI of the file. |
java.lang.String[] |
list()
List the file. |
void |
mkdirs()
Creates all necessary dirs for the file. |
java.lang.String |
toString()
Returns a string representation of the FileHandle. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public FileHandleLocalImpl(java.net.URI uri) throws org.edg.data.util.InvalidFileTypeException, InvalidFileNameException
uri
- the URI pointing to the file
org.edg.data.util.InvalidFileTypeException
- if the file identified by the URI is not local.
InvalidFileNameException
- if the file uri is not legal for some reasonMethod Detail |
public void delete() throws FileHandleException
delete
in interface FileHandle
FileHandleException
- if an error during the delete occurs.public java.lang.String[] list() throws FileHandleException
list
in interface FileHandle
FileHandleException
- if an error during the delete occurs.public boolean exists() throws FileHandleException
exists
in interface FileHandle
FileHandleException
- if an error during the inquiry occurs.public java.net.URI getURI()
getURI
in interface FileHandle
public FileInfo getFileInfo() throws FileHandleException, java.io.FileNotFoundException
FileHandle
getFileInfo
in interface FileHandle
FileHandleException
java.io.FileNotFoundException
FileHandle.getFileInfo()
public void mkdirs() throws FileHandleException
mkdirs
in interface FileHandle
FileHandleException
- if the creation failspublic java.lang.String toString()
toString
in class java.lang.Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |