public class Checksum extends Object
ChecksumType
,
Checksummer
Constructor and Description |
---|
Checksum(String value,
ChecksumType type)
Creates a Checksum with a given value and type
|
Modifier and Type | Method and Description |
---|---|
ChecksumType |
getType()
Returns this Checksum's type
|
String |
getValue()
Returns this Checksum's value
|
void |
setType(ChecksumType type)
Sets the type of this Checksum
|
void |
setValue(String value)
Sets the value of this Checksum
|
static byte |
unsignedByteToByte(int value)
Maps unsigned byte value (0 to 256) to signed byte value (-128 to 127).
|
public Checksum(String value, ChecksumType type)
public ChecksumType getType()
public String getValue()
public void setType(ChecksumType type)
public void setValue(String value)
public static byte unsignedByteToByte(int value)
Copyright © 2008–2017 The Open Preservation Foundation. All rights reserved.