Class BitInputStreamFlexible

java.lang.Object
java.io.InputStream
org.apache.commons.imaging.common.itu_t4.BitInputStreamFlexible
All Implemented Interfaces:
Closeable, AutoCloseable

class BitInputStreamFlexible extends InputStream
Input stream that allows reading up to 32 bits across byte boundaries in most significant bit first order.
  • Field Details

    • is

      private final InputStream is
    • cache

      private int cache
    • cacheBitsRemaining

      private int cacheBitsRemaining
    • bytesRead

      private long bytesRead
  • Constructor Details

    • BitInputStreamFlexible

      BitInputStreamFlexible(InputStream is)
  • Method Details