Package de.jarnbjo.util.io
Class ByteArrayBitInputStream
java.lang.Object
de.jarnbjo.util.io.ByteArrayBitInputStream
- All Implemented Interfaces:
- BitInputStream
public class ByteArrayBitInputStream extends java.lang.Object implements BitInputStream
- 
Field SummaryFields inherited from interface de.jarnbjo.util.io.BitInputStreamBIG_ENDIAN, LITTLE_ENDIAN
- 
Constructor SummaryConstructors Constructor Description ByteArrayBitInputStream(byte[] byteArray)ByteArrayBitInputStream(byte[] byteArray, int int1)
- 
Method SummaryModifier and Type Method Description voidalign()booleangetBit()intgetInt(int int1)intgetInt(HuffmanNode huffmanNode)longgetLong(int int1)intgetSignedInt(int int1)byte[]getSource()intreadSignedRice(int int1)voidreadSignedRice(int int1, int[] intArray, int int2, int int3)voidsetEndian(int int1)Methods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
- 
Constructor Details- 
ByteArrayBitInputStreampublic ByteArrayBitInputStream(byte[] byteArray)
- 
ByteArrayBitInputStreampublic ByteArrayBitInputStream(byte[] byteArray, int int1)
 
- 
- 
Method Details- 
getBitpublic boolean getBit() throws java.io.IOException- Specified by:
- getBitin interface- BitInputStream
- Throws:
- java.io.IOException
 
- 
getIntpublic int getInt(int int1) throws java.io.IOException- Specified by:
- getIntin interface- BitInputStream
- Throws:
- java.io.IOException
 
- 
getSignedIntpublic int getSignedInt(int int1) throws java.io.IOException- Specified by:
- getSignedIntin interface- BitInputStream
- Throws:
- java.io.IOException
 
- 
getInt- Specified by:
- getIntin interface- BitInputStream
- Throws:
- java.io.IOException
 
- 
getLongpublic long getLong(int int1) throws java.io.IOException- Specified by:
- getLongin interface- BitInputStream
- Throws:
- java.io.IOException
 
- 
readSignedRicepublic int readSignedRice(int int1) throws java.io.IOException- Specified by:
- readSignedRicein interface- BitInputStream
- Throws:
- java.io.IOException
 
- 
readSignedRicepublic void readSignedRice(int int1, int[] intArray, int int2, int int3) throws java.io.IOException- Specified by:
- readSignedRicein interface- BitInputStream
- Throws:
- java.io.IOException
 
- 
alignpublic void align()- Specified by:
- alignin interface- BitInputStream
 
- 
setEndianpublic void setEndian(int int1)- Specified by:
- setEndianin interface- BitInputStream
 
- 
getSourcepublic byte[] getSource()
 
-