public class ExternalByteArrayCodec extends ExternalCodec<byte[]>
inputStream, outputStream
Constructor and Description |
---|
ExternalByteArrayCodec(java.io.ByteArrayInputStream inputStream,
java.io.ByteArrayOutputStream outputStream)
Construct an External Codec for Byte Arrays
|
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[] object)
Write an object to the stream
|
public ExternalByteArrayCodec(java.io.ByteArrayInputStream inputStream, java.io.ByteArrayOutputStream outputStream)
inputStream
- the input bytestream to read fromoutputStream
- the output bytestream to write topublic byte[] read(int length)
CRAMCodec
length
- the number of elements to readpublic void write(byte[] object)
CRAMCodec
object
- the object to writepublic byte[] read()
CRAMCodec