Class WBMPImageReader
- java.lang.Object
-
- javax.imageio.ImageReader
-
- com.sun.media.imageioimpl.plugins.wbmp.WBMPImageReader
-
public class WBMPImageReader extends ImageReader
This class is the Java Image IO plugin reader for WBMP images. It may subsample the image, clip the image, and shift the decoded image origin if the proper decoding parameter are set in the providedWBMPImageReadParam
.
-
-
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 WBMPImageReader(ImageReaderSpi originator)
ConstructsWBMPImageReader
from the providedImageReaderSpi
.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
canReadRaster()
ImageReadParam
getDefaultReadParam()
int
getHeight(int imageIndex)
IIOMetadata
getImageMetadata(int imageIndex)
Iterator
getImageTypes(int imageIndex)
int
getNumImages(boolean allowSearch)
Overrides the method defined in the superclass.IIOMetadata
getStreamMetadata()
int
getWidth(int imageIndex)
boolean
isRandomAccessEasy(int imageIndex)
BufferedImage
read(int imageIndex, ImageReadParam param)
void
readHeader()
Raster
readRaster(int imageIndex, ImageReadParam param)
void
reset()
void
setInput(Object input, boolean seekForwardOnly, boolean ignoreMetadata)
Overrides the method defined in the superclass.-
Methods inherited from class javax.imageio.ImageReader
abort, abortRequested, addIIOReadProgressListener, addIIOReadUpdateListener, addIIOReadWarningListener, checkReadParamBandSettings, clearAbortRequest, computeRegions, dispose, getAspectRatio, getAvailableLocales, getDestination, getFormatName, getImageMetadata, getInput, getLocale, getMinIndex, getNumThumbnails, getOriginatingProvider, getRawImageType, getSourceRegion, getStreamMetadata, getThumbnailHeight, getThumbnailWidth, getTileGridXOffset, getTileGridYOffset, getTileHeight, getTileWidth, hasThumbnails, isIgnoringMetadata, isImageTiled, isSeekForwardOnly, processImageComplete, processImageProgress, processImageStarted, processImageUpdate, processPassComplete, processPassStarted, processReadAborted, processSequenceComplete, processSequenceStarted, processThumbnailComplete, processThumbnailPassComplete, processThumbnailPassStarted, processThumbnailProgress, processThumbnailStarted, processThumbnailUpdate, processWarningOccurred, processWarningOccurred, read, readAll, readAll, readAsRenderedImage, readerSupportsThumbnails, readThumbnail, readTile, readTileRaster, removeAllIIOReadProgressListeners, removeAllIIOReadUpdateListeners, removeAllIIOReadWarningListeners, removeIIOReadProgressListener, removeIIOReadUpdateListener, removeIIOReadWarningListener, setInput, setInput, setLocale
-
-
-
-
Constructor Detail
-
WBMPImageReader
public WBMPImageReader(ImageReaderSpi originator)
ConstructsWBMPImageReader
from the providedImageReaderSpi
.
-
-
Method Detail
-
setInput
public void setInput(Object input, boolean seekForwardOnly, boolean ignoreMetadata)
Overrides the method defined in the superclass.- Overrides:
setInput
in classImageReader
-
getNumImages
public int getNumImages(boolean allowSearch) throws IOException
Overrides the method defined in the superclass.- Specified by:
getNumImages
in classImageReader
- Throws:
IOException
-
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
-
isRandomAccessEasy
public boolean isRandomAccessEasy(int imageIndex) throws IOException
- Overrides:
isRandomAccessEasy
in classImageReader
- Throws:
IOException
-
readHeader
public void readHeader() throws IOException
- Throws:
IOException
-
getImageTypes
public Iterator getImageTypes(int imageIndex) throws IOException
- Specified by:
getImageTypes
in classImageReader
- Throws:
IOException
-
getDefaultReadParam
public ImageReadParam getDefaultReadParam()
- Overrides:
getDefaultReadParam
in classImageReader
-
getImageMetadata
public IIOMetadata getImageMetadata(int imageIndex) throws IOException
- Specified by:
getImageMetadata
in classImageReader
- Throws:
IOException
-
getStreamMetadata
public IIOMetadata getStreamMetadata() throws IOException
- Specified by:
getStreamMetadata
in classImageReader
- Throws:
IOException
-
read
public BufferedImage read(int imageIndex, ImageReadParam param) throws IOException
- Specified by:
read
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
-
reset
public void reset()
- Overrides:
reset
in classImageReader
-
-