Package org.loboevolution.pdfview.decode
Class CCITTFaxDecode
java.lang.Object
org.loboevolution.pdfview.decode.CCITTFaxDecode
CCITTFaxDecode class.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected static byte[]decode.protected static ByteBufferdecode(PDFObject dict, ByteBuffer buf, PDFObject params) decode.static booleangetOptionFieldBoolean(PDFObject dict, String name, boolean defaultValue) getOptionFieldBoolean.static intgetOptionFieldInt(PDFObject dict, String name, int defaultValue) getOptionFieldInt.
-
Constructor Details
-
CCITTFaxDecode
public CCITTFaxDecode()
-
-
Method Details
-
decode
protected static ByteBuffer decode(PDFObject dict, ByteBuffer buf, PDFObject params) throws IOException decode.
- Parameters:
dict- aPDFObjectobject.buf- aByteBufferobject.params- aPDFObjectobject.- Returns:
- a
ByteBufferobject. - Throws:
IOException- if any.
-
decode
decode.
- Parameters:
dict- aPDFObjectobject.source- an array ofobjects.invalid reference
byte- Returns:
- an array of
objects.
invalid reference
byte - Throws:
IOException- if any.
-
getOptionFieldInt
public static int getOptionFieldInt(PDFObject dict, String name, int defaultValue) throws IOException getOptionFieldInt.
- Parameters:
dict- aPDFObjectobject.name- aStringobject.defaultValue- aIntegerobject.- Returns:
- a
Integerobject. - Throws:
IOException- if any.
-
getOptionFieldBoolean
public static boolean getOptionFieldBoolean(PDFObject dict, String name, boolean defaultValue) throws IOException getOptionFieldBoolean.
- Parameters:
dict- aPDFObjectobject.name- aStringobject.defaultValue- a boolean.- Returns:
- a boolean.
- Throws:
IOException- if any.
-