public class NOnesIntDecoder extends FourFlagsIntDecoder
NOnesIntEncoder
. Uses a
FourFlagsIntDecoder
to perform the actual encoding and translates the
values back as described in NOnesIntEncoder
.NOnesIntEncoder
EOS, 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
IntDecoder
IntDecoder.EOS
is returned.decode
in class FourFlagsIntDecoder
IntDecoder.EOS
if end-of-stream
reached.java.io.IOException
- if an I/O error occurspublic void reInit(java.io.InputStream in)
IntDecoder
reInit
in class FourFlagsIntDecoder
public java.lang.String toString()
toString
in class FourFlagsIntDecoder