| java.lang.Object | |
| ↳ | java.util.zip.Adler32 |
The Adler-32 class is used to compute the
Adler32
checksum from a set
of data. Compared to
CRC32
it trades reliability for speed.
Refer to RFC 1950 for the specification.
| Public Constructors | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
|
|
|
||||||||||
| Public Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
|
|
Returns the
Adler32
checksum for all input received.
|
||||||||||
|
|
Reset this instance to its initial checksum.
|
||||||||||
|
|
Update this
Adler32
checksum with the contents of
buf
,
starting from
offset
and reading
byteCount
bytes of data.
|
||||||||||
|
|
Update this
Adler32
checksum with the single byte provided as
argument.
|
||||||||||
|
|
Update this
Adler32
checksum using the contents of
buf
.
|
||||||||||
|
[Expand]
Inherited Methods
|
|||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
From class
java.lang.Object
|
|||||||||||
From interface
java.util.zip.Checksum
|
|||||||||||
Returns the
Adler32
checksum for all input received.
Update this
Adler32
checksum with the contents of
buf
,
starting from
offset
and reading
byteCount
bytes of data.
| buf | the byte array from which to read the bytes. |
|---|---|
| offset |
the initial position in
buf
to read the bytes from.
|
| byteCount |
the number of bytes to read from
buf
.
|
Update this
Adler32
checksum with the single byte provided as
argument.
| i | the byte to update checksum with. |
|---|
Update this
Adler32
checksum using the contents of
buf
.
| buf | bytes to update checksum with. |
|---|