org.apache.commons.imaging.common.mylzw

## Class MyBitOutputStream

- java.lang.Object
- - java.io.OutputStream
  - - org.apache.commons.imaging.common.mylzw.MyBitOutputStream

- All Implemented Interfaces:
    Closeable, Flushable, AutoCloseable

      public class MyBitOutputStream
      extends OutputStream

- - ### Constructor Summary

    Constructors
    Constructor and Description
    `MyBitOutputStream(OutputStream os, ByteOrder byteOrder)`

  - ### Method Summary

    All Methods Instance Methods Concrete Methods
    Modifier and Type | Method and Description
    --- | ---
    `void` | `flushCache()`
    `int` | `getBytesWritten()`
    `void` | `write(int value)`
    `void` | `writeBits(int value, int sampleBits)`

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

      `close, flush, write, write`

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

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

- - ### Constructor Detail

    - #### MyBitOutputStream

          public MyBitOutputStream(OutputStream os,
                                   ByteOrder byteOrder)

  - ### Method Detail

    - #### write

          public void write(int value)
                     throws IOException

      Specified by:
        `write` in class `OutputStream`
      Throws:
        `IOException`

    - #### writeBits

          public void writeBits(int value,
                                int sampleBits)
                         throws IOException

      Throws:
        `IOException`

    - #### flushCache

          public void flushCache()
                          throws IOException

      Throws:
        `IOException`

    - #### getBytesWritten

          public int getBytesWritten()

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