Class BitsToByteInputStream
- java.lang.Object
-
- java.io.InputStream
-
- org.apache.commons.imaging.common.mylzw.BitsToByteInputStream
-
- All Implemented Interfaces:
Closeable
,AutoCloseable
public class BitsToByteInputStream extends InputStream
-
-
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)
-
Methods inherited from class java.io.InputStream
available, close, mark, markSupported, nullInputStream, read, read, readAllBytes, readNBytes, readNBytes, reset, skip, transferTo
-
-
-
-
Constructor Detail
-
BitsToByteInputStream
public BitsToByteInputStream(MyBitInputStream is, int desiredDepth)
-
-
Method Detail
-
read
public int read() throws IOException
- Specified by:
read
in classInputStream
- Throws:
IOException
-
readBits
public int readBits(int bitCount) throws IOException
- Throws:
IOException
-
readBitsArray
public int[] readBitsArray(int sampleBits, int length) throws IOException
- Throws:
IOException
-
-