java.util.zip
public
class
java.util.zip.CRC32
The CRC32 class is used to compute a CRC32 Checksum from a set of data.
Summary
Public Constructors
Public Methods
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait
Details
Public Constructors
Public Methods
public
long
getValue()
Returns the CRC32 Checksum for all input received.
Returns
- The checksum for this instance
public
void
reset()
Returns the CRC32 checksum to it initial state.
public
void
update(byte[] buf, int off, int nbytes)
Updates this Checksum with nbytes of data from buffer buf, starting at
offset off.
Parameters
buf
| Buffer to update Checksum |
off
| Offset in buf to obtain data from |
nbytes
| Number of bytes to read from buf
|
public
void
update(int val)
Updates this Checksum with value val
public
void
update(byte[] buf)
Updates this Checksum with the bytes contained in buffer buf.
Parameters
buf
| Buffer to update Checksum
|