public class RemoteFileFactory extends SettingsFactory<RemoteFile>
Constructor and Description |
---|
RemoteFileFactory() |
Modifier and Type | Method and Description |
---|---|
static RemoteFile |
getCopyfileInstance(File file)
Same as getInstance(file, false, false, false, null).
|
static RemoteFile |
getCopyfileInstance(File file,
RemoteFileSettings connectionParams)
Same as getInstance(file, false, false, false, connectionParams).
|
static RemoteFile |
getDistributefileInstance(File file)
Same as getInstance(file, false, false, false).
|
static RemoteFile |
getExtendedInstance(org.archive.io.ArchiveRecord record)
Get an instance connected to an ArchiveRecord.
|
static RemoteFile |
getInstance(File file,
boolean useChecksums,
boolean fileDeletable,
boolean multipleDownloads) |
static RemoteFile |
getInstance(File file,
boolean useChecksums,
boolean fileDeletable,
boolean multipleDownloads,
RemoteFileSettings connectionParams)
Create a remote file that handles the transport of the remote file data.
|
static RemoteFile |
getMovefileInstance(File file)
Same as getInstance(file, false, true, false).
|
static boolean |
isExtendedRemoteFile()
Returns true iff the defined RemoteFile class has a factory method with signature public static RemoteFile
getInstance(ArchiveRecord record)
|
getInstance
public RemoteFileFactory()
public static RemoteFile getInstance(File file, boolean useChecksums, boolean fileDeletable, boolean multipleDownloads, RemoteFileSettings connectionParams)
file
- The File object to make accessable on another machineuseChecksums
- Whether transfers should be doublechecked with checksums. Added value is access to checksum
of objects.fileDeletable
- If true, the local file will be deleted when it is no longer needed.multipleDownloads
- Whether this file should be allowed to be transferred more than once.public static RemoteFile getInstance(File file, boolean useChecksums, boolean fileDeletable, boolean multipleDownloads)
public static RemoteFile getExtendedInstance(org.archive.io.ArchiveRecord record)
record
- public static boolean isExtendedRemoteFile()
public static RemoteFile getMovefileInstance(File file)
file
- The file to move to another computer.public static RemoteFile getCopyfileInstance(File file)
file
- The file to copy to another computer.public static RemoteFile getCopyfileInstance(File file, RemoteFileSettings connectionParams)
file
- The file to copy to another computer.public static RemoteFile getDistributefileInstance(File file)
file
- The file to copy to another computer.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.