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
ConstructorDescriptionByteArrayBitInputStream
(byte[] byteArray) ByteArrayBitInputStream
(byte[] byteArray, int int1) -
Method Summary
Modifier and TypeMethodDescriptionvoid
align()
boolean
getBit()
int
getInt
(int int1) int
getInt
(HuffmanNode huffmanNode) long
getLong
(int int1) int
getSignedInt
(int int1) byte[]
int
readSignedRice
(int int1) void
readSignedRice
(int int1, int[] intArray, int int2, int int3) void
setEndian
(int int1)
-
Constructor Details
-
ByteArrayBitInputStream
public ByteArrayBitInputStream(byte[] byteArray) -
ByteArrayBitInputStream
public ByteArrayBitInputStream(byte[] byteArray, int int1)
-
-
Method Details
-
getBit
- Specified by:
getBit
in interfaceBitInputStream
- Throws:
IOException
-
getInt
- Specified by:
getInt
in interfaceBitInputStream
- Throws:
IOException
-
getSignedInt
- Specified by:
getSignedInt
in interfaceBitInputStream
- Throws:
IOException
-
getInt
- Specified by:
getInt
in interfaceBitInputStream
- Throws:
IOException
-
getLong
- Specified by:
getLong
in interfaceBitInputStream
- Throws:
IOException
-
readSignedRice
- Specified by:
readSignedRice
in interfaceBitInputStream
- Throws:
IOException
-
readSignedRice
- Specified by:
readSignedRice
in interfaceBitInputStream
- Throws:
IOException
-
align
public void align()- Specified by:
align
in interfaceBitInputStream
-
setEndian
public void setEndian(int int1) - Specified by:
setEndian
in interfaceBitInputStream
-
getSource
public byte[] getSource()
-