|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object joeq.ClassLib.Common.java.util.zip.Adler32
public class Adler32
Adler32
Constructor Summary | |
---|---|
Adler32()
Creates a new instance of the Adler32 class. |
Method Summary | |
---|---|
long |
getValue()
Returns the Adler32 data checksum computed so far. |
void |
reset()
Resets the Adler32 checksum to the initial value. |
void |
update(byte[] buffer)
Updates the checksum with the bytes taken from the array. |
void |
update(byte[] buf,
int off,
int len)
Updates the checksum with the bytes taken from the array. |
void |
update(int bval)
Updates the checksum with the byte b. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Adler32()
Adler32
class.
The checksum starts off with a value of 1.
Method Detail |
---|
public void reset()
public void update(int bval)
bval
- the data value to add. The high byte of the int is ignored.public void update(byte[] buffer)
buffer
- an array of bytespublic void update(byte[] buf, int off, int len)
buf
- an array of bytesoff
- the start of the data used for this updatelen
- the number of bytes to use for this updatepublic long getValue()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |