|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.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()
exists
in interface FileHandle
public java.lang.String[] list()
list
in interface FileHandle
public java.net.URI getURI()
getURI
in interface FileHandle
public FileInfo getFileInfo()
FileHandle
getFileInfo
in interface FileHandle
FileHandle.getFileInfo()
public void mkdirs()
mkdirs
in interface FileHandle
public java.lang.String toString()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |