javax.imageio

Class ImageReader


public abstract class ImageReader
extends Object

Field Summary

protected Locale[]
availableLocales
protected boolean
ignoreMetadata
protected Object
input
protected Locale
locale
protected int
minIndex
protected ImageReaderSpi
originatingProvider
protected List
progressListeners
protected boolean
seekForwardOnly
protected List
updateListeners
protected List
warningListeners
protected List
warningLocales

Constructor Summary

ImageReader(ImageReaderSpi originatingProvider)

Method Summary

void
abort()
protected boolean
abortRequested()
void
addIIOReadProgressListener(IIOReadProgressListener listener)
void
addIIOReadUpdateListener(IIOReadUpdateListener listener)
void
addIIOReadWarningListener(IIOReadWarningListener listener)
boolean
canReadRaster()
protected void
clearAbortRequest()
void
dispose()
float
getAspectRatio(int imageIndex)
Locale[]
getAvailableLocales()
ImageReadParam
getDefaultReadParam()
String
getFormatName()
int
getHeight(int imageIndex)
IIOMetadata
getImageMetadata(int imageIndex)
Iterator
getImageTypes(int imageIndex)
Object
getInput()
Locale
getLocale()
int
getNumImages(boolean allowSearch)
int
getNumThumbnails(int imageIndex)
ImageReaderSpi
getOriginatingProvider()
IIOMetadata
getStreamMetadata()
int
getThumbnailHeight(int imageIndex, int thumbnailIndex)
int
getThumbnailWidth(int imageIndex, int thumbnailIndex)
int
getTileGridXOffset(int imageIndex)
int
getTileGridYOffset(int imageIndex)
int
getTileHeight(int imageIndex)
int
getTileWidth(int imageIndex)
int
getWidth(int imageIndex)
boolean
hasThumbnails(int imageIndex)
boolean
isIgnoringMetadata()
boolean
isImageTiled(int imageIndex)
boolean
isRandomAccessEasy(int imageIndex)
boolean
isSeekForwardOnly()
protected void
processImageComplete()
protected void
processImageProgress(float percentageDone)
protected void
processImageStarted(int imageIndex)
protected void
processImageUpdate(BufferedImage image, int minX, int minY, int width, int height, int periodX, int periodY, int[] bands)
protected void
processPassComplete(BufferedImage image)
protected void
processPassStarted(BufferedImage image, int pass, int minPass, int maxPass, int minX, int minY, int periodX, int periodY, int[] bands)
protected void
processReadAborted()
protected void
processSequenceComplete()
protected void
processSequenceStarted(int minIndex)
protected void
processThumbnailComplete()
protected void
processThumbnailPassComplete(BufferedImage thumbnail)
protected void
processThumbnailPassStarted(BufferedImage thumbnail, int pass, int minPass, int maxPass, int minX, int minY, int periodX, int periodY, int[] bands)
protected void
processThumbnailProgress(float percentageDone)
protected void
processThumbnailStarted(int imageIndex, int thumbnailIndex)
protected void
processThumbnailUpdate(BufferedImage image, int minX, int minY, int width, int height, int periodX, int periodY, int[] bands)
protected void
processWarningOccurred(String warning)
BufferedImage
read(int imageIndex, ImageReadParam param)
Raster
readRaster(int imageIndex, ImageReadParam param)
BufferedImage
readThumbnail(int imageIndex, int thumbnailIndex)
boolean
readerSupportsThumbnails()
void
removeAllIIOReadProgressListeners()
void
removeAllIIOReadUpdateListeners()
void
removeAllIIOReadWarningListeners()
void
removeIIOReadProgressListener(IIOReadProgressListener listener)
void
removeIIOReadUpdateListener(IIOReadUpdateListener listener)
void
removeIIOReadWarningListener(IIOReadWarningListener listener)
void
setInput(Object in)
void
setInput(Object in, boolean seekForwardOnly)
void
setInput(Object input, boolean seekForwardOnly, boolean ignoreMetadata)
void
setLocale(Locale locale)

Methods inherited from class java.lang.Object

clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

Field Details

availableLocales

protected Locale[] availableLocales


ignoreMetadata

protected boolean ignoreMetadata


input

protected Object input


locale

protected Locale locale


minIndex

protected int minIndex


originatingProvider

protected ImageReaderSpi originatingProvider


progressListeners

protected List progressListeners


seekForwardOnly

protected boolean seekForwardOnly


updateListeners

protected List updateListeners


warningListeners

protected List warningListeners


warningLocales

protected List warningLocales

Constructor Details

ImageReader

protected ImageReader(ImageReaderSpi originatingProvider)

Method Details

abort

public void abort()


abortRequested

protected boolean abortRequested()


addIIOReadProgressListener

public void addIIOReadProgressListener(IIOReadProgressListener listener)


addIIOReadUpdateListener

public void addIIOReadUpdateListener(IIOReadUpdateListener listener)


addIIOReadWarningListener

public void addIIOReadWarningListener(IIOReadWarningListener listener)


canReadRaster

public boolean canReadRaster()


clearAbortRequest

protected void clearAbortRequest()


dispose

public void dispose()


getAspectRatio

public float getAspectRatio(int imageIndex)
            throws IOException


getAvailableLocales

public Locale[] getAvailableLocales()


getDefaultReadParam

public ImageReadParam getDefaultReadParam()


getFormatName

public String getFormatName()
            throws IOException


getHeight

public int getHeight(int imageIndex)
            throws IOException


getImageMetadata

public IIOMetadata getImageMetadata(int imageIndex)
            throws IOException


getImageTypes

public Iterator getImageTypes(int imageIndex)
            throws IOException


getInput

public Object getInput()


getLocale

public Locale getLocale()


getNumImages

public int getNumImages(boolean allowSearch)
            throws IOException


getNumThumbnails

public int getNumThumbnails(int imageIndex)
            throws IOException


getOriginatingProvider

public ImageReaderSpi getOriginatingProvider()


getStreamMetadata

public IIOMetadata getStreamMetadata()
            throws IOException


getThumbnailHeight

public int getThumbnailHeight(int imageIndex,
                              int thumbnailIndex)
            throws IOException


getThumbnailWidth

public int getThumbnailWidth(int imageIndex,
                             int thumbnailIndex)
            throws IOException


getTileGridXOffset

public int getTileGridXOffset(int imageIndex)
            throws IOException


getTileGridYOffset

public int getTileGridYOffset(int imageIndex)
            throws IOException


getTileHeight

public int getTileHeight(int imageIndex)
            throws IOException


getTileWidth

public int getTileWidth(int imageIndex)
            throws IOException


getWidth

public int getWidth(int imageIndex)
            throws IOException


hasThumbnails

public boolean hasThumbnails(int imageIndex)
            throws IOException


isIgnoringMetadata

public boolean isIgnoringMetadata()


isImageTiled

public boolean isImageTiled(int imageIndex)
            throws IOException


isRandomAccessEasy

public boolean isRandomAccessEasy(int imageIndex)
            throws IOException


isSeekForwardOnly

public boolean isSeekForwardOnly()


processImageComplete

protected void processImageComplete()


processImageProgress

protected void processImageProgress(float percentageDone)


processImageStarted

protected void processImageStarted(int imageIndex)


processImageUpdate

protected void processImageUpdate(BufferedImage image,
                                  int minX,
                                  int minY,
                                  int width,
                                  int height,
                                  int periodX,
                                  int periodY,
                                  int[] bands)


processPassComplete

protected void processPassComplete(BufferedImage image)


processPassStarted

protected void processPassStarted(BufferedImage image,
                                  int pass,
                                  int minPass,
                                  int maxPass,
                                  int minX,
                                  int minY,
                                  int periodX,
                                  int periodY,
                                  int[] bands)


processReadAborted

protected void processReadAborted()


processSequenceComplete

protected void processSequenceComplete()


processSequenceStarted

protected void processSequenceStarted(int minIndex)


processThumbnailComplete

protected void processThumbnailComplete()


processThumbnailPassComplete

protected void processThumbnailPassComplete(BufferedImage thumbnail)


processThumbnailPassStarted

protected void processThumbnailPassStarted(BufferedImage thumbnail,
                                           int pass,
                                           int minPass,
                                           int maxPass,
                                           int minX,
                                           int minY,
                                           int periodX,
                                           int periodY,
                                           int[] bands)


processThumbnailProgress

protected void processThumbnailProgress(float percentageDone)


processThumbnailStarted

protected void processThumbnailStarted(int imageIndex,
                                       int thumbnailIndex)


processThumbnailUpdate

protected void processThumbnailUpdate(BufferedImage image,
                                      int minX,
                                      int minY,
                                      int width,
                                      int height,
                                      int periodX,
                                      int periodY,
                                      int[] bands)


processWarningOccurred

protected void processWarningOccurred(String warning)


read

public BufferedImage read(int imageIndex,
                          ImageReadParam param)
            throws IOException


readRaster

public Raster readRaster(int imageIndex,
                         ImageReadParam param)
            throws IOException


readThumbnail

public BufferedImage readThumbnail(int imageIndex,
                                   int thumbnailIndex)
            throws IOException


readerSupportsThumbnails

public boolean readerSupportsThumbnails()


removeAllIIOReadProgressListeners

public void removeAllIIOReadProgressListeners()


removeAllIIOReadUpdateListeners

public void removeAllIIOReadUpdateListeners()


removeAllIIOReadWarningListeners

public void removeAllIIOReadWarningListeners()


removeIIOReadProgressListener

public void removeIIOReadProgressListener(IIOReadProgressListener listener)


removeIIOReadUpdateListener

public void removeIIOReadUpdateListener(IIOReadUpdateListener listener)


removeIIOReadWarningListener

public void removeIIOReadWarningListener(IIOReadWarningListener listener)


setInput

public void setInput(Object in)


setInput

public void setInput(Object in,
                     boolean seekForwardOnly)


setInput

public void setInput(Object input,
                     boolean seekForwardOnly,
                     boolean ignoreMetadata)


setLocale

public void setLocale(Locale locale)


ImageReader.java -- Decodes raster images. Copyright (C) 2004 Free Software Foundation, Inc. This file is part of GNU Classpath. GNU Classpath is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2, or (at your option) any later version. GNU Classpath is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with GNU Classpath; see the file COPYING. If not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. Linking this library statically or dynamically with other modules is making a combined work based on this library. Thus, the terms and conditions of the GNU General Public License cover the whole combination. As a special exception, the copyright holders of this library give you permission to link this library with independent modules to produce an executable, regardless of the license terms of these independent modules, and to copy and distribute the resulting executable under terms of your choice, provided that you also meet, for each linked independent module, the terms and conditions of the license of that module. An independent module is a module which is not derived from or based on this library. If you modify this library, you may extend this exception to your version of the library, but you are not obligated to do so. If you do not wish to do so, delete this exception statement from your version.