Overview | Package | Class | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## com.sun.jimi.util.zip
Interface Checksum

All Known Implementing Classes:
  Adler32

public abstract interface Checksum

Checksum is an interface that all data checksum objects (such as Adler32 and CRC32) should implement.

Method Summary
`long` | `getValue()` Returns the current value of the checksum
`void` | `reset()` Resets the checksum to the initial value
`void` | `update(byte[] b, int offset, int length)` Updates the checksum with the data in the given array
`void` | `update(int b)` Updates the checksum with the given byte

Method Detail

### getValue

    public long getValue()

  Returns the current value of the checksum

### update

    public void update(int b)

  Updates the checksum with the given byte
  Parameters:
    `b` - the byte of data to update the checksum with

### update

    public void update(byte[] b,
                       int offset,
                       int length)

  Updates the checksum with the data in the given array
  Parameters:
    `b` - the array containing the data
    `offset` - the index of the first byte of data
    `length` - the number of data bytes in the array

### reset

    public void reset()

  Resets the checksum to the initial value

Overview | Package | Class | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD