Package org.apache.commons.imaging.common.mylzw

## 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

- - ### Constructor Summary

    Constructors
    Constructor | Description
    --- | ---
    `MyBitInputStream​(InputStream is, ByteOrder byteOrder)` |

  - ### Method Summary

    All Methods Instance Methods Concrete Methods
    Modifier and Type | Method | Description
    --- | --- | ---
    `void` | `flushCache()` |
    `long` | `getBytesRead()` |
    `int` | `read()` |
    `int` | `readBits​(int sampleBits)` |
    `void` | `setTiffLZWMode()` |

    - ### Methods inherited from class java.io.InputStream

      `available, close, mark, markSupported, nullInputStream, read, read, readAllBytes, readNBytes, readNBytes, reset, skip, transferTo`

    - ### Methods inherited from class java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### Constructor Detail

    - #### MyBitInputStream

          public MyBitInputStream​(InputStream is,
                                  ByteOrder byteOrder)

  - ### Method Detail

    - #### 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()