public final class ThumbsDBImageReader
extends com.twelvemonkeys.imageio.ImageReaderBase
CompoundDocument
,
availableLocales, ignoreMetadata, input, locale, minIndex, originatingProvider, progressListeners, seekForwardOnly, updateListeners, warningListeners, warningLocales
Modifier | Constructor and Description |
---|---|
|
ThumbsDBImageReader() |
protected |
ThumbsDBImageReader(ThumbsDBImageReaderSpi pProvider) |
Modifier and Type | Method and Description |
---|---|
void |
abort() |
void |
dispose() |
int |
getHeight(int pIndex) |
Iterator<ImageTypeSpecifier> |
getImageTypes(int pIndex) |
int |
getNumImages(boolean allowSearch) |
int |
getWidth(int pIndex) |
boolean |
isLoadEagerly() |
boolean |
isPresent(String pFileName) |
static void |
main(String[] pArgs) |
BufferedImage |
read(int pIndex,
ImageReadParam pParam)
Reads the image data from the given input stream, and returns it as a
BufferedImage . |
BufferedImage |
read(String pName,
ImageReadParam pParam)
Reads the image data from the given input stream, and returns it as a
BufferedImage . |
protected void |
resetMembers() |
void |
setInput(Object input,
boolean seekForwardOnly,
boolean ignoreMetadata) |
void |
setLoadEagerly(boolean pLoadEagerly)
Instructs the reader wether it should read and cache alle thumbnails
in sequence, during the first read operation.
|
assertInput, checkBounds, fakeAOI, fakeSubsampling, getDestination, getImageMetadata, getStreamMetadata, hasExplicitDestination, reset, showIt
abortRequested, addIIOReadProgressListener, addIIOReadUpdateListener, addIIOReadWarningListener, canReadRaster, checkReadParamBandSettings, clearAbortRequest, computeRegions, getAspectRatio, getAvailableLocales, getDefaultReadParam, getFormatName, getImageMetadata, getInput, getLocale, getMinIndex, getNumThumbnails, getOriginatingProvider, getRawImageType, getSourceRegion, getStreamMetadata, getThumbnailHeight, getThumbnailWidth, getTileGridXOffset, getTileGridYOffset, getTileHeight, getTileWidth, hasThumbnails, isIgnoringMetadata, isImageTiled, isRandomAccessEasy, isSeekForwardOnly, processImageComplete, processImageProgress, processImageStarted, processImageUpdate, processPassComplete, processPassStarted, processReadAborted, processSequenceComplete, processSequenceStarted, processThumbnailComplete, processThumbnailPassComplete, processThumbnailPassStarted, processThumbnailProgress, processThumbnailStarted, processThumbnailUpdate, processWarningOccurred, processWarningOccurred, read, readAll, readAll, readAsRenderedImage, readerSupportsThumbnails, readRaster, readThumbnail, readTile, readTileRaster, removeAllIIOReadProgressListeners, removeAllIIOReadUpdateListeners, removeAllIIOReadWarningListeners, removeIIOReadProgressListener, removeIIOReadUpdateListener, removeIIOReadWarningListener, setInput, setInput, setLocale
public ThumbsDBImageReader()
protected ThumbsDBImageReader(ThumbsDBImageReaderSpi pProvider)
protected void resetMembers()
resetMembers
in class com.twelvemonkeys.imageio.ImageReaderBase
public void dispose()
dispose
in class com.twelvemonkeys.imageio.ImageReaderBase
public boolean isLoadEagerly()
public void setLoadEagerly(boolean pLoadEagerly)
pLoadEagerly
- true
if the reader should read all thumbs on first readpublic BufferedImage read(int pIndex, ImageReadParam pParam) throws IOException
BufferedImage
.read
in class ImageReader
pIndex
- the index of the image to readpParam
- additional parameters used while decoding, may be
null
, in which case defaults will be usedBufferedImage
IndexOutOfBoundsException
- if pIndex
is out of boundsIllegalStateException
- if the input source has not been setIOException
- if an error occurs during readingpublic BufferedImage read(String pName, ImageReadParam pParam) throws IOException
BufferedImage
.pName
- the name of the image to readpParam
- additional parameters used while decoding, may be
null
, in which case defaults will be usedBufferedImage
FileNotFoundException
- if the given file name is not found in the
"Catalog" entry of the CompoundDocument
IllegalStateException
- if the input source has not been setIOException
- if an error occurs during readingpublic void abort()
abort
in class ImageReader
public void setInput(Object input, boolean seekForwardOnly, boolean ignoreMetadata)
setInput
in class com.twelvemonkeys.imageio.ImageReaderBase
public int getNumImages(boolean allowSearch) throws IOException
getNumImages
in class com.twelvemonkeys.imageio.ImageReaderBase
IOException
public int getWidth(int pIndex) throws IOException
getWidth
in class ImageReader
IOException
public int getHeight(int pIndex) throws IOException
getHeight
in class ImageReader
IOException
public Iterator<ImageTypeSpecifier> getImageTypes(int pIndex) throws IOException
getImageTypes
in class ImageReader
IOException
public boolean isPresent(String pFileName)
public static void main(String[] pArgs) throws IOException
IOException
Copyright © 2017. All rights reserved.