Android
java.util.zip
public class

java.util.zip.Adler32

java.lang.Object
java.util.zip.Adler32 Checksum

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

Summary

Public Constructors

            Adler32()

Public Methods

          long  getValue()
Returns the Adler32 checksum for all input received
          void  reset()
Reset this instance to its initial checksum
          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.
          void  update(byte[] buf)
Update this Adler32 checksum using the contents of buf.
Methods inherited from class java.lang.Object
Methods inherited from interface java.util.zip.Checksum

Details

Public Constructors

public Adler32()

Public Methods

public long getValue()

Returns the Adler32 checksum for all input received

Returns

  • The checksum for this instance

public void reset()

Reset this instance to its initial checksum

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.

Parameters

buf buffer to obtain dat from
off offset i buf to copy from
nbytes number of bytes from buf to use

public void update(int i)

Update this Adler32 checksum using val.

Parameters

i byte to update checksum with

public void update(byte[] buf)

Update this Adler32 checksum using the contents of buf.

Parameters

buf bytes to update checksum with
Copyright 2007 Google Inc. Build 0.9_r1-98467 - 14 Aug 2008 18:56