Class TIFFInputStream
- java.lang.Object
-
- java.io.InputStream
-
- java.io.FilterInputStream
-
- com.adobe.internal.pdftoolkit.core.filter.DecodeInputStream
-
- com.adobe.internal.pdftoolkit.core.filter.TIFFInputStream
-
- All Implemented Interfaces:
java.io.Closeable
,java.lang.AutoCloseable
public class TIFFInputStream extends DecodeInputStream
TIFFInputStream Performs TIFF image filtering of an input stream
-
-
Constructor Summary
Constructors Constructor Description TIFFInputStream(java.io.InputStream in)
TIFFInputStream(java.io.InputStream in, int inSize, int outSize, FilterParams diparams)
Creates an input stream filter.TIFFInputStream(java.io.InputStream in, FilterParams p)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
fill()
Set the TIFF predictor.-
Methods inherited from class com.adobe.internal.pdftoolkit.core.filter.DecodeInputStream
available, close, getInPos, mark, markSupported, read, read, releaseUnconsumedInput, reset, skip
-
-
-
-
Constructor Detail
-
TIFFInputStream
public TIFFInputStream(java.io.InputStream in, int inSize, int outSize, FilterParams diparams)
Creates an input stream filter.- Parameters:
in
- the input stream
-
TIFFInputStream
public TIFFInputStream(java.io.InputStream in, FilterParams p)
-
TIFFInputStream
public TIFFInputStream(java.io.InputStream in)
-
-
Method Detail
-
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 classDecodeInputStream
-
-