|
Spec-Zone .ru
спецификации, руководства, описания, API
|
|
Java™ Platform Standard Ed. 7 DRAFT ea-b118 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.util.zip.Adler32
public class Adler32 extends Object implements Checksum
A class that can be used to compute the Adler-32 checksum of a data stream. An Adler-32 checksum is almost as reliable as a CRC-32 but can be computed much faster.
Checksum| Constructor and Description |
|---|
Adler32()
Creates a new Adler32 object. |
| Modifier and Type | Method and Description |
|---|---|
long |
getValue()
Returns the checksum value. |
void |
reset()
Resets the checksum to initial value. |
void |
update(byte[] b)
Updates the checksum with the specified array of bytes. |
void |
update(byte[] b,
int off,
int len)
Updates the checksum with the specified array of bytes. |
void |
update(int b)
Updates the checksum with the specified byte (the low eight bits of the argument b). |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Adler32()
| Method Detail |
|---|
public void update(int b)
update in interface Checksumb - the byte to update the checksum with
public void update(byte[] b,
int off,
int len)
update in interface Checksumb - the byte array to update the checksum withoff - the start offset of the datalen - the number of bytes to use for the updatepublic void update(byte[] b)
b - the byte array to update the checksum withpublic void reset()
reset in interface Checksumpublic long getValue()
getValue in interface Checksum
|
Java™ Platform Standard Ed. 7 DRAFT ea-b118 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
Copyright © 1993, 2010, Oracle Corporation. All rights reserved.