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 Adler32

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

Most common way to construct:

Adler32 adl = new Adler32();

Based on 12 examples


public class Adler32
extends Object
implements Checksum

A class that can be used to compute the Adler-32 checksum of a data stream. An Adler-32 checksum is almost as reliable as a CRC-32 but can be computed much faster.


Constructor Summary

          Creates a new Adler32 object.
 
Method Summary
 long

          Returns checksum value.
 void

          Resets checksum to initial value.
 void
update(byte[] b)

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

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

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

Constructor Detail

Adler32

public Adler32()
Creates a new Adler32 object.

Method Detail

getValue

public long getValue()
Returns checksum value.


reset

public void reset()
Resets checksum to initial value.


update

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

Parameters:
b

update

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

Parameters:
b
off
len

update

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

Parameters:
b - an array of bytes


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