FileDocCategorySizeDatePackage
Checksum.javaAPI DocAndroid 1.5 API1980Wed May 06 22:41:02 BST 2009java.util.zip

Checksum

public interface Checksum
Holds information about a checksum which was computed with the methods implementing a checksum algorithm.
since
Android 1.0

Fields Summary
Constructors Summary
Methods Summary
public longgetValue()
Returns the current calculated checksum value.

return
the checksum.
since
Android 1.0

public voidreset()
Resets the checksum value applied before beginning calculations on a new stream of data.

since
Android 1.0

public voidupdate(int val)
Updates the checksum value with the given byte.

param
val the byte to update the checksum with.
since
Android 1.0

public voidupdate(byte[] buf, int off, int nbytes)
Updates the checksum with the given bytes.

param
buf the byte array from which to read the bytes.
param
off the initial position in {@code buf} to read the bytes from.
param
nbytes the number of bytes to read from {@code buf}.
since
Android 1.0