Crc16

Overview | Package | Class | Tree | Deprecated | Index | Help

PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## javazoom.jl.decoder
Class Crc16

    java.lang.Object
      javazoom.jl.decoder.Crc16

public final class Crc16
extends java.lang.Object

16-Bit CRC checksum

Constructor Summary
`Crc16()` Dummy Constructor

Method Summary
`void` | `add_bits(int bitstring, int length)` Feed a bitstring to the crc calculation (0 < length <= 32).
`short` | `checksum()` Return the calculated checksum.

Methods inherited from class java.lang.Object
`clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

Constructor Detail

### Crc16

    public Crc16()

  Dummy Constructor

Method Detail

### add_bits

    public void add_bits(int bitstring,
                         int length)

  Feed a bitstring to the crc calculation (0 < length <= 32).

### checksum

    public short checksum()

  Return the calculated checksum. Erase it for next calls to add_bits().

Overview | Package | Class | Tree | Deprecated | Index | Help

PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

JavaZOOM 1999-2005