home | O'Reilly's CD bookshelfs | FreeBSD | Linux | Cisco | Cisco Exam    

Java in a Nutshell

Previous Chapter 31
The java.util.zip Package

31.5 java.util.zip.CRC32 (JDK 1.1)

This class implements the Checksum interface and computes a checksum on a stream of data using the CRC-32 algorithm. The CheckedInputStream and CheckedOutputStream classes provide a higher-level interface to computing checksums on streams of data.

public class CRC32 extends Object implements Checksum {
    // Default Constructor: public CRC32()
    // Public Instance Methods
            public long getValue();  // From Checksum
            public void reset();  // From Checksum
            public void update(int b);  // From Checksum
            public native void update(byte[] b, int off, int len);  // From Checksum
            public void update(byte[] b);

Type Of:

GZIPInputStream.crc, GZIPOutputStream.crc

Previous Home Next
java.util.zip.Checksum (JDK 1.1) Book Index java.util.zip.DataFormatException (JDK 1.1)

Java in a Nutshell Java Language Reference Java AWT Java Fundamental Classes Exploring Java