Class DataReaderStrips
java.lang.Object
org.apache.commons.imaging.formats.tiff.datareaders.ImageDataReader
org.apache.commons.imaging.formats.tiff.datareaders.DataReaderStrips
Provides a data reader for TIFF file images organized by tiles.
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final int
private final ByteOrder
private final int
private final TiffImageData.Strips
private final int
private int
private int
Fields inherited from class org.apache.commons.imaging.formats.tiff.datareaders.ImageDataReader
bitsPerSampleLength, directory, height, photometricInterpreter, predictor, sampleFormat, samplesPerPixel, width
-
Constructor Summary
ConstructorsConstructorDescriptionDataReaderStrips
(TiffDirectory directory, PhotometricInterpreter photometricInterpreter, int bitsPerPixel, int[] bitsPerSample, int predictor, int samplesPerPixel, int sampleFormat, int width, int height, int compression, ByteOrder byteOrder, int rowsPerStrip, TiffImageData.Strips imageData) -
Method Summary
Modifier and TypeMethodDescriptionprivate void
interpretStrip
(ImageBuilder imageBuilder, byte[] bytes, int pixelsPerStrip, int yLimit) readImageData
(Rectangle subImage) void
readImageData
(ImageBuilder imageBuilder) readRasterData
(Rectangle subImage) Defines a method for accessing the floating-point raster data in a TIFF image.Methods inherited from class org.apache.commons.imaging.formats.tiff.datareaders.ImageDataReader
applyPredictor, decompress, getSamplesAsBytes, isHomogenous, resetPredictor, transferBlockToRaster, unpackFloatingPointSamples
-
Field Details
-
bitsPerPixel
private final int bitsPerPixel -
compression
private final int compression -
rowsPerStrip
private final int rowsPerStrip -
byteOrder
-
x
private int x -
y
private int y -
imageData
-
-
Constructor Details
-
DataReaderStrips
public DataReaderStrips(TiffDirectory directory, PhotometricInterpreter photometricInterpreter, int bitsPerPixel, int[] bitsPerSample, int predictor, int samplesPerPixel, int sampleFormat, int width, int height, int compression, ByteOrder byteOrder, int rowsPerStrip, TiffImageData.Strips imageData)
-
-
Method Details
-
interpretStrip
private void interpretStrip(ImageBuilder imageBuilder, byte[] bytes, int pixelsPerStrip, int yLimit) throws ImageReadException, IOException - Throws:
ImageReadException
IOException
-
readImageData
- Specified by:
readImageData
in classImageDataReader
- Throws:
ImageReadException
IOException
-
readImageData
- Specified by:
readImageData
in classImageDataReader
- Throws:
ImageReadException
IOException
-
readRasterData
Description copied from class:ImageDataReader
Defines a method for accessing the floating-point raster data in a TIFF image. These implementations of this method in DataReaderStrips and DataReaderTiled assume that this instance is of a compatible data type (floating-point) and that all access checks have already been performed.- Specified by:
readRasterData
in classImageDataReader
- Parameters:
subImage
- if non-null, instructs the access method to retrieve only a sub-section of the image data.- Returns:
- a valid instance
- Throws:
ImageReadException
- in the event of an incompatible data form.IOException
- in the event of I/O error.
-