Class ExternalByteEncoding
java.lang.Object
htsjdk.samtools.cram.encoding.CRAMEncoding<Byte>
htsjdk.samtools.cram.encoding.external.ExternalEncoding<Byte>
htsjdk.samtools.cram.encoding.external.ExternalByteEncoding
-
Field Summary
Fields inherited from class htsjdk.samtools.cram.encoding.external.ExternalEncoding
externalBlockContentId -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuildCodec(SliceBlocksReadStreams sliceBlocksReadStreams, SliceBlocksWriteStreams sliceBlocksWriteStreams) Instantiate the codec represented by this encoding by supplying it with the appropriate streamsstatic ExternalByteEncodingfromSerializedEncodingParams(byte[] serializedParams) Create a new instance of this encoding using the (ITF8 encoded) serializedParams.Methods inherited from class htsjdk.samtools.cram.encoding.external.ExternalEncoding
toSerializedEncodingParams, toStringMethods inherited from class htsjdk.samtools.cram.encoding.CRAMEncoding
buildReadCodec, buildWriteCodec, id, toEncodingDescriptor
-
Constructor Details
-
ExternalByteEncoding
public ExternalByteEncoding(int externalBlockContentId)
-
-
Method Details
-
fromSerializedEncodingParams
Create a new instance of this encoding using the (ITF8 encoded) serializedParams.- Parameters:
serializedParams-- Returns:
- ExternalByteEncoding with parameters populated from serializedParams
-
buildCodec
public CRAMCodec<Byte> buildCodec(SliceBlocksReadStreams sliceBlocksReadStreams, SliceBlocksWriteStreams sliceBlocksWriteStreams) Description copied from class:CRAMEncodingInstantiate the codec represented by this encoding by supplying it with the appropriate streams- Specified by:
buildCodecin classCRAMEncoding<Byte>- Parameters:
sliceBlocksReadStreams- the core block bit stream aCoreCodecwill read fromsliceBlocksWriteStreams- the core block bit stream aCoreCodecwill write to- Returns:
- a newly instantiated codec
-