Methods Summary |
---|
public long | getChunckEnd()This method returns the End of the current chunk introduced by current
header object.
return this.position + this.chunkLength.longValue();
|
public long | getChunkEnd()This method returns the End of the current chunk introduced by current
header object.
return this.position + this.chunkLength.longValue();
|
public java.math.BigInteger | getChunkLength()
return this.chunkLength;
|
public GUID | getGuid()
return this.guid;
|
public long | getPosition()
return this.position;
|
public java.lang.String | prettyPrint(java.lang.String prefix)This method creates a String containing useful information prepared to be
printed on STD-OUT.
This method is intended to be overwritten by inheriting classes.
final StringBuilder result = new StringBuilder();
result.append(prefix).append("-> GUID: ").append(
GUID.getGuidDescription(this.guid))
.append(Utils.LINE_SEPARATOR);
result.append(prefix).append(" | : Starts at position: ").append(
getPosition()).append(Utils.LINE_SEPARATOR);
result.append(prefix).append(" | : Last byte at: ").append(
getChunkEnd() - 1).append(Utils.LINE_SEPARATOR);
return result.toString();
|
public void | setPosition(long pos)Sets the position.
this.position = pos;
|
public java.lang.String | toString()(overridden)
return prettyPrint("");
|