Package org.apache.commons.imaging.mylzw
Class BitsToByteInputStream
- java.lang.Object
-
- java.io.InputStream
-
- java.io.FilterInputStream
-
- org.apache.commons.imaging.mylzw.BitsToByteInputStream
-
- All Implemented Interfaces:
java.io.Closeable,java.lang.AutoCloseable
public class BitsToByteInputStream extends java.io.FilterInputStream
-
-
Field Summary
Fields Modifier and Type Field Description private intdesiredDepth
-
Constructor Summary
Constructors Constructor Description BitsToByteInputStream(MyBitInputStream is, int desiredDepth)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intread()intreadBits(int bitCount)int[]readBitsArray(int sampleBits, int length)
-
-
-
Constructor Detail
-
BitsToByteInputStream
public BitsToByteInputStream(MyBitInputStream is, int desiredDepth)
-
-
Method Detail
-
read
public int read() throws java.io.IOException- Overrides:
readin classjava.io.FilterInputStream- 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
-
-