public final class ThumbsDBImageReader extends ImageReaderBase
CompoundDocument,
Wikipedia: Thumbs.dbimageInputavailableLocales, 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, showItabortRequested, 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, setLocalepublic ThumbsDBImageReader()
protected ThumbsDBImageReader(ThumbsDBImageReaderSpi pProvider)
protected void resetMembers()
resetMembers in class ImageReaderBasepublic void dispose()
dispose in class ImageReaderBasepublic boolean isLoadEagerly()
public void setLoadEagerly(boolean pLoadEagerly)
This is useful mainly if you need to read all the thumbnails, and you need them in random order, as it requires less repositioning in the underlying stream.
pLoadEagerly - true if the reader should read all thumbs on first readpublic BufferedImage read(int pIndex, ImageReadParam pParam) throws IOException
BufferedImage.read in class ImageReaderpIndex - the index of the image to readpParam - additional parameters used while decoding, may be
null, in which case defaults will be usedBufferedImageIndexOutOfBoundsException - 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 usedBufferedImageFileNotFoundException - if the given file name is not found in the
"Catalog" entry of the CompoundDocumentIllegalStateException - if the input source has not been setIOException - if an error occurs during readingpublic void abort()
abort in class ImageReaderpublic void setInput(Object input, boolean seekForwardOnly, boolean ignoreMetadata)
setInput in class ImageReaderBasepublic int getNumImages(boolean allowSearch)
throws IOException
getNumImages in class ImageReaderBaseIOExceptionpublic int getWidth(int pIndex)
throws IOException
getWidth in class ImageReaderIOExceptionpublic int getHeight(int pIndex)
throws IOException
getHeight in class ImageReaderIOExceptionpublic Iterator<ImageTypeSpecifier> getImageTypes(int pIndex) throws IOException
getImageTypes in class ImageReaderIOExceptionpublic boolean isPresent(String pFileName)
public static void main(String[] pArgs) throws IOException
IOExceptionCopyright © 2022. All rights reserved.