|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectdk.netarkivet.common.distribute.FileRemoteFile
public class FileRemoteFile
A file represented as a RemoteFile. To avoid transferring data to and from a remote machine, when you now, that recipient is a local process. The file is deleted during cleanup.
Constructor Summary | |
---|---|
FileRemoteFile(java.io.File dataFile)
|
Method Summary | |
---|---|
void |
appendTo(java.io.OutputStream out)
Write the contents of this remote file to an output stream. |
void |
cleanup()
Cleanup this remote file. |
void |
copyTo(java.io.File destFile)
Copy remotefile to local disk storage. |
java.lang.String |
getChecksum()
Returns a MD5 Checksum on the file. |
java.io.InputStream |
getInputStream()
Get an inputstream that contains the data transferred in this RemoteFile. |
java.lang.String |
getName()
Return the file name. |
long |
getSize()
Returns the total size of the remote file. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public FileRemoteFile(java.io.File dataFile)
Method Detail |
---|
public void copyTo(java.io.File destFile)
RemoteFile
copyTo
in interface RemoteFile
destFile
- local Filepublic void appendTo(java.io.OutputStream out)
RemoteFile
appendTo
in interface RemoteFile
out
- OutputStream that the data will be written to. This stream
will not be closed by this operation.public java.io.InputStream getInputStream()
RemoteFile
getInputStream
in interface RemoteFile
public java.lang.String getName()
RemoteFile
getName
in interface RemoteFile
public java.lang.String getChecksum()
RemoteFile
getChecksum
in interface RemoteFile
public void cleanup()
RemoteFile
cleanup
in interface RemoteFile
public long getSize()
RemoteFile
getSize
in interface RemoteFile
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |