Class ExternalByteEncoding
- java.lang.Object
-
- htsjdk.samtools.cram.encoding.CRAMEncoding<Byte>
-
- htsjdk.samtools.cram.encoding.external.ExternalByteEncoding
-
public class ExternalByteEncoding extends CRAMEncoding<Byte>
-
-
Constructor Summary
Constructors Constructor Description ExternalByteEncoding(int externalBlockContentId)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description CRAMCodec<Byte>
buildCodec(BitInputStream coreBlockInputStream, BitOutputStream coreBlockOutputStream, Map<Integer,ByteArrayInputStream> externalBlockInputMap, Map<Integer,ByteArrayOutputStream> externalBlockOutputMap)
Instantiate the codec represented by this encoding by supplying it with the appropriate streamsstatic ExternalByteEncoding
fromParams(byte[] params)
byte[]
toByteArray()
Subclasses but have a defined serialization of their parameters-
Methods inherited from class htsjdk.samtools.cram.encoding.CRAMEncoding
buildReadCodec, buildWriteCodec, id, toParam
-
-
-
-
Method Detail
-
fromParams
public static ExternalByteEncoding fromParams(byte[] params)
-
toByteArray
public byte[] toByteArray()
Description copied from class:CRAMEncoding
Subclasses but have a defined serialization of their parameters- Specified by:
toByteArray
in classCRAMEncoding<Byte>
- Returns:
- a byte array representing a specific encoding's parameter values
-
buildCodec
public CRAMCodec<Byte> buildCodec(BitInputStream coreBlockInputStream, BitOutputStream coreBlockOutputStream, Map<Integer,ByteArrayInputStream> externalBlockInputMap, Map<Integer,ByteArrayOutputStream> externalBlockOutputMap)
Description copied from class:CRAMEncoding
Instantiate the codec represented by this encoding by supplying it with the appropriate streams- Specified by:
buildCodec
in classCRAMEncoding<Byte>
- Parameters:
coreBlockInputStream
- the core block bit stream aCoreCodec
will read fromcoreBlockOutputStream
- the core block bit stream aCoreCodec
will write toexternalBlockInputMap
- the external block byte stream aExternalCodec
will read fromexternalBlockOutputMap
- the external block byte stream aExternalCodec
will write to- Returns:
- a newly instantiated codec
-
-