Class JPXDecode
java.lang.Object
org.openpdf.renderer.decode.JPXDecode
decode a JPX encoded imagestream into a byte array. This class uses Java's
image_io JPEG2000 reader to do the decoding.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected static ByteBufferdecode(PDFObject dict, ByteBuffer buf, PDFObject params) private static BufferedImageloadImageData(ByteBuffer buf)
-
Constructor Details
-
JPXDecode
public JPXDecode()
-
-
Method Details
-
decode
protected static ByteBuffer decode(PDFObject dict, ByteBuffer buf, PDFObject params) throws PDFParseException - Parameters:
dict-buf-params-- Returns:
- Throws:
PDFParseException
-
loadImageData
- Parameters:
buf-- Returns:
- Throws:
PDFParseExceptionIOException
-