public class ChecksumValueImpl extends ChecksumValue
Constructor and Description |
---|
ChecksumValueImpl(ChecksumAlgorithm algorithm,
long offset,
byte[] byteValue) |
ChecksumValueImpl(ChecksumAlgorithm algorithm,
long offset,
byte[] byteValue,
java.lang.String hexValue) |
ChecksumValueImpl(ChecksumAlgorithm algorithm,
long offset,
java.lang.String hexValue) |
ChecksumValueImpl(java.lang.String headerValue)
Constructs a new checksum value from a header string of the format
{algorithm}/[{offset}/]{value} ,
where the offset may or may not be present. |
Modifier and Type | Method and Description |
---|---|
ChecksumAlgorithm |
getAlgorithm() |
byte[] |
getByteValue() |
java.lang.String |
getHexValue() |
long |
getOffset() |
public ChecksumValueImpl(ChecksumAlgorithm algorithm, long offset, byte[] byteValue)
public ChecksumValueImpl(ChecksumAlgorithm algorithm, long offset, java.lang.String hexValue)
public ChecksumValueImpl(ChecksumAlgorithm algorithm, long offset, byte[] byteValue, java.lang.String hexValue)
public ChecksumValueImpl(java.lang.String headerValue)
{algorithm}/[{offset}/]{value}
,
where the offset may or may not be present.public ChecksumAlgorithm getAlgorithm()
getAlgorithm
in class ChecksumValue
public long getOffset()
getOffset
in class ChecksumValue
public byte[] getByteValue()
getByteValue
in class ChecksumValue
public java.lang.String getHexValue()
getHexValue
in class ChecksumValue