Package de.jarnbjo.util.io
Class ByteArrayBitInputStream
java.lang.Object
de.jarnbjo.util.io.ByteArrayBitInputStream
- All Implemented Interfaces:
BitInputStream
-
Field Summary
Fields inherited from interface de.jarnbjo.util.io.BitInputStream
BIG_ENDIAN, LITTLE_ENDIAN -
Constructor Summary
ConstructorsConstructorDescriptionByteArrayBitInputStream(byte[] byteArray) ByteArrayBitInputStream(byte[] byteArray, int int1) -
Method Summary
Modifier and TypeMethodDescriptionvoidalign()booleangetBit()intgetInt(int int1) intgetInt(HuffmanNode huffmanNode) longgetLong(int int1) intgetSignedInt(int int1) byte[]intreadSignedRice(int int1) voidreadSignedRice(int int1, int[] intArray, int int2, int int3) voidsetEndian(int int1)
-
Constructor Details
-
ByteArrayBitInputStream
public ByteArrayBitInputStream(byte[] byteArray) -
ByteArrayBitInputStream
public ByteArrayBitInputStream(byte[] byteArray, int int1)
-
-
Method Details
-
getBit
- Specified by:
getBitin interfaceBitInputStream- Throws:
IOException
-
getInt
- Specified by:
getIntin interfaceBitInputStream- Throws:
IOException
-
getSignedInt
- Specified by:
getSignedIntin interfaceBitInputStream- Throws:
IOException
-
getInt
- Specified by:
getIntin interfaceBitInputStream- Throws:
IOException
-
getLong
- Specified by:
getLongin interfaceBitInputStream- Throws:
IOException
-
readSignedRice
- Specified by:
readSignedRicein interfaceBitInputStream- Throws:
IOException
-
readSignedRice
- Specified by:
readSignedRicein interfaceBitInputStream- Throws:
IOException
-
align
public void align()- Specified by:
alignin interfaceBitInputStream
-
setEndian
public void setEndian(int int1) - Specified by:
setEndianin interfaceBitInputStream
-
getSource
public byte[] getSource()
-