T - data series type to be read or writtenpublic interface CRAMCodec<T>
| Modifier and Type | Method and Description |
|---|---|
T |
read()
Read a single object from the stream
|
T |
read(int length)
Read a array of specified length from the stream
|
void |
write(T value)
Write an object to the stream
|
T read()
T read(int length)
length - the number of elements to readvoid write(T value)
value - the object to write