org.apache.pdfbox.io.ccitt
Class CCITTFaxG31DDecodeInputStream

java.lang.Object
  extended by java.io.InputStream
      extended by org.apache.pdfbox.io.ccitt.CCITTFaxG31DDecodeInputStream
All Implemented Interfaces:
Closeable, CCITTFaxConstants

public class CCITTFaxG31DDecodeInputStream
extends InputStream
implements 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
CCITTFaxG31DDecodeInputStream(InputStream source, int columns)
          Creates a new decoder.
CCITTFaxG31DDecodeInputStream(InputStream source, int columns, int rows)
          Creates a new decoder.
 
Method Summary
 boolean markSupported()
          
 int read()
          
 
Methods inherited from class java.io.InputStream
available, close, mark, read, read, reset, skip
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CCITTFaxG31DDecodeInputStream

public CCITTFaxG31DDecodeInputStream(InputStream source,
                                     int columns,
                                     int rows)
Creates a new decoder.

Parameters:
source - the input stream containing the compressed data.
columns - the number of columns
rows - the number of rows (0 if undefined)

CCITTFaxG31DDecodeInputStream

public CCITTFaxG31DDecodeInputStream(InputStream source,
                                     int columns)
Creates a new decoder.

Parameters:
source - the input stream containing the compressed data.
columns - the number of columns
Method Detail

markSupported

public boolean markSupported()

Overrides:
markSupported in class InputStream

read

public int read()
         throws IOException

Specified by:
read in class InputStream
Throws:
IOException