|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.edg.data.reptor.storage.FileHandleURIImpl
FileHandleURIImpl is a dummy implementation of FileHandle that has only the function to convert a URI into a globus URI. All the other methods are unimplemented. This handle is used to invoke FileCopier with HTTP, HTTPS and FTP protocols. Only these three file types are supported.
Constructor Summary | |
FileHandleURIImpl(java.net.URI uri)
Constructs a new FileHandleURIImpl |
Method Summary | |
void |
delete()
Deletes the file. |
boolean |
exists()
Check if the file exists |
FileInfo |
getFileInfo()
Returns details about this file. |
long |
getFilesize()
Returns the filesize. |
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 FileHandleURIImpl(java.net.URI uri) throws InvalidFileNameException
uri
- the URI pointing to the file
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 long getFilesize() throws FileHandleException
FileHandleException
- if an error during evaluating the filesize occurs.public boolean exists() throws FileHandleException
exists
in interface FileHandle
FileHandleException
- if an error during the inquiry occurs.public java.lang.String[] list() throws FileHandleException
list
in interface FileHandle
FileHandleException
- if an error during the delete occurs.public java.net.URI getURI()
getURI
in interface FileHandle
public FileInfo getFileInfo() throws FileHandleException
FileHandle
getFileInfo
in interface FileHandle
FileHandleException
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 |