Class ExternalByteCodec
- java.lang.Object
-
- htsjdk.samtools.cram.encoding.external.ExternalCodec<Byte>
-
- htsjdk.samtools.cram.encoding.external.ExternalByteCodec
-
public class ExternalByteCodec extends ExternalCodec<Byte>
Encode Bytes using an External Data Block
-
-
Field Summary
-
Fields inherited from class htsjdk.samtools.cram.encoding.external.ExternalCodec
inputStream, outputStream
-
-
Constructor Summary
Constructors Constructor Description ExternalByteCodec(ByteArrayInputStream inputStream, ByteArrayOutputStream outputStream)Construct an External Codec for Bytes
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Byteread()Read a single object from the streamByteread(int length)Read a array of specified length from the streamvoidwrite(Byte object)Write an object to the stream
-
-
-
Constructor Detail
-
ExternalByteCodec
public ExternalByteCodec(ByteArrayInputStream inputStream, ByteArrayOutputStream outputStream)
Construct an External Codec for Bytes- Parameters:
inputStream- the input bytestream to read fromoutputStream- the output bytestream to write to
-
-
Method Detail
-
read
public Byte read()
Description copied from interface:CRAMCodecRead a single object from the stream- 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
-
-