Package org.jpedal.jbig2.io
Class JBIG2
java.lang.Object
com.idrsolutions.image.filter.Filter
org.jpedal.jbig2.io.JBIG2
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbyte[]decode(byte[] data) voiddecode(BufferedInputStream bis, BufferedOutputStream streamCache, String cacheName, Map<String, String> cachedObjects) byte[]encode(byte[] data) voidencode(BufferedInputStream bis, BufferedOutputStream bos) static byte[]JBIGDecode(byte[] data, byte[] globalData) JBIG decode using our own classMethods inherited from class com.idrsolutions.image.filter.Filter
hasError, setEncHash, setupCachedObjectForDecoding
-
Constructor Details
-
JBIG2
-
-
Method Details
-
decode
-
decode
public void decode(BufferedInputStream bis, BufferedOutputStream streamCache, String cacheName, Map<String, String> cachedObjects) throws Exception -
encode
public byte[] encode(byte[] data) -
encode
-
JBIGDecode
JBIG decode using our own class- Parameters:
data- encoded streamglobalData- parameters to control decoding- Returns:
- decoded stream
- Throws:
Exception- if problem decoding data
-