Package org.apache.commons.imaging.common

## Class PackBits

- java.lang.Object
- - org.apache.commons.imaging.common.PackBits

-     public class PackBits
      extends Object

- - ### Constructor Summary

    Constructors
    Constructor | Description
    --- | ---
    `PackBits()` |

  - ### Method Summary

    All Methods Instance Methods Concrete Methods
    Modifier and Type | Method | Description
    --- | --- | ---
    `byte[]` | `compress​(byte[] bytes)` |
    `byte[]` | `decompress​(byte[] bytes, int expected)` |

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

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

- - ### Constructor Detail

    - #### PackBits

          public PackBits()

  - ### Method Detail

    - #### decompress

          public byte[] decompress​(byte[] bytes,
                                   int expected)
                            throws ImageReadException

      Throws:
        `ImageReadException`

    - #### compress

          public byte[] compress​(byte[] bytes)
                          throws IOException

      Throws:
        `IOException`