public class ExternalByteCodec extends ExternalCodec<java.lang.Byte>
inputStream, outputStream
Constructor and Description |
---|
ExternalByteCodec(java.io.ByteArrayInputStream inputStream,
java.io.ByteArrayOutputStream outputStream)
Construct an External Codec for Bytes
|
Modifier and Type | Method and Description |
---|---|
java.lang.Byte |
read()
Read a single object from the stream
|
java.lang.Byte |
read(int length)
Read a array of specified length from the stream
|
void |
write(java.lang.Byte object)
Write an object to the stream
|
public ExternalByteCodec(java.io.ByteArrayInputStream inputStream, java.io.ByteArrayOutputStream outputStream)
inputStream
- the input bytestream to read fromoutputStream
- the output bytestream to write topublic java.lang.Byte read()
CRAMCodec
public void write(java.lang.Byte object)
CRAMCodec
object
- the object to writepublic java.lang.Byte read(int length)
CRAMCodec
length
- the number of elements to read