Class CCITTFaxG31DDecodeInputStream
- java.lang.Object
-
- java.io.InputStream
-
- com.tom_roush.pdfbox.filter.ccitt.CCITTFaxG31DDecodeInputStream
-
- All Implemented Interfaces:
Closeable,AutoCloseable
public final class CCITTFaxG31DDecodeInputStream extends InputStream
This is a CCITT Group 3 1D decoder (ITU T.4).
-
-
Constructor Summary
Constructors Constructor Description CCITTFaxG31DDecodeInputStream(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
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanmarkSupported()intread()-
Methods inherited from class java.io.InputStream
available, close, mark, read, read, readAllBytes, readNBytes, reset, skip, transferTo
-
-
-
-
Constructor Detail
-
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
public CCITTFaxG31DDecodeInputStream(InputStream source, int columns, boolean encodedByteAlign)
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 Detail
-
markSupported
public boolean markSupported()
- Overrides:
markSupportedin classInputStream
-
read
public int read() throws IOException- Specified by:
readin classInputStream- Throws:
IOException
-
-