public class NullRemoteFile extends Object implements RemoteFile
Constructor and Description |
---|
NullRemoteFile() |
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.
|
static RemoteFile |
getInstance(File f,
Boolean useChecksums,
Boolean fileDeletable,
Boolean multipleDownloads) |
String |
getName()
Return the file name.
|
long |
getSize()
Returns the total size of the remote file.
|
public NullRemoteFile()
public static RemoteFile getInstance(File f, Boolean useChecksums, Boolean fileDeletable, Boolean multipleDownloads)
public void copyTo(File destFile)
RemoteFile
copyTo
in interface RemoteFile
destFile
- local FileRemoteFile.copyTo(File)
public 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.RemoteFile.appendTo(OutputStream)
public InputStream getInputStream()
RemoteFile
getInputStream
in interface RemoteFile
public void cleanup()
RemoteFile
cleanup
in interface RemoteFile
RemoteFile.cleanup()
public long getSize()
RemoteFile
getSize
in interface RemoteFile
RemoteFile.getSize()
public String getName()
getName
in interface RemoteFile
RemoteFile.getName()
public String getChecksum() throws NotImplementedException
getChecksum
in interface RemoteFile
NotImplementedException
- Because it is not implementedRemoteFile.getChecksum()
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.