Package org.apache.commons.imaging.mylzw
Class MyBitInputStream
- java.lang.Object
-
- java.io.InputStream
-
- java.io.FilterInputStream
-
- org.apache.commons.imaging.mylzw.MyBitInputStream
-
- All Implemented Interfaces:
java.io.Closeable,java.lang.AutoCloseable
public class MyBitInputStream extends java.io.FilterInputStream
-
-
Field Summary
Fields Modifier and Type Field Description private intbitCacheprivate intbitsInCacheprivate java.nio.ByteOrderbyteOrderprivate longbytesReadprivate booleantiffLZWMode
-
Constructor Summary
Constructors Constructor Description MyBitInputStream(java.io.InputStream is, java.nio.ByteOrder byteOrder, boolean tiffLZWMode)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidflushCache()longgetBytesRead()intread()intreadBits(int sampleBits)
-
-
-
Method Detail
-
flushCache
public void flushCache()
-
getBytesRead
public long getBytesRead()
-
read
public int read() throws java.io.IOException- Overrides:
readin classjava.io.FilterInputStream- Throws:
java.io.IOException
-
readBits
public int readBits(int sampleBits) throws java.io.IOException- Throws:
java.io.IOException
-
-