Package org.apache.pdfbox.io.ccitt
Class CCITTFaxG31DDecodeInputStream
java.lang.Object
java.io.InputStream
org.apache.pdfbox.io.ccitt.CCITTFaxG31DDecodeInputStream
- All Implemented Interfaces:
Closeable,AutoCloseable,CCITTFaxConstants
This is a CCITT Group 3 1D decoder (ITU T.4).
- Version:
- $Revision$
-
Field Summary
Fields inherited from interface org.apache.pdfbox.io.ccitt.CCITTFaxConstants
BLACK_MAKE_UP, BLACK_TERMINATING, COMPRESSION_GROUP3_1D, COMPRESSION_GROUP3_2D, COMPRESSION_GROUP4_2D, EOL_CODE, LONG_MAKE_UP, WHITE_MAKE_UP, WHITE_TERMINATING -
Constructor Summary
ConstructorsConstructorDescriptionCCITTFaxG31DDecodeInputStream(InputStream source, int columns, boolean encodedByteAlign) Creates a new decoder.CCITTFaxG31DDecodeInputStream(InputStream source, int columns, int rows, boolean encodedByteAlign) Creates a new decoder. -
Method Summary
Methods inherited from class java.io.InputStream
available, close, mark, nullInputStream, read, read, readAllBytes, readNBytes, readNBytes, reset, skip, skipNBytes, transferTo
-
Constructor Details
-
CCITTFaxG31DDecodeInputStream
public CCITTFaxG31DDecodeInputStream(InputStream source, int columns, int rows, boolean encodedByteAlign) Creates a new decoder.- Parameters:
source- the input stream containing the compressed data.columns- the number of columnsrows- the number of rows (0 if undefined)encodedByteAlign- true if each encoded scan line is filled to a byte boundary, false if not
-
CCITTFaxG31DDecodeInputStream
Creates a new decoder.- Parameters:
source- the input stream containing the compressed data.columns- the number of columnsencodedByteAlign- true if each encoded scan line is filled to a byte boundary, false if not
-
-
Method Details
-
markSupported
public boolean markSupported()- Overrides:
markSupportedin classInputStream
-
read
- Specified by:
readin classInputStream- Throws:
IOException
-