| Modifier and Type | Field and Description |
|---|---|
| private static final int | |
| private int[] | |
| private char[] | |
| private int | |
| private int | |
| private TIFFDecompressor | |
| private int[] | |
| private int | |
| private int | |
| private int | |
| private int | |
| private int | |
| private int | |
| private int[] | |
| private boolean | |
| private int | |
| private TIFFImageMetadata | |
| private ImageReadParam | |
| private List | |
| private HashMap | |
| private int | |
| private int | |
| private int | |
| private int | |
| private int | |
| private int | |
| private int[] | |
| private static final int | |
| private int | |
| private int[] | |
| private int | |
| private int | |
| private int | |
| private int | |
| private ImageInputStream | |
| private TIFFStreamMetadata | |
| private BufferedImage | |
| private int | |
| private int | |
| private int | |
| private int | |
| private int |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public boolean | canReadRaster()
Overrides javax. Returns |
| private void | |
| private void | |
| pack-priv void | forwardWarningMessage(String warning)
Package scope method to allow decompressors, for example, to emit warning messages. |
| private int | |
| public ImageReadParam | getDefaultReadParam()
Overrides javax. Returns a default |
| private int | |
| public int | getHeight(int imageIndex)
Implements abstract javax. Returns the height in pixels of the given image within the input source. |
| public IIOMetadata | getImageMetadata(int imageIndex)
Implements abstract javax. Returns an |
| public Iterator | getImageTypes(int imageIndex)
Implements abstract javax. Returns an |
| public int | getNumImages(boolean allowSearch)
Implements abstract javax. Returns the number of images, not including thumbnails, available from the current input source. |
| public int | getNumThumbnails(int imageIndex)
Overrides javax. Returns the number of thumbnail preview images associated with the given image. |
| private int | |
| public IIOMetadata | getStreamMetadata()
Implements abstract javax. Returns an |
| public IIOMetadata | |
| public int | getTileHeight(int imageIndex)
Overrides javax. Returns the height of a tile in the given image. |
| private long | |
| private int | |
| private long | |
| private int | |
| public int | getTileWidth(int imageIndex)
Overrides javax. Returns the width of a tile in the given image. |
| private int | |
| public int | getWidth(int imageIndex)
Implements abstract javax. Returns the width in pixels of the given image within the input source. |
| public boolean | hasThumbnails(int imageIndex)
Overrides javax. Returns |
| private static int | |
| private static int | |
| private void | initializeFromMetadata()
Initializes these instance variables from the image metadata: compression width height samplesPerPixel numBands colorMap photometricInterpretation sampleFormat bitsPerSample extraSamples tileOrStripWidth tileOrStripHeight |
| public boolean | isImageTiled(int imageIndex)
Overrides javax. Returns |
| public boolean | isRandomAccessEasy(int imageIndex)
Overrides javax. Returns |
| private int | |
| private void | |
| public BufferedImage | read(int imageIndex, ImageReadParam param)
Implements abstract javax. Reads the image indexed by |
| public RenderedImage | readAsRenderedImage(int imageIndex, ImageReadParam param)
Overrides javax. Returns a |
| private void | |
| private void | |
| public Raster | readRaster(int imageIndex, ImageReadParam param)
Overrides javax. Returns a new |
| public boolean | |
| public BufferedImage | readTile(int imageIndex, int tileX, int tileY)
Overrides javax. Reads the tile indicated by the |
| private void | |
| public void | |
| protected void | |
| private void | |
| public void | setInput(Object input, boolean seekForwardOnly, boolean ignoreMetadata)
Overrides javax. Sets the input source to use to the given
|
| BITS_PER_SAMPLE_MAX | back to summary |
|---|---|
| private static final int BITS_PER_SAMPLE_MAX | |
| bitsPerSample | back to summary |
|---|---|
| private int[] bitsPerSample | |
| colorMap | back to summary |
|---|---|
| private char[] colorMap | |
| compression | back to summary |
|---|---|
| private int compression | |
| currIndex | back to summary |
|---|---|
| private int currIndex | |
| decompressor | back to summary |
|---|---|
| private TIFFDecompressor decompressor | |
| destinationBands | back to summary |
|---|---|
| private int[] destinationBands | |
| dstHeight | back to summary |
|---|---|
| private int dstHeight | |
| dstMinX | back to summary |
|---|---|
| private int dstMinX | |
| dstMinY | back to summary |
|---|---|
| private int dstMinY | |
| dstWidth | back to summary |
|---|---|
| private int dstWidth | |
| dstXOffset | back to summary |
|---|---|
| private int dstXOffset | |
| dstYOffset | back to summary |
|---|---|
| private int dstYOffset | |
| extraSamples | back to summary |
|---|---|
| private int[] extraSamples | |
| gotHeader | back to summary |
|---|---|
| private boolean gotHeader | |
| height | back to summary |
|---|---|
| private int height | |
| imageMetadata | back to summary |
|---|---|
| private TIFFImageMetadata imageMetadata | |
| imageReadParam | back to summary |
|---|---|
| private ImageReadParam imageReadParam | |
| imageStartPosition | back to summary |
|---|---|
| private List<Long> imageStartPosition | |
| imageTypeMap | back to summary |
|---|---|
| private HashMap<Integer, List<ImageTypeSpecifier>> imageTypeMap | |
| numBands | back to summary |
|---|---|
| private int numBands | |
| numImages | back to summary |
|---|---|
| private int numImages | |
| photometricInterpretation | back to summary |
|---|---|
| private int photometricInterpretation | |
| pixelsRead | back to summary |
|---|---|
| private int pixelsRead | |
| pixelsToRead | back to summary |
|---|---|
| private int pixelsToRead | |
| planarConfiguration | back to summary |
|---|---|
| private int planarConfiguration | |
| sampleFormat | back to summary |
|---|---|
| private int[] sampleFormat | |
| SAMPLES_PER_PIXEL_MAX | back to summary |
|---|---|
| private static final int SAMPLES_PER_PIXEL_MAX | |
| samplesPerPixel | back to summary |
|---|---|
| private int samplesPerPixel | |
| sourceBands | back to summary |
|---|---|
| private int[] sourceBands | |
| sourceXOffset | back to summary |
|---|---|
| private int sourceXOffset | |
| sourceYOffset | back to summary |
|---|---|
| private int sourceYOffset | |
| srcXSubsampling | back to summary |
|---|---|
| private int srcXSubsampling | |
| srcYSubsampling | back to summary |
|---|---|
| private int srcYSubsampling | |
| stream | back to summary |
|---|---|
| private ImageInputStream stream | |
| streamMetadata | back to summary |
|---|---|
| private TIFFStreamMetadata streamMetadata | |
| theImage | back to summary |
|---|---|
| private BufferedImage theImage | |
| tileOrStripHeight | back to summary |
|---|---|
| private int tileOrStripHeight | |
| tileOrStripWidth | back to summary |
|---|---|
| private int tileOrStripWidth | |
| tilesAcross | back to summary |
|---|---|
| private int tilesAcross | |
| tilesDown | back to summary |
|---|---|
| private int tilesDown | |
| width | back to summary |
|---|---|
| private int width | |
| TIFFImageReader | back to summary |
|---|---|
| public TIFFImageReader(ImageReaderSpi originatingProvider) | |
| canReadRaster | back to summary |
|---|---|
| public boolean canReadRaster() Overrides javax. Doc from javax. Returns The default implementation returns
| |
| checkIndex | back to summary |
|---|---|
| private void checkIndex(int imageIndex) | |
| decodeTile | back to summary |
|---|---|
| private void decodeTile(int ti, int tj, int band) throws IOException | |
| forwardWarningMessage | back to summary |
|---|---|
| pack-priv void forwardWarningMessage(String warning) Package scope method to allow decompressors, for example, to emit warning messages. | |
| getCompression | back to summary |
|---|---|
| private int getCompression() | |
| getDefaultReadParam | back to summary |
|---|---|
| public ImageReadParam getDefaultReadParam() Overrides javax. Doc from javax. Returns a default The default implementation constructs and returns a new
| |
| getHeight | back to summary |
|---|---|
| private int getHeight() | |
| getHeight | back to summary |
|---|---|
| public int getHeight(int imageIndex) throws IOException Implements abstract javax. Doc from javax. Returns the height in pixels of the given image within the input source. If the image can be rendered to a user-specified size, then this method returns the default height.
| |
| getImageMetadata | back to summary |
|---|---|
| public IIOMetadata getImageMetadata(int imageIndex) throws IIOException Implements abstract javax. Doc from javax. Returns an
| |
| getImageTypes | back to summary |
|---|---|
| public Iterator Implements abstract javax. Doc from javax. Returns an The first element of the iterator should be the most "natural" type for decoding the image with as little loss as possible. For example, for a JPEG image the first entry should be an RGB image, even though the image data is stored internally in a YCbCr color space.
| |
| getNumImages | back to summary |
|---|---|
| public int getNumImages(boolean allowSearch) throws IOException Implements abstract javax. Doc from javax. Returns the number of images, not including thumbnails, available from the current input source. Note that some image formats (such as animated GIF) do not
specify how many images are present in the stream. Thus
determining the number of images will require the entire stream
to be scanned and may require memory for buffering. If images
are to be processed in order, it may be more efficient to
simply call
| |
| getNumThumbnails | back to summary |
|---|---|
| public int getNumThumbnails(int imageIndex) throws IOException Overrides javax. Doc from javax. Returns the number of thumbnail preview images associated with
the given image. If the format does not support thumbnails,
( The default implementation returns 0 without checking its argument.
| |
| getPlanarConfiguration | back to summary |
|---|---|
| private int getPlanarConfiguration() | |
| getStreamMetadata | back to summary |
|---|---|
| public IIOMetadata getStreamMetadata() throws IIOException Implements abstract javax. Doc from javax. Returns an
| |
| getStreamMetadata | back to summary |
|---|---|
| public IIOMetadata getStreamMetadata(int imageIndex) throws IIOException | |
| getTileHeight | back to summary |
|---|---|
| public int getTileHeight(int imageIndex) throws IOException Overrides javax. Doc from javax. Returns the height of a tile in the given image. The default implementation simply returns
| |
| getTileOrStripByteCount | back to summary |
|---|---|
| private long getTileOrStripByteCount(int tileIndex) throws IOException | |
| getTileOrStripHeight | back to summary |
|---|---|
| private int getTileOrStripHeight() | |
| getTileOrStripOffset | back to summary |
|---|---|
| private long getTileOrStripOffset(int tileIndex) throws IIOException | |
| getTileOrStripWidth | back to summary |
|---|---|
| private int getTileOrStripWidth() | |
| getTileWidth | back to summary |
|---|---|
| public int getTileWidth(int imageIndex) throws IOException Overrides javax. Doc from javax. Returns the width of a tile in the given image. The default implementation simply returns
| |
| getWidth | back to summary |
|---|---|
| private int getWidth() | |
| getWidth | back to summary |
|---|---|
| public int getWidth(int imageIndex) throws IOException Implements abstract javax. Doc from javax. Returns the width in pixels of the given image within the input source. If the image can be rendered to a user-specified size, then this method returns the default width.
| |
| hasThumbnails | back to summary |
|---|---|
| public boolean hasThumbnails(int imageIndex) Overrides javax. Doc from javax. Returns The default implementation returns
| |
| iceil | back to summary |
|---|---|
| private static int iceil(int num, int den) | |
| ifloor | back to summary |
|---|---|
| private static int ifloor(int num, int den) | |
| initializeFromMetadata | back to summary |
|---|---|
| private void initializeFromMetadata() throws IIOException Initializes these instance variables from the image metadata: compression width height samplesPerPixel numBands colorMap photometricInterpretation sampleFormat bitsPerSample extraSamples tileOrStripWidth tileOrStripHeight | |
| isImageTiled | back to summary |
|---|---|
| public boolean isImageTiled(int imageIndex) throws IOException Overrides javax. Doc from javax. Returns A reader plug-in may choose whether or not to expose tiling
that is present in the image as it is stored. It may even
choose to advertise tiling when none is explicitly present. In
general, tiling should only be advertised if there is some
advantage (in speed or space) to accessing individual tiles.
Regardless of whether the reader advertises tiling, it must be
capable of reading an arbitrary rectangular region specified in
an A reader for which all images are guaranteed to be tiled,
or are guaranteed not to be tiled, may return The default implementation just returns
| |
| isRandomAccessEasy | back to summary |
|---|---|
| public boolean isRandomAccessEasy(int imageIndex) throws IOException Overrides javax. Doc from javax. Returns This is merely a hint for programs that wish to be
efficient; all readers must be able to read arbitrary regions
as specified in an Note that formats that return A reader for which all images are guaranteed to support
easy random access, or are guaranteed not to support easy
random access, may return The default implementation returns
| |
| locateImage | back to summary |
|---|---|
| private int locateImage(int imageIndex) throws IIOException | |
| prepareRead | back to summary |
|---|---|
| private void prepareRead(int imageIndex, ImageReadParam param) throws IOException | |
| read | back to summary |
|---|---|
| public BufferedImage read(int imageIndex, ImageReadParam param) throws IOException Implements abstract javax. Doc from javax. Reads the image indexed by The actual Any registered The set of source bands to be read and destination bands to
be written is determined by calling If the supplied
| |
| readAsRenderedImage | back to summary |
|---|---|
| public RenderedImage readAsRenderedImage(int imageIndex, ImageReadParam param) throws IOException Overrides javax. Doc from javax. Returns a The semantics of this method may differ from those of the
other If the supplied The default implementation just calls
| |
| readHeader | back to summary |
|---|---|
| private void readHeader() throws IIOException | |
| readMetadata | back to summary |
|---|---|
| private void readMetadata() throws IIOException | |
| readRaster | back to summary |
|---|---|
| public Raster readRaster(int imageIndex, ImageReadParam param) throws IOException Overrides javax. Doc from javax. Returns a new This method allows formats that normally apply a color conversion, such as JPEG, and formats that do not normally have an associated colorspace, such as remote sensing or medical imaging data, to provide access to raw pixel data. Any registered If If the supplied The default implementation throws an
| |
| readSupportsThumbnails | back to summary |
|---|---|
| public boolean readSupportsThumbnails() | |
| readTile | back to summary |
|---|---|
| public BufferedImage readTile(int imageIndex, int tileX, int tileY) throws IOException Overrides javax. Doc from javax. Reads the tile indicated by the This method is merely a convenience equivalent to calling
The default implementation returns the entire image if
| |
| reportProgress | back to summary |
|---|---|
| private void reportProgress() | |
| reset | back to summary |
|---|---|
| public void reset() Overrides javax. Doc from javax. Restores the The default implementation calls
| |
| resetLocal | back to summary |
|---|---|
| protected void resetLocal() | |
| seekToImage | back to summary |
|---|---|
| private void seekToImage(int imageIndex) throws IIOException | |
| setInput | back to summary |
|---|---|
| public void setInput(Object input, boolean seekForwardOnly, boolean ignoreMetadata) Overrides javax. Doc from javax. Sets the input source to use to the given
The The Subclasses should take care to remove any cached information based on the previous stream, such as header information or partially decoded image data. Use of a general The default implementation checks the
| |