Class BitInputStreamFlexible
java.lang.Object
java.io.InputStream
org.apache.commons.imaging.common.itu_t4.BitInputStreamFlexible
- All Implemented Interfaces:
Closeable
,AutoCloseable
Input stream that allows reading up to 32 bits
across byte boundaries in most significant
bit first order.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class java.io.InputStream
available, close, mark, markSupported, nullInputStream, read, read, readAllBytes, readNBytes, readNBytes, reset, skip, skipNBytes, transferTo
-
Field Details
-
is
-
cache
private int cache -
cacheBitsRemaining
private int cacheBitsRemaining -
bytesRead
private long bytesRead
-
-
Constructor Details
-
BitInputStreamFlexible
BitInputStreamFlexible(InputStream is)
-
-
Method Details
-
read
- Specified by:
read
in classInputStream
- Throws:
IOException
-
readBits
- Throws:
IOException
-
flushCache
public void flushCache() -
getBytesRead
public long getBytesRead()
-