Package java.util.zip
Class Adler32
- java.lang.Object
-
- java.util.zip.Adler32
-
-
Constructor Summary
Constructors Constructor Description Adler32()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description longgetValue()Returns theAdler32checksum for all input received.voidreset()Reset this instance to its initial checksum.voidupdate(byte[] buf)Update thisAdler32checksum using the contents ofbuf.voidupdate(byte[] buf, int offset, int byteCount)Update thisAdler32checksum with the contents ofbuf, starting fromoffsetand readingbyteCountbytes of data.voidupdate(int i)Update thisAdler32checksum with the single byte provided as argument.
-
-
-
Method Detail
-
getValue
public long getValue()
Returns theAdler32checksum for all input received.
-
reset
public void reset()
Reset this instance to its initial checksum.
-
update
public void update(int i)
Update thisAdler32checksum with the single byte provided as argument.
-
update
public void update(byte[] buf)
Update thisAdler32checksum using the contents ofbuf.- Parameters:
buf- bytes to update checksum with.
-
update
public void update(byte[] buf, int offset, int byteCount)Update thisAdler32checksum with the contents ofbuf, starting fromoffsetand readingbyteCountbytes of data.
-
-