public interface RemoteFile extends Serializable
Modifier and Type | Method and Description |
---|---|
void |
appendTo(OutputStream out)
Write the contents of this remote file to an output stream.
|
void |
cleanup()
Cleanup this remote file.
|
void |
copyTo(File destFile)
Copy remotefile to local disk storage.
|
String |
getChecksum()
Returns a MD5 Checksum on the file.
|
InputStream |
getInputStream()
Get an inputstream that contains the data transferred in this RemoteFile.
|
String |
getName()
Return the file name.
|
long |
getSize()
Returns the total size of the remote file.
|
void copyTo(File destFile)
destFile
- local FileIOFailure
- on communication trouble.ArgumentNotValid
- on null parameter or non-writable filevoid appendTo(OutputStream out)
out
- OutputStream that the data will be written to. This stream will not be closed by this operation.IOFailure
- If append operation failsArgumentNotValid
- on null parameterInputStream getInputStream()
IOFailure
- on communication trouble.String getChecksum()
void cleanup()
long getSize()
Copyright © 2005–2016 The Royal Danish Library, the Danish State and University Library, the National Library of France and the Austrian National Library.. All rights reserved.