|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.edg.data.reptor.storage.FileHandleSRMImpl
Castor SRM file handle
Constructor Summary | |
FileHandleSRMImpl(java.net.URI file,
org.cern.srm.ISRM endpoint)
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 FileHandleSRMImpl(java.net.URI file, org.cern.srm.ISRM endpoint)
file
- the URI of the file to construct the handle ofMethod 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()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |