Class BitInputStreamFlexible
- java.lang.Object
-
- java.io.InputStream
-
- java.io.FilterInputStream
-
- org.apache.commons.imaging.formats.tiff.itu_t4.BitInputStreamFlexible
-
- All Implemented Interfaces:
java.io.Closeable,java.lang.AutoCloseable
final class BitInputStreamFlexible extends java.io.FilterInputStreamInput stream that allows reading up to 32 bits across byte boundaries in most significant bit first order.
-
-
Field Summary
Fields Modifier and Type Field Description private longbytesReadprivate intcacheprivate intcacheBitsRemaining
-
Constructor Summary
Constructors Constructor Description BitInputStreamFlexible(java.io.InputStream is)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidflushCache()longgetBytesRead()intread()intreadBits(int count)
-
-
-
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 count) throws java.io.IOException- Throws:
java.io.IOException
-
-