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 Summary
Fields inherited from interface de.jarnbjo.util.io.BitInputStream
BIG_ENDIAN, LITTLE_ENDIAN -
Constructor Summary
Constructors Constructor Description ByteArrayBitInputStream(byte[] byteArray)ByteArrayBitInputStream(byte[] byteArray, int int1) -
Method Summary
Modifier 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.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Constructor Details
-
ByteArrayBitInputStream
public ByteArrayBitInputStream(byte[] byteArray) -
ByteArrayBitInputStream
public ByteArrayBitInputStream(byte[] byteArray, int int1)
-
-
Method Details
-
getBit
public boolean getBit() throws java.io.IOException- Specified by:
getBitin interfaceBitInputStream- Throws:
java.io.IOException
-
getInt
public int getInt(int int1) throws java.io.IOException- Specified by:
getIntin interfaceBitInputStream- Throws:
java.io.IOException
-
getSignedInt
public int getSignedInt(int int1) throws java.io.IOException- Specified by:
getSignedIntin interfaceBitInputStream- Throws:
java.io.IOException
-
getInt
- Specified by:
getIntin interfaceBitInputStream- Throws:
java.io.IOException
-
getLong
public long getLong(int int1) throws java.io.IOException- Specified by:
getLongin interfaceBitInputStream- Throws:
java.io.IOException
-
readSignedRice
public int readSignedRice(int int1) throws java.io.IOException- Specified by:
readSignedRicein interfaceBitInputStream- Throws:
java.io.IOException
-
readSignedRice
public void readSignedRice(int int1, int[] intArray, int int2, int int3) throws java.io.IOException- Specified by:
readSignedRicein interfaceBitInputStream- Throws:
java.io.IOException
-
align
public void align()- Specified by:
alignin interfaceBitInputStream
-
setEndian
public void setEndian(int int1)- Specified by:
setEndianin interfaceBitInputStream
-
getSource
public byte[] getSource()
-