Class TIFFInputStream

All Implemented Interfaces:
Closeable, AutoCloseable

public class TIFFInputStream extends DecodeInputStream
TIFFInputStream Performs TIFF image filtering of an input stream
  • Constructor Details

    • TIFFInputStream

      public TIFFInputStream(InputStream in, int inSize, int outSize, FilterParams diparams)
      Creates an input stream filter.
      Parameters:
      in - the input stream
    • TIFFInputStream

      public TIFFInputStream(InputStream in, FilterParams p)
    • TIFFInputStream

      public TIFFInputStream(InputStream in)
  • Method Details

    • fill

      public void fill()
      Set the TIFF predictor. This must be done before reading any bytes. --------- TIFF pre-compression/post-decompression predictors -------- LZW and Flate use these predictors. NOTE: The predictors are all very slow. Hor. differencing, for example, is 100% slower compressing and 600% slower expanding than no predictor. Predictors: 0 (no prediction) 1 DEFAULT (no prediction) Component sizes 1, 2, 4, and 8: 2 hor. differencing (see TIFF 6.0 spec) Component size 8 only: 3..9 unused 10 PNG code 0: None 11 PNG code 1: Sub 12 PNG code 2: Up 13 PNG code 3: Average 14 PNG code 4: Paeth 15 PNG optimum (best efforts)
      Specified by:
      fill in class DecodeInputStream