public class ExternalIntegerCodec extends AbstractBitCodec<java.lang.Integer>
Constructor and Description |
---|
ExternalIntegerCodec(java.io.OutputStream os,
java.io.InputStream is) |
Modifier and Type | Method and Description |
---|---|
long |
numberOfBits(java.lang.Integer value) |
java.lang.Integer |
read(BitInputStream bis) |
java.lang.Integer |
read(BitInputStream bis,
int len) |
long |
write(BitOutputStream bos,
java.lang.Integer value) |
readInto, skip, skip
public ExternalIntegerCodec(java.io.OutputStream os, java.io.InputStream is)
public java.lang.Integer read(BitInputStream bis) throws java.io.IOException
read
in interface BitCodec<java.lang.Integer>
read
in class AbstractBitCodec<java.lang.Integer>
java.io.IOException
public long write(BitOutputStream bos, java.lang.Integer value) throws java.io.IOException
write
in interface BitCodec<java.lang.Integer>
write
in class AbstractBitCodec<java.lang.Integer>
java.io.IOException
public long numberOfBits(java.lang.Integer value)
numberOfBits
in interface BitCodec<java.lang.Integer>
numberOfBits
in class AbstractBitCodec<java.lang.Integer>
public java.lang.Integer read(BitInputStream bis, int len) throws java.io.IOException
read
in interface BitCodec<java.lang.Integer>
read
in class AbstractBitCodec<java.lang.Integer>
java.io.IOException