Class MyBitInputStream

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

public class MyBitInputStream extends InputStream
  • Field Details

    • is

      private final InputStream is
    • byteOrder

      private final ByteOrder byteOrder
    • tiffLZWMode

      private boolean tiffLZWMode
    • bytesRead

      private long bytesRead
    • bitsInCache

      private int bitsInCache
    • bitCache

      private int bitCache
  • Constructor Details

  • Method Details

    • read

      public int read() throws IOException
      Specified by:
      read in class InputStream
      Throws:
      IOException
    • setTiffLZWMode

      public void setTiffLZWMode()
    • readBits

      public int readBits(int sampleBits) throws IOException
      Throws:
      IOException
    • flushCache

      public void flushCache()
    • getBytesRead

      public long getBytesRead()