ChecksumNameChecksumSynopsis
DescriptionThe Checksum interface defines the methods that are needed to compute a checksum value for a stream of data. The checksum value can be used for error checking purposes. Note, however, that the checksum value must fit into a long value, so this interface is not suitable for cryptographic checksum algorithms. The Adler32 and CRC32 classes implement the Checksum interface, using the Adler-32 and CRC-32 algorithms, respectively. The CheckedInputStream and CheckedOutputStream classes provide a higher-level mechanism for computing checksums on data streams. Class Summary
public abstract interface java.util.zip.Checksum { // Methods public abstract long getValue(); public abstract void reset(); public abstract void update(int b); public abstract void update(byte[] b, int off, int len); } MethodsgetValuepublic abstract long getValue()
resetpublic abstract void reset()
updatepublic abstract void update(int b)
public abstract void update(byte[] b, int off, int len)
See AlsoAdler32, CheckedInputStream, CheckedOutputStream, CRC32 |
|