Class CCITTFaxG31DDecodeInputStream

  • All Implemented Interfaces:
    java.io.Closeable, java.lang.AutoCloseable, CCITTFaxConstants

    public class CCITTFaxG31DDecodeInputStream
    extends java.io.InputStream
    implements CCITTFaxConstants
    This is a CCITT Group 3 1D decoder (ITU T.4).
    Version:
    $Revision$
    • Constructor Detail

      • CCITTFaxG31DDecodeInputStream

        public CCITTFaxG31DDecodeInputStream​(java.io.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 columns
        rows - 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​(java.io.InputStream source,
                                             int columns,
                                             boolean encodedByteAlign)
        Creates a new decoder.
        Parameters:
        source - the input stream containing the compressed data.
        columns - the number of columns
        encodedByteAlign - true if each encoded scan line is filled to a byte boundary, false if not
    • Method Detail

      • markSupported

        public boolean markSupported()
        Overrides:
        markSupported in class java.io.InputStream
      • read

        public int read()
                 throws java.io.IOException
        Specified by:
        read in class java.io.InputStream
        Throws:
        java.io.IOException