Class PackBits
- java.lang.Object
-
- org.apache.commons.imaging.common.PackBits
-
public class PackBits extends java.lang.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)private intfindNextDuplicate(byte[] bytes, int start)private intfindRunLength(byte[] bytes, int start)
-
-
-
Method Detail
-
decompress
public byte[] decompress(byte[] bytes, int expected) throws ImageReadException- Throws:
ImageReadException
-
findNextDuplicate
private int findNextDuplicate(byte[] bytes, int start)
-
findRunLength
private int findRunLength(byte[] bytes, int start)
-
compress
public byte[] compress(byte[] bytes) throws java.io.IOException- Throws:
java.io.IOException
-
-