This documentation differs from the official API. Jadeite adds extra features to the API including: variable font sizes, constructions examples, placeholders for classes and methods, and auto-generated “See Also” links. Additionally it is missing some items found in standard Javadoc documentation, including: generics type information, “Deprecated” tags and comments, “See Also” links, along with other minor differences. Please send any questions or feedback to bam@cs.cmu.edu.


java.util.zip
class CRC32

java.lang.Object extended by java.util.zip.CRC32
All Implemented Interfaces:
Checksum

Most common way to construct:

CRC32 crc = new CRC32();

Based on 119 examples


public class CRC32
extends Object
implements Checksum

A class that can be used to compute the CRC-32 of a data stream.


Constructor Summary

          Creates a new CRC32 object.
 
Method Summary
 long

          Returns CRC-32 value.
 void

          Resets CRC-32 to initial value.
 void
update(byte[] b)

          Updates checksum with specified array of bytes.
 void
update(byte[] b, int off, int len)

          Updates CRC-32 with specified array of bytes.
 void
update(int b)

          Updates CRC-32 with specified byte.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CRC32

public CRC32()
Creates a new CRC32 object.

Method Detail

getValue

public long getValue()
Returns CRC-32 value.


reset

public void reset()
Resets CRC-32 to initial value.


update

public void update(byte[] b)
Updates checksum with specified array of bytes.

Parameters:
b - the array of bytes to update the checksum with

update

public void update(byte[] b,
                   int off,
                   int len)
Updates CRC-32 with specified array of bytes.

Parameters:
b
off
len

update

public void update(int b)
Updates CRC-32 with specified byte.

Parameters:
b


This documentation differs from the official API. Jadeite adds extra features to the API including: variable font sizes, constructions examples, placeholders for classes and methods, and auto-generated “See Also” links. Additionally it is missing some items found in standard Javadoc documentation, including: generics type information, “Deprecated” tags and comments, “See Also” links, along with other minor differences. Please send any questions or feedback to bam@cs.cmu.edu.
This page displays the Jadeite version of the documention, which is derived from the offical documentation that contains this copyright notice:
Copyright 2008 Sun Microsystems, Inc. All rights reserved. Use is subject to license terms. Also see the documentation redistribution policy.
The official Sun™ documentation can be found here at http://java.sun.com/javase/6/docs/api/.