Package org.apache.commons.imaging.mylzw

# Class BitsToByteInputStream

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

All Implemented Interfaces:
  `Closeable`, `AutoCloseable`

public class BitsToByteInputStream extends FilterInputStream

- ## Field Summary

  ### Fields inherited from class java.io.FilterInputStream

  `in`

- ## Constructor Summary

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

- ## Method Summary

  Modifier and Type
  Method
  Description
  `int`
  `read()`
  `int`
  `readBits(int bitCount)`
  `int[]`
  `readBitsArray(int sampleBits, int length)`

  ### Methods inherited from class java.io.FilterInputStream

  `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 Details

  - ### BitsToByteInputStream

    public BitsToByteInputStream(MyBitInputStream is, int desiredDepth)

- ## Method Details

  - ### read

    public int read() throws IOException
    Overrides:
      `read` in class `FilterInputStream`
    Throws:
      `IOException`

  - ### readBits

    public int readBits(int bitCount) throws IOException
    Throws:
      `IOException`

  - ### readBitsArray

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