Class TIFFImageReader
- java.lang.Object
-
- javax.imageio.ImageReader
-
- com.sun.media.imageioimpl.plugins.tiff.TIFFImageReader
-
public class TIFFImageReader extends ImageReader
-
-
Field Summary
-
Fields inherited from class javax.imageio.ImageReader
availableLocales, ignoreMetadata, input, locale, minIndex, originatingProvider, progressListeners, seekForwardOnly, updateListeners, warningListeners, warningLocales
-
-
Constructor Summary
Constructors Constructor Description TIFFImageReader(ImageReaderSpi originatingProvider)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
canReadRaster()
ImageReadParam
getDefaultReadParam()
protected static BufferedImage
getDestination(ImageReadParam param, Iterator imageTypes, int width, int height)
int
getHeight(int imageIndex)
IIOMetadata
getImageMetadata(int imageIndex)
Iterator
getImageTypes(int imageIndex)
int
getNumImages(boolean allowSearch)
int
getNumThumbnails(int imageIndex)
IIOMetadata
getStreamMetadata()
IIOMetadata
getStreamMetadata(int imageIndex)
int
getTileHeight(int imageIndex)
int
getTileWidth(int imageIndex)
int
getWidth(int imageIndex)
boolean
hasThumbnails(int imageIndex)
boolean
isImageTiled(int imageIndex)
boolean
isRandomAccessEasy(int imageIndex)
BufferedImage
read(int imageIndex, ImageReadParam param)
RenderedImage
readAsRenderedImage(int imageIndex, ImageReadParam param)
Raster
readRaster(int imageIndex, ImageReadParam param)
boolean
readSupportsThumbnails()
BufferedImage
readTile(int imageIndex, int tileX, int tileY)
void
reset()
protected void
resetLocal()
void
setInput(Object input, boolean seekForwardOnly, boolean ignoreMetadata)
-
Methods inherited from class javax.imageio.ImageReader
abort, abortRequested, addIIOReadProgressListener, addIIOReadUpdateListener, addIIOReadWarningListener, checkReadParamBandSettings, clearAbortRequest, computeRegions, dispose, getAspectRatio, getAvailableLocales, getFormatName, getImageMetadata, getInput, getLocale, getMinIndex, getOriginatingProvider, getRawImageType, getSourceRegion, getStreamMetadata, getThumbnailHeight, getThumbnailWidth, getTileGridXOffset, getTileGridYOffset, isIgnoringMetadata, isSeekForwardOnly, processImageComplete, processImageProgress, processImageStarted, processImageUpdate, processPassComplete, processPassStarted, processReadAborted, processSequenceComplete, processSequenceStarted, processThumbnailComplete, processThumbnailPassComplete, processThumbnailPassStarted, processThumbnailProgress, processThumbnailStarted, processThumbnailUpdate, processWarningOccurred, processWarningOccurred, read, readAll, readAll, readerSupportsThumbnails, readThumbnail, readTileRaster, removeAllIIOReadProgressListeners, removeAllIIOReadUpdateListeners, removeAllIIOReadWarningListeners, removeIIOReadProgressListener, removeIIOReadUpdateListener, removeIIOReadWarningListener, setInput, setInput, setLocale
-
-
-
-
Constructor Detail
-
TIFFImageReader
public TIFFImageReader(ImageReaderSpi originatingProvider)
-
-
Method Detail
-
setInput
public void setInput(Object input, boolean seekForwardOnly, boolean ignoreMetadata)
- Overrides:
setInput
in classImageReader
-
getNumImages
public int getNumImages(boolean allowSearch) throws IOException
- Specified by:
getNumImages
in classImageReader
- Throws:
IOException
-
getStreamMetadata
public IIOMetadata getStreamMetadata() throws IIOException
- Specified by:
getStreamMetadata
in classImageReader
- Throws:
IIOException
-
getWidth
public int getWidth(int imageIndex) throws IOException
- Specified by:
getWidth
in classImageReader
- Throws:
IOException
-
getHeight
public int getHeight(int imageIndex) throws IOException
- Specified by:
getHeight
in classImageReader
- Throws:
IOException
-
getImageTypes
public Iterator getImageTypes(int imageIndex) throws IIOException
- Specified by:
getImageTypes
in classImageReader
- Throws:
IIOException
-
getImageMetadata
public IIOMetadata getImageMetadata(int imageIndex) throws IIOException
- Specified by:
getImageMetadata
in classImageReader
- Throws:
IIOException
-
getStreamMetadata
public IIOMetadata getStreamMetadata(int imageIndex) throws IIOException
- Throws:
IIOException
-
isRandomAccessEasy
public boolean isRandomAccessEasy(int imageIndex) throws IOException
- Overrides:
isRandomAccessEasy
in classImageReader
- Throws:
IOException
-
readSupportsThumbnails
public boolean readSupportsThumbnails()
-
hasThumbnails
public boolean hasThumbnails(int imageIndex)
- Overrides:
hasThumbnails
in classImageReader
-
getNumThumbnails
public int getNumThumbnails(int imageIndex) throws IOException
- Overrides:
getNumThumbnails
in classImageReader
- Throws:
IOException
-
getDefaultReadParam
public ImageReadParam getDefaultReadParam()
- Overrides:
getDefaultReadParam
in classImageReader
-
isImageTiled
public boolean isImageTiled(int imageIndex) throws IOException
- Overrides:
isImageTiled
in classImageReader
- Throws:
IOException
-
getTileWidth
public int getTileWidth(int imageIndex) throws IOException
- Overrides:
getTileWidth
in classImageReader
- Throws:
IOException
-
getTileHeight
public int getTileHeight(int imageIndex) throws IOException
- Overrides:
getTileHeight
in classImageReader
- Throws:
IOException
-
readTile
public BufferedImage readTile(int imageIndex, int tileX, int tileY) throws IOException
- Overrides:
readTile
in classImageReader
- Throws:
IOException
-
canReadRaster
public boolean canReadRaster()
- Overrides:
canReadRaster
in classImageReader
-
readRaster
public Raster readRaster(int imageIndex, ImageReadParam param) throws IOException
- Overrides:
readRaster
in classImageReader
- Throws:
IOException
-
readAsRenderedImage
public RenderedImage readAsRenderedImage(int imageIndex, ImageReadParam param) throws IOException
- Overrides:
readAsRenderedImage
in classImageReader
- Throws:
IOException
-
read
public BufferedImage read(int imageIndex, ImageReadParam param) throws IOException
- Specified by:
read
in classImageReader
- Throws:
IOException
-
reset
public void reset()
- Overrides:
reset
in classImageReader
-
resetLocal
protected void resetLocal()
-
getDestination
protected static BufferedImage getDestination(ImageReadParam param, Iterator imageTypes, int width, int height) throws IIOException
- Throws:
IIOException
-
-