|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.edg.data.reptor.storage.FileHandleGridFTPImpl
FileHandleGridFTPImpl is an implementation of the FileHandle interface based upon the CoG service using the gsiftp protocol.
Constructor Summary | |
FileHandleGridFTPImpl(java.net.URI uri,
Configuration config)
Constructs a new FileHandleGridFTPImpl based on the given uri |
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()
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public FileHandleGridFTPImpl(java.net.URI uri, Configuration config) throws FileHandleException
uri
- the URI pointing to the file
FileHandleException
- if the globus FTP client cannot be constructedMethod 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()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |