Class Predictor.PredictorOutputStream

java.lang.Object
java.io.OutputStream
java.io.FilterOutputStream
org.apache.pdfbox.filter.Predictor.PredictorOutputStream
All Implemented Interfaces:
Closeable, Flushable, AutoCloseable
Enclosing class:
Predictor

private static final class Predictor.PredictorOutputStream extends FilterOutputStream
Output stream that implements predictor decoding. Data is buffered until a complete row is available, which is then decoded and written to the underlying stream. The previous row is retained for decoding the next row.
  • Field Details

    • predictor

      private int predictor
    • colors

      private final int colors
    • bitsPerComponent

      private final int bitsPerComponent
    • columns

      private final int columns
    • rowLength

      private final int rowLength
    • predictorPerRow

      private final boolean predictorPerRow
    • currentRow

      private byte[] currentRow
    • lastRow

      private byte[] lastRow
    • currentRowData

      private int currentRowData
    • predictorRead

      private boolean predictorRead
  • Constructor Details

    • PredictorOutputStream

      PredictorOutputStream(OutputStream out, int predictor, int colors, int bitsPerComponent, int columns)
  • Method Details