htsjdk.samtools.cram.encoding
Class SubexpIntegerEncoding

java.lang.Object
  extended by htsjdk.samtools.cram.encoding.SubexpIntegerEncoding
All Implemented Interfaces:
Encoding<java.lang.Integer>

public class SubexpIntegerEncoding
extends java.lang.Object
implements Encoding<java.lang.Integer>


Field Summary
static EncodingID ENCODING_ID
           
 
Constructor Summary
SubexpIntegerEncoding()
           
SubexpIntegerEncoding(int k)
           
SubexpIntegerEncoding(int offset, int k)
           
 
Method Summary
 BitCodec<java.lang.Integer> buildCodec(java.util.Map<java.lang.Integer,java.io.InputStream> inputMap, java.util.Map<java.lang.Integer,ExposedByteArrayOutputStream> outputMap)
           
 void fromByteArray(byte[] data)
           
 EncodingID id()
           
 byte[] toByteArray()
           
static EncodingParams toParam(int offset, int k)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

ENCODING_ID

public static final EncodingID ENCODING_ID
Constructor Detail

SubexpIntegerEncoding

public SubexpIntegerEncoding()

SubexpIntegerEncoding

public SubexpIntegerEncoding(int k)

SubexpIntegerEncoding

public SubexpIntegerEncoding(int offset,
                             int k)
Method Detail

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>