public class NOnesIntDecoder extends FourFlagsIntDecoder
NOnesIntEncoder. Uses a
FourFlagsIntDecoder to perform the actual encoding and translates the
values back as described in NOnesIntEncoder.NOnesIntEncoderEOS, in| Constructor and Description |
|---|
NOnesIntDecoder(int n)
Constructs a decoder with a given N (Number of consecutive '1's which are
translated into a single target value '2'.
|
public NOnesIntDecoder(int n)
public long decode()
throws java.io.IOException
IntDecoderIntDecoder.EOS is returned.decode in class FourFlagsIntDecoderIntDecoder.EOS if end-of-stream
reached.java.io.IOException - if an I/O error occurspublic void reInit(java.io.InputStream in)
IntDecoderreInit in class FourFlagsIntDecoderpublic java.lang.String toString()
toString in class FourFlagsIntDecoder