Build 1.0_r1(from source)

java.util.zip
Class Adler32

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

public class Adler32
extends Object
implements Checksum

The Adler32 class is used to compute the Adler32 Checksum from a set of data.


Constructor Summary
Adler32()
           
 
Method Summary
 long getValue()
          Returns the Adler32 checksum for all input received
 void reset()
          Reset this instance to its initial checksum
 void update(byte[] buf)
          Update this Adler32 checksum using the contents of buf.
 void update(byte[] buf, int off, int nbytes)
          Update this Adler32 checksum with the contents of buf, starting from offset and using nbytes of data.
 void update(int i)
          Update this Adler32 checksum using val.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Adler32

public Adler32()
Method Detail

getValue

public long getValue()
Returns the Adler32 checksum for all input received

Specified by:
getValue in interface Checksum
Returns:
The checksum for this instance

reset

public void reset()
Reset this instance to its initial checksum

Specified by:
reset in interface Checksum

update

public void update(int i)
Update this Adler32 checksum using val.

Specified by:
update in interface Checksum
Parameters:
i - byte to update checksum with

update

public void update(byte[] buf)
Update this Adler32 checksum using the contents of buf.

Parameters:
buf - bytes to update checksum with

update

public void update(byte[] buf,
                   int off,
                   int nbytes)
Update this Adler32 checksum with the contents of buf, starting from offset and using nbytes of data.

Specified by:
update in interface Checksum
Parameters:
buf - buffer to obtain dat from
off - offset i buf to copy from
nbytes - number of bytes from buf to use

Build 1.0_r1(from source)

Please submit a feedback, bug or feature