java.util.zip
public
class
java.util.zip.Adler32
The Adler32 class is used to compute the Adler32 Checksum from a set of data.
Summary
Public Constructors
Public Methods
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait
Details
Public Constructors
Public Methods
public
long
getValue()
Returns the Adler32 checksum for all input received
Returns
- The checksum for this instance
public
void
reset()
Reset this instance to its initial checksum
public
void
update(byte[] buf, int off, int nbytes)
Update this Adler32 checksum with the contents of buf, starting from
offset and using nbytes of data.
Parameters
buf
| buffer to obtain dat from |
off
| offset i buf to copy from |
nbytes
| number of bytes from buf to use
|
public
void
update(int i)
Update this Adler32 checksum using val.
Parameters
i
| byte to update checksum with
|
public
void
update(byte[] buf)
Update this Adler32 checksum using the contents of buf.
Parameters
buf
| bytes to update checksum with
|