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
interface Checksum

All Known Implementing Classes:
Adler32, CRC32

Most common way to construct:

Checksum check = new Adler32();

Based on 8 examples


public interface Checksum

An interface representing a data checksum.


Method Summary
 long

          Returns the current checksum value.
 void

          Resets the checksum to its initial value.
 void
update(byte[] b, int off, int len)

          Updates the current checksum with the specified array of bytes.
 void
update(int b)

          Updates the current checksum with the specified byte.
 

Method Detail

getValue

public long getValue()
Returns the current checksum value.

Returns:
the current checksum value

reset

public void reset()
Resets the checksum to its initial value.


update

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

Parameters:
b - the byte array to update the checksum with
off - the start offset of the data
len - the number of bytes to use for the update

update

public void update(int b)
Updates the current checksum with the specified byte.

Parameters:
b - the byte to update the checksum with


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/.