Class BitsToByteInputStream
- java.lang.Object
-
- java.io.InputStream
-
- org.apache.commons.imaging.common.mylzw.BitsToByteInputStream
-
- All Implemented Interfaces:
java.io.Closeable
,java.lang.AutoCloseable
public class BitsToByteInputStream extends java.io.InputStream
-
-
Field Summary
Fields Modifier and Type Field Description private int
desiredDepth
private MyBitInputStream
is
-
Constructor Summary
Constructors Constructor Description BitsToByteInputStream(MyBitInputStream is, int desiredDepth)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
read()
int
readBits(int bitCount)
int[]
readBitsArray(int sampleBits, int length)
-
-
-
Field Detail
-
is
private final MyBitInputStream is
-
desiredDepth
private final int desiredDepth
-
-
Constructor Detail
-
BitsToByteInputStream
public BitsToByteInputStream(MyBitInputStream is, int desiredDepth)
-
-
Method Detail
-
read
public int read() throws java.io.IOException
- Specified by:
read
in classjava.io.InputStream
- Throws:
java.io.IOException
-
readBits
public int readBits(int bitCount) throws java.io.IOException
- Throws:
java.io.IOException
-
readBitsArray
public int[] readBitsArray(int sampleBits, int length) throws java.io.IOException
- Throws:
java.io.IOException
-
-