|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.anidb.checksum.Checksum
net.anidb.checksum.TigerChecksum
public class TigerChecksum
A class that can be used to compute the Tiger checksum of a data stream.
Constructor Summary | |
---|---|
TigerChecksum()
Creates a Tiger checksum object. |
Method Summary | |
---|---|
byte[] |
getDigest()
Builds and returns the digest. |
void |
reset()
Resets the checksum object. |
void |
update(byte[] buf,
int off,
int len)
Updates the checksum with data. |
void |
update(int data)
Updates the checksum with data. |
Methods inherited from class net.anidb.checksum.Checksum |
---|
getHexDigest |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public TigerChecksum()
Method Detail |
---|
public void reset()
Checksum
reset
in class Checksum
public void update(byte[] buf, int off, int len)
Checksum
update
in class Checksum
buf
- The data buffer.off
- The offset.len
- The length.public void update(int data)
Checksum
update
in class Checksum
data
- The data.public byte[] getDigest()
Checksum
Builds and returns the digest.
After calling this method you have to use Checksum.reset()
.
getDigest
in class Checksum
Checksum.reset()
,
Checksum.getHexDigest()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |