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 and Description
    `MyBitInputStream(InputStream is, ByteOrder byteOrder)`

  - ### Method Summary

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

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

      `available, close, mark, markSupported, read, read, reset, skip`

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

Copyright © 2007–2020 The Apache Software Foundation. All rights reserved.