Class PackBits
java.lang.Object
org.apache.commons.imaging.common.PackBits
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbyte[]
compress
(byte[] bytes) byte[]
decompress
(byte[] bytes, int expected) private int
findNextDuplicate
(byte[] bytes, int start) private int
findRunLength
(byte[] bytes, int start)
-
Constructor Details
-
PackBits
public PackBits()
-
-
Method Details
-
decompress
- Throws:
ImageReadException
-
findNextDuplicate
private int findNextDuplicate(byte[] bytes, int start) -
findRunLength
private int findRunLength(byte[] bytes, int start) -
compress
- Throws:
IOException
-