Passing a null
argument to a method in this class will cause
a NullPointerException
to be thrown.
Modifier and Type | Field and Description |
---|---|
private int |
Access | Constructor and Description |
---|---|
public |
Modifier and Type | Method and Description |
---|---|
public long | |
public void | |
public void | update(int
the byte to update the checksum with b)Implements java. Updates the checksum with the specified byte (the low eight bits of the argument b). |
public void | update(byte[]
the byte array to update the checksum with b, int the start offset of the data off, int the number of bytes to use for the update len)Implements java. Updates the checksum with the specified array of bytes. |
public void | update(ByteBuffer
the ByteBuffer to update the checksum with buffer)Overrides default java. Updates the checksum with the bytes from the specified buffer. |
private static native int | |
private static native int | |
private static native int |
adler | back to summary |
---|---|
private int adler |
Adler32 | back to summary |
---|---|
public Adler32() Creates a new Adler32 object. |
getValue | back to summary |
---|---|
public long getValue() Implements java. Returns the checksum value.
|
reset | back to summary |
---|---|
public void reset() Implements java. Resets the checksum to initial value.
|
update | back to summary |
---|---|
public void update(int b) Implements java. Updates the checksum with the specified byte (the low eight bits of the argument b).
|
update | back to summary |
---|---|
public void update(byte[] b, int off, int len) Implements java. Updates the checksum with the specified array of bytes.
|
update | back to summary |
---|---|
public void update(ByteBuffer buffer) Overrides default java. Updates the checksum with the bytes from the specified buffer. The checksum is updated with the remaining bytes in the buffer, starting at the buffer's position. Upon return, the buffer's position will be updated to its limit; its limit will not have been changed.
|
update | back to summary |
---|---|
private static native int update(int adler, int b) |
updateByteBuffer | back to summary |
---|---|
private static native int updateByteBuffer(int adler, long addr, int off, int len)
|
updateBytes | back to summary |
---|---|
private static native int updateBytes(int adler, byte[] b, int off, int len)
|