Class ExternalByteArrayCodec
java.lang.Object
htsjdk.samtools.cram.encoding.external.ExternalByteArrayCodec
- All Implemented Interfaces:
CRAMCodec<byte[]>
Encode/decode byte arrays using an External Data Block.
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionExternalByteArrayCodec(CRAMByteReader inputReader, CRAMByteWriter outputWriter) -
Method Summary
-
Field Details
-
inputReader
-
outputWriter
-
-
Constructor Details
-
ExternalByteArrayCodec
-
-
Method Details
-
read
public byte[] read(int length) Description copied from interface:CRAMCodecRead a array of specified length from the stream- Parameters:
length- the number of elements to read- Returns:
- an object from the stream
-
write
public void write(byte[] object) Description copied from interface:CRAMCodecWrite an object to the stream- Parameters:
object- the object to write
-
read
public byte[] read()Description copied from interface:CRAMCodecRead a single object from the stream- Returns:
- an object from the stream
-