Class PackBits

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

public final class PackBits extends Object
  • Constructor Details

    • PackBits

      private PackBits()
  • 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
    • findNextDuplicate

      private static int findNextDuplicate(byte[] bytes, int start)
    • findRunLength

      private static int findRunLength(byte[] bytes, int start)