java.util.zip.CRC32
java.lang.Object
None
java.util.zip.Checksum
New as of JDK 1.1
The CRC32 class implements the Checksum interface using the CRC-32 algorithm. This algorithm is significantly slower than Adler-32 and only slightly more reliable.
public class java.util.zip.CRC32 extends java.lang.Object implements java.util.zip.Checksum { // Constructors public CRC32(); // Instance Methods public long getValue(); public void reset(); public void update(int b); public void update(byte[] b); public native void update(byte[] b, int off, int len); }
This constructor creates an CRC32 object.
The current checksum value.
Checksum.getValue()
This method returns the current value of this checksum.
Checksum.reset()
This method resets the checksum to its initial value, making it appear as though it has not been updated by any data.
The value to be added to the data stream for the checksum calculation.
Checksum.update(int)
This method adds the specified value to the data stream and updates the checksum value. The method uses only the lowest eight bits of the given int.
An array of bytes to be added to the data stream for the checksum calculation.
This method adds the bytes from the specified array to the data stream and updates the checksum value.
An array of bytes to be added to the data stream for the checksum calculation.
An offset into the byte array.
The number of bytes to use.
Checksum.update(byte[], int, int)
This method adds len bytes from the specified array, starting at off, to the data stream and updates the checksum value.
Method |
Inherited From |
Method |
Inherited From |
---|---|---|---|
clone() |
Object |
equals(Object) |
Object |
finalize() |
Object |
getClass() |
Object |
hashCode() |
Object |
notify() |
Object |
notifyAll() |
Object |
toString() |
Object |
wait() |
Object |
wait(long) |
Object |
wait(long, int) |
Object |
Adler32, Checksum
This HTML Help has been published using the chm2web software. |