public static class ByteArrayStopEncoding.ByteArrayStopCodec extends AbstractBitCodec<byte[]>
| Constructor and Description |
|---|
ByteArrayStopCodec(byte stopByte,
java.io.InputStream inputStream,
java.io.OutputStream outputStream) |
| Modifier and Type | Method and Description |
|---|---|
long |
numberOfBits(byte[] object)
Calculate the number of bits that the object would take in bit serialized form.
|
byte[] |
read(BitInputStream bitInputStream)
Read a single object from the bit stream.
|
byte[] |
read(BitInputStream bitInputStream,
int length)
Read a array of specified length from the bit stream.
|
long |
write(BitOutputStream bitOutputStream,
byte[] object)
Write an object into the bit stream
|
readInto, skip, skippublic ByteArrayStopCodec(byte stopByte,
java.io.InputStream inputStream,
java.io.OutputStream outputStream)
public byte[] read(BitInputStream bitInputStream) throws java.io.IOException
BitCodecread in interface BitCodec<byte[]>read in class AbstractBitCodec<byte[]>bitInputStream - the bit input stream to rad fromjava.io.IOException - as per java IO contractpublic byte[] read(BitInputStream bitInputStream, int length) throws java.io.IOException
BitCodecread in interface BitCodec<byte[]>read in class AbstractBitCodec<byte[]>bitInputStream - the bit input stream to rad from
param valueLen the number of elements to readjava.io.IOException - as per java IO contractpublic long write(BitOutputStream bitOutputStream, byte[] object) throws java.io.IOException
BitCodecwrite in interface BitCodec<byte[]>write in class AbstractBitCodec<byte[]>bitOutputStream - the output bit stream to write toobject - the object to writejava.io.IOException - as per java IO contractpublic long numberOfBits(byte[] object)
BitCodecnumberOfBits in interface BitCodec<byte[]>numberOfBits in class AbstractBitCodec<byte[]>object - an object