Package edu.harvard.hul.ois.jhove
Class Checksum
java.lang.Object
edu.harvard.hul.ois.jhove.Checksum
This class encapsulates the result of calculations which provide a greater
or lesser degree of confirmation of the integrity of a digital
object's content, including checksums, CRC's, message digests,
etc.
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionChecksum(String value, ChecksumType type) Creates a Checksum with a given value and type -
Method Summary
Modifier and TypeMethodDescriptiongetType()Returns this Checksum's typegetValue()Returns this Checksum's valuevoidsetType(ChecksumType type) Sets the type of this ChecksumvoidSets the value of this Checksumstatic byteunsignedByteToByte(int value) Maps unsigned byte value (0 to 256) to signed byte value (-128 to 127).
-
Constructor Details
-
Checksum
Creates a Checksum with a given value and type
-
-
Method Details
-
getType
Returns this Checksum's type -
getValue
Returns this Checksum's value -
setType
Sets the type of this Checksum -
setValue
Sets the value of this Checksum -
unsignedByteToByte
public static byte unsignedByteToByte(int value) Maps unsigned byte value (0 to 256) to signed byte value (-128 to 127).
-