org.tranche.add
Class AddFileToolReport
java.lang.Object
org.tranche.add.AddFileToolReport
- All Implemented Interfaces:
- java.io.Serializable
public class AddFileToolReport
- extends java.lang.Object
- implements java.io.Serializable
- Author:
- James "Augie" Hill - augman85@gmail.com
- See Also:
- Serialized Form
|
Constructor Summary |
AddFileToolReport(java.io.InputStream is)
|
AddFileToolReport(long timestampStart,
java.lang.String title,
java.lang.String description,
boolean isEncrypted,
boolean showMetaDataIfEncrypted,
BigHash hash)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
VERSION_ONE
public static final int VERSION_ONE
- See Also:
- Constant Field Values
VERSION_LATEST
public static final int VERSION_LATEST
- See Also:
- Constant Field Values
AddFileToolReport
public AddFileToolReport(long timestampStart,
java.lang.String title,
java.lang.String description,
boolean isEncrypted,
boolean showMetaDataIfEncrypted,
BigHash hash)
- Parameters:
timestampStart - title - description - isEncrypted - showMetaDataIfEncrypted -
AddFileToolReport
public AddFileToolReport(java.io.InputStream is)
throws java.io.IOException
- Parameters:
is -
- Throws:
java.io.IOException
getVersion
public int getVersion()
- Returns:
setVersion
public void setVersion(int version)
- Parameters:
version -
getTitle
public java.lang.String getTitle()
- Returns:
getDescription
public java.lang.String getDescription()
- Returns:
isEncrypted
public boolean isEncrypted()
- Returns:
isShowMetaDataIfEncrypted
public boolean isShowMetaDataIfEncrypted()
- Returns:
getTimestampStart
public long getTimestampStart()
- Returns:
getTimestampEnd
public long getTimestampEnd()
- Returns:
setTimestampEnd
protected void setTimestampEnd(long endTimestamp)
- Parameters:
endTimestamp -
getOriginalFileCount
public long getOriginalFileCount()
- Returns:
setOriginalFileCount
protected void setOriginalFileCount(long originalFileCount)
- Parameters:
originalFileCount -
getOriginalBytesUploaded
public long getOriginalBytesUploaded()
- Returns:
setOriginalBytesUploaded
protected void setOriginalBytesUploaded(long originalBytesUploaded)
- Parameters:
originalBytesUploaded -
getTimeToFinish
public long getTimeToFinish()
- Returns:
getHash
public BigHash getHash()
- Returns:
setHash
protected void setHash(BigHash hash)
- Parameters:
hash -
getBytesUploaded
public long getBytesUploaded()
- Returns:
setBytesUploaded
protected void setBytesUploaded(long bytesUploaded)
- Parameters:
bytesUploaded -
getFilesUploaded
public long getFilesUploaded()
- Returns:
setFilesUploaded
protected void setFilesUploaded(long filesUploaded)
- Parameters:
filesUploaded -
isFailed
public boolean isFailed()
- Returns:
isFinished
public boolean isFinished()
- Returns:
getFailureExceptions
public java.util.List<PropagationExceptionWrapper> getFailureExceptions()
- Returns:
addFailureException
protected void addFailureException(PropagationExceptionWrapper failureException)
- Parameters:
failureException -
addFailureExceptions
protected void addFailureExceptions(java.util.Collection<PropagationExceptionWrapper> failureExceptions)
- Parameters:
failureExceptions -
serialize
public void serialize(java.io.OutputStream out)
throws java.io.IOException
Outputs the values of this row to the output stream.
- Parameters:
out - The output stream.
- Throws:
java.io.IOException
serialize
protected void serialize(int version,
java.io.OutputStream out)
throws java.io.IOException
Outputs the values of this row in the structure defined by the given version to the given output stream.
- Parameters:
out - The output stream
- Throws:
java.io.IOException
deserialize
protected void deserialize(java.io.InputStream in)
throws java.io.IOException
- Parameters:
in - An input stream containing a serialized report
- Throws:
java.io.IOException
deserializeVersionOne
protected void deserializeVersionOne(java.io.InputStream in)
throws java.io.IOException
- Parameters:
in - An input stream containing a version one serialized report
- Throws:
java.io.IOException
This code is free for use both commercially and non-commercially as stated in the project's license