org.apache.commons.imaging.common.mylzw

## Class BitsToByteInputStream

- java.lang.Object
- - java.io.InputStream
  - - org.apache.commons.imaging.common.mylzw.BitsToByteInputStream

- All Implemented Interfaces:
    Closeable, AutoCloseable

      public class BitsToByteInputStream
      extends InputStream

- - ### Constructor Summary

    Constructors
    Constructor and Description
    `BitsToByteInputStream(MyBitInputStream is, int desiredDepth)`

  - ### Method Summary

    All Methods Instance Methods Concrete Methods
    Modifier and Type | Method and Description
    --- | ---
    `int` | `read()`
    `int` | `readBits(int bitCount)`
    `int[]` | `readBitsArray(int sampleBits, int length)`

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

    - #### BitsToByteInputStream

          public BitsToByteInputStream(MyBitInputStream is,
                                       int desiredDepth)

  - ### Method Detail

    - #### read

          public int read()
                   throws IOException

      Specified by:
        `read` in class `InputStream`
      Throws:
        `IOException`

    - #### readBits

          public int readBits(int bitCount)
                       throws IOException

      Throws:
        `IOException`

    - #### readBitsArray

          public int[] readBitsArray(int sampleBits,
                                     int length)
                              throws IOException

      Throws:
        `IOException`

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