Package org.loboevolution.pdfview.decode
Class CCITTFaxDecode
java.lang.Object
org.loboevolution.pdfview.decode.CCITTFaxDecode
CCITTFaxDecode class.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected static byte[]
decode.protected static ByteBuffer
decode
(PDFObject dict, ByteBuffer buf, PDFObject params) decode.static boolean
getOptionFieldBoolean
(PDFObject dict, String name, boolean defaultValue) getOptionFieldBoolean.static int
getOptionFieldInt
(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
- aPDFObject
object.buf
- aByteBuffer
object.params
- aPDFObject
object.- Returns:
- a
ByteBuffer
object. - Throws:
IOException
- if any.
-
decode
decode.
- Parameters:
dict
- aPDFObject
object.source
- an array ofinvalid reference
byte
- Returns:
- an array of
invalid reference
byte
- Throws:
IOException
- if any.
-
getOptionFieldInt
public static int getOptionFieldInt(PDFObject dict, String name, int defaultValue) throws IOException getOptionFieldInt.
- Parameters:
dict
- aPDFObject
object.name
- aString
object.defaultValue
- aInteger
object.- Returns:
- a
Integer
object. - Throws:
IOException
- if any.
-
getOptionFieldBoolean
public static boolean getOptionFieldBoolean(PDFObject dict, String name, boolean defaultValue) throws IOException getOptionFieldBoolean.
- Parameters:
dict
- aPDFObject
object.name
- aString
object.defaultValue
- a boolean.- Returns:
- a boolean.
- Throws:
IOException
- if any.
-