public abstract class MetadataTransfer extends Transfer
Modifier and Type | Field and Description |
---|---|
private MetadataTransferException |
exception |
private java.io.File |
file |
private Metadata |
metadata |
Constructor and Description |
---|
MetadataTransfer() |
Modifier and Type | Method and Description |
---|---|
MetadataTransferException |
getException()
Gets the exception that occurred during the transfer (if any).
|
java.io.File |
getFile()
Gets the local file the metadata is downloaded to or uploaded from.
|
Metadata |
getMetadata()
Gets the metadata being transferred.
|
MetadataTransfer |
setException(MetadataTransferException exception)
Sets the exception that occurred during the transfer.
|
MetadataTransfer |
setFile(java.io.File file)
Sets the local file the metadata is downloaded to or uploaded from.
|
MetadataTransfer |
setMetadata(Metadata metadata)
Sets the metadata to transfer.
|
getListener, getTrace, setListener, setTrace
private Metadata metadata
private java.io.File file
private MetadataTransferException exception
public Metadata getMetadata()
null
if not set.public MetadataTransfer setMetadata(Metadata metadata)
metadata
- The metadata, may be null
.null
.public java.io.File getFile()
null
if not set.public MetadataTransfer setFile(java.io.File file)
file
- The local file, may be null
.null
.public MetadataTransferException getException()
getException
in class Transfer
null
if the transfer was successful.public MetadataTransfer setException(MetadataTransferException exception)
exception
- The exception, may be null
to denote a successful transfer.null
.