htsjdk.samtools.cram.encoding
Class SubexpIntegerEncoding
java.lang.Object
htsjdk.samtools.cram.encoding.SubexpIntegerEncoding
- All Implemented Interfaces:
- Encoding<java.lang.Integer>
public class SubexpIntegerEncoding
- extends java.lang.Object
- implements Encoding<java.lang.Integer>
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ENCODING_ID
public static final EncodingID ENCODING_ID
SubexpIntegerEncoding
public SubexpIntegerEncoding()
SubexpIntegerEncoding
public SubexpIntegerEncoding(int k)
SubexpIntegerEncoding
public SubexpIntegerEncoding(int offset,
int k)
id
public EncodingID id()
- Specified by:
id
in interface Encoding<java.lang.Integer>
toParam
public static EncodingParams toParam(int offset,
int k)
toByteArray
public byte[] toByteArray()
- Specified by:
toByteArray
in interface Encoding<java.lang.Integer>
fromByteArray
public void fromByteArray(byte[] data)
- Specified by:
fromByteArray
in interface Encoding<java.lang.Integer>
buildCodec
public BitCodec<java.lang.Integer> buildCodec(java.util.Map<java.lang.Integer,java.io.InputStream> inputMap,
java.util.Map<java.lang.Integer,ExposedByteArrayOutputStream> outputMap)
- Specified by:
buildCodec
in interface Encoding<java.lang.Integer>