|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.edg.data.reptor.storage.FileHandleCastorSRMImpl
Castor SRM file handle
Constructor Summary | |
FileHandleCastorSRMImpl(java.net.URI file,
Configuration config)
Constructor. |
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. |
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 FileHandleCastorSRMImpl(java.net.URI file, Configuration config) throws FileHandleException, NotCastorSRMException, InfoServiceException, StorageResourceException
file
- the URI of the file to construct the handle ofconfig
- the configuration object
FileHandleException
NotCastorSRMException
InfoServiceException
StorageResourceException
Method Detail |
public void delete() throws FileHandleException
FileHandle
delete
in interface FileHandle
FileHandleException
- if an error during the delete occurs.FileHandle.delete()
public boolean exists() throws FileHandleException
FileHandle
exists
in interface FileHandle
FileHandleException
- if an error during the inquiry occurs.FileHandle.exists()
public java.lang.String[] list() throws FileHandleException
FileHandle
list
in interface FileHandle
FileHandleException
- if an error during the delete occurs.public FileInfo getFileInfo() throws FileHandleException, java.io.FileNotFoundException
FileHandle
getFileInfo
in interface FileHandle
FileHandleException
java.io.FileNotFoundException
FileHandle.getFileInfo()
public void mkdirs() throws FileHandleException
FileHandle
mkdirs
in interface FileHandle
FileHandleException
- if the creation failsFileHandle.mkdirs()
public java.net.URI getURI()
FileHandle
getURI
in interface FileHandle
public 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 |