| java.lang.Object java.util.zip.CRC32
All known Subclasses: sun.tools.javazic.Checksum,
CRC32 | public class CRC32 implements Checksum(Code) | | A class that can be used to compute the CRC-32 of a data stream.
See Also: Checksum version: 1.25, 05/03/00 author: David Connelly |
Constructor Summary | |
public | CRC32() Creates a new CRC32 object. |
Method Summary | |
public long | getValue() Returns CRC-32 value. | public void | reset() Resets CRC-32 to initial value. | public void | update(int b) Updates CRC-32 with specified byte. | public void | update(byte[] b, int off, int len) Updates CRC-32 with specified array of bytes. | public void | update(byte[] b) Updates checksum with specified array of bytes. |
CRC32 | public CRC32()(Code) | | Creates a new CRC32 object.
|
getValue | public long getValue()(Code) | | Returns CRC-32 value.
|
reset | public void reset()(Code) | | Resets CRC-32 to initial value.
|
update | public void update(int b)(Code) | | Updates CRC-32 with specified byte.
|
update | public void update(byte[] b, int off, int len)(Code) | | Updates CRC-32 with specified array of bytes.
|
update | public void update(byte[] b)(Code) | | Updates checksum with specified array of bytes.
Parameters: b - the array of bytes to update the checksum with |
|
|