Class PackBits
- java.lang.Object
-
- org.apache.commons.imaging.common.PackBits
-
public final class PackBits extends java.lang.Object
-
-
Constructor Summary
Constructors Modifier Constructor Description privatePackBits()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static byte[]compress(byte[] bytes)static byte[]decompress(byte[] bytes, int expected)private static intfindNextDuplicate(byte[] bytes, int start)private static intfindRunLength(byte[] bytes, int start)
-
-
-
Method Detail
-
compress
public static byte[] compress(byte[] bytes) throws java.io.IOException- Throws:
java.io.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)
-
-