public class FileRemoteFile extends Object implements RemoteFile
Constructor and Description |
---|
FileRemoteFile(File dataFile) |
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.
|
public FileRemoteFile(File dataFile)
public void copyTo(File destFile)
RemoteFile
copyTo
in interface RemoteFile
destFile
- local Filepublic void appendTo(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 InputStream getInputStream()
RemoteFile
getInputStream
in interface RemoteFile
public String getName()
RemoteFile
getName
in interface RemoteFile
public String getChecksum()
RemoteFile
getChecksum
in interface RemoteFile
public void cleanup()
RemoteFile
cleanup
in interface RemoteFile
public long getSize()
RemoteFile
getSize
in interface RemoteFile
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.