public class TransferResult
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static int |
MODE_SOURCE_TARGET
Transfer mode.
|
static int |
MODE_TARGET_SOURCE
Transfer mode.
|
static int |
STATUS_ERROR
Entry has not been transferred.
|
static int |
STATUS_IGNORED
Entry was ignored.
|
static int |
STATUS_OK
Successfully transferred.
|
static int |
STATUS_PENDING
Transfer will begin soon.
|
static int |
STATUS_WARNING
Transferred with warnings.
|
Constructor and Description |
---|
TransferResult()
Constructor method for i18n purposes only.
|
TransferResult(int mode,
java.lang.Object sourceentry,
java.lang.Object targetentry,
long duration,
long frompos,
int status,
java.lang.String comment,
boolean digestfileurl)
Constructor settings the initial values.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(TransferResult tocheck)
Checks wether a given
TransferResult instance is equal to this. |
java.lang.String |
getComment()
Getter for comment.
|
boolean |
getDigestFileURL()
Getter for digest file/URL.
|
long |
getDuration()
Getter for duration.
|
long |
getFromPos()
Getter for start index.
|
int |
getMode()
Getter for mode.
|
java.lang.Object |
getSourceEntry()
Getter for source entry.
|
int |
getStatus()
Getter for status.
|
java.lang.Object |
getTargetEntry()
Getter for target entry.
|
void |
setComment(java.lang.String comment)
Setter for comment.
|
void |
setDigestFileURL(boolean value)
Setter for digest file/URL.
|
void |
setDuration(long duration)
Setter for duration.
|
void |
setMode(int mode)
Setter for mode.
|
void |
setStatus(int status)
Setter for status.
|
java.lang.String |
toString()
Overrides method
java.lang.Object.toString . |
public static final int MODE_SOURCE_TARGET
public static final int MODE_TARGET_SOURCE
public static final int STATUS_PENDING
public static final int STATUS_OK
public static final int STATUS_WARNING
public static final int STATUS_ERROR
public static final int STATUS_IGNORED
public TransferResult() throws java.lang.InstantiationException
I18NExtractor
).
java.lang.InstantiationException
- Error indicationpublic TransferResult(int mode, java.lang.Object sourceentry, java.lang.Object targetentry, long duration, long frompos, int status, java.lang.String comment, boolean digestfileurl)
mode
- Transfer mode MODE_SOURCE_TARGET
,...sourceentry
- The file/URL to be transferredtargetentry
- The file/URL to be createdduration
- Period of time in milliseconds the calculation took (required)frompos
- The byte index the transfer will begin with (default: 0)status
- Status of generation (required)comment
- Optional comment like error messagesdigestfileurl
- Is the source/target entry a digest file/URL?java.lang.IllegalArgumentException
- If at least one of the parameters is invalidpublic java.lang.String toString()
java.lang.Object.toString
.
toString
in class java.lang.Object
public boolean equals(TransferResult tocheck)
TransferResult
instance is equal to this.
tocheck
- The instance to be comparedTransferResult
instance to check for equalitypublic int getMode()
public void setMode(int mode)
mode
- The modepublic java.lang.Object getSourceEntry()
public java.lang.Object getTargetEntry()
public long getDuration()
public void setDuration(long duration)
duration
- The durationpublic long getFromPos()
public int getStatus()
public void setStatus(int status)
status
- The statuspublic java.lang.String getComment()
public void setComment(java.lang.String comment)
comment
- The commentpublic boolean getDigestFileURL()
public void setDigestFileURL(boolean value)
value
- The valueCopyright © 2005-2015 Leisenfels UG. All rights reserved.