Package com.emc.object.util
Class ChecksumValueImpl
- java.lang.Object
-
- com.emc.object.util.ChecksumValue
-
- com.emc.object.util.ChecksumValueImpl
-
public class ChecksumValueImpl extends ChecksumValue
Represents a static checksum value.
-
-
Constructor Summary
Constructors Constructor 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.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ChecksumAlgorithm
getAlgorithm()
byte[]
getByteValue()
java.lang.String
getHexValue()
long
getOffset()
-
-
-
Constructor Detail
-
ChecksumValueImpl
public ChecksumValueImpl(ChecksumAlgorithm algorithm, long offset, byte[] byteValue)
-
ChecksumValueImpl
public ChecksumValueImpl(ChecksumAlgorithm algorithm, long offset, java.lang.String hexValue)
-
ChecksumValueImpl
public ChecksumValueImpl(ChecksumAlgorithm algorithm, long offset, byte[] byteValue, java.lang.String hexValue)
-
ChecksumValueImpl
public 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.
-
-
Method Detail
-
getAlgorithm
public ChecksumAlgorithm getAlgorithm()
- Specified by:
getAlgorithm
in classChecksumValue
-
getOffset
public long getOffset()
- Specified by:
getOffset
in classChecksumValue
-
getByteValue
public byte[] getByteValue()
- Specified by:
getByteValue
in classChecksumValue
-
getHexValue
public java.lang.String getHexValue()
- Specified by:
getHexValue
in classChecksumValue
-
-