Package htsjdk.samtools.cram.encoding
Interface CRAMCodec<T>
- Type Parameters:
T
- data series type to be read or written
- All Known Implementing Classes:
BetaIntegerCodec
,CoreCodec
,ExternalByteArrayCodec
public interface CRAMCodec<T>
An interface that defines requirements for serializing/deserializing objects into and from a stream.
-
Method Summary
-
Method Details
-
read
T read()Read a single object from the stream- Returns:
- an object from the stream
-
read
Read a array of specified length from the stream- Parameters:
length
- the number of elements to read- Returns:
- an object from the stream
-
write
Write an object to the stream- Parameters:
value
- the object to write
-