public class ByteArrayStopCodec extends ExternalCodec<byte[]>
inputStream, outputStream
Constructor and Description |
---|
ByteArrayStopCodec(java.io.ByteArrayInputStream inputStream,
java.io.ByteArrayOutputStream outputStream,
byte stopByte)
Construct a Byte Array Stop Codec
|
Modifier and Type | Method and Description |
---|---|
byte[] |
read()
Read a single object from the stream
|
byte[] |
read(int length)
Read a array of specified length from the stream
|
void |
write(byte[] value)
Write an object to the stream
|
public ByteArrayStopCodec(java.io.ByteArrayInputStream inputStream, java.io.ByteArrayOutputStream outputStream, byte stopByte)
inputStream
- the input bytestream to read fromoutputStream
- the output bytestream to write tostopByte
- the byte used to mark array boundariespublic byte[] read()
CRAMCodec
public byte[] read(int length)
CRAMCodec
length
- the number of elements to readpublic void write(byte[] value)
CRAMCodec
value
- the object to write