|
Build 1.0_r1(from source) | |||||||||
| 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
The CRC32 class is used to compute a CRC32 Checksum from a set of data.
| Field Summary | |
|---|---|
(package private) long |
tbytes
|
| Constructor Summary | |
|---|---|
CRC32()
|
|
| Method Summary | |
|---|---|
long |
getValue()
Returns the CRC32 Checksum for all input received. |
void |
reset()
Returns the CRC32 checksum to it initial state. |
void |
update(byte[] buf)
Updates this Checksum with the bytes contained in buffer buf. |
void |
update(byte[] buf,
int off,
int nbytes)
Updates this Checksum with nbytes of data from buffer buf, starting at offset off. |
void |
update(int val)
Updates this Checksum with value val |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
long tbytes
| Constructor Detail |
|---|
public CRC32()
| Method Detail |
|---|
public long getValue()
getValue in interface Checksumpublic void reset()
reset in interface Checksumpublic void update(int val)
update in interface Checksumpublic void update(byte[] buf)
buf - Buffer to update Checksum
public void update(byte[] buf,
int off,
int nbytes)
update in interface Checksumbuf - Buffer to update Checksumoff - Offset in buf to obtain data fromnbytes - Number of bytes to read from buf
|
Build 1.0_r1(from source) | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||