Package org.apache.commons.imaging.common

# Class PackBits

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

public final class PackBits extends Object

- ## Method Summary

  Modifier and Type
  Method
  Description
  `static byte[]`
  `compress(byte[] bytes)`
  `static byte[]`
  `decompress(byte[] bytes, int expected)`

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

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

- ## Method Details

  - ### compress

    public static byte[] compress(byte[] bytes) throws IOException
    Throws:
      `IOException`

  - ### decompress

    public static byte[] decompress(byte[] bytes, int expected) throws ImagingException
    Throws:
      `ImagingException`