|
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.CRC32
public class CRC32 extends Object implements Checksum
A class that can be used to compute the CRC-32 of a data stream.
Checksum| Constructor and Description |
|---|
CRC32()
Creates a new CRC32 object. |
| Modifier and Type | Method and Description |
|---|---|
long |
getValue()
Returns CRC-32 value. |
void |
reset()
Resets CRC-32 to initial value. |
void |
update(byte[] b)
Updates the CRC-32 checksum with the specified array of bytes. |
void |
update(byte[] b,
int off,
int len)
Updates the CRC-32 checksum with the specified array of bytes. |
void |
update(int b)
Updates the CRC-32 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 CRC32()
| 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 array of bytes 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.