Class RawImageReader
java.lang.Object
javax.imageio.ImageReader
com.sun.media.imageioimpl.plugins.raw.RawImageReader
This class is the Java Image IO plugin reader for Raw images.
It may subsample the image, clip the image, select sub-bands,
and shift the decoded image origin if the proper decoding parameter
are set in the provided
PNMImageReadParam.-
Field Summary
Fields inherited from class javax.imageio.ImageReader
availableLocales, ignoreMetadata, input, locale, minIndex, originatingProvider, progressListeners, seekForwardOnly, updateListeners, warningListeners, warningLocales -
Constructor Summary
ConstructorsConstructorDescriptionRawImageReader(ImageReaderSpi originator) ConstructsRawImageReaderfrom the providedImageReaderSpi. -
Method Summary
Modifier and TypeMethodDescriptionbooleanstatic voidcomputeRegionsWrapper(ImageReadParam param, int srcWidth, int srcHeight, BufferedImage image, Rectangle srcRegion, Rectangle destRegion) Wrapper for the protected methodcomputeRegions.booleanThis method wraps the protected methodabortRequestedto allow the abortions be monitored byJ2KReadState.intgetHeight(int imageIndex) getImageMetadata(int imageIndex) getImageTypes(int imageIndex) intgetNumImages(boolean allowSearch) Overrides the method defined in the superclass.intgetTileHeight(int imageIndex) intgetTileWidth(int imageIndex) intgetWidth(int imageIndex) booleanisRandomAccessEasy(int imageIndex) voidprocessImageProgressWrapper(float percentageDone) Wrapper for the protected methodprocessImageProgressSo it can be access from the classes which are not inImageReaderhierachy.voidprocessImageUpdateWrapper(BufferedImage theImage, int minX, int minY, int width, int height, int periodX, int periodY, int[] bands) Wrapper for the protected methodprocessImageUpdateSo it can be access from the classes which are not inImageReaderhierachy.read(int imageIndex, ImageReadParam param) readAsRenderedImage(int imageIndex, ImageReadParam param) readRaster(int imageIndex, ImageReadParam param) voidreset()voidOverrides 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, hasThumbnails, isIgnoringMetadata, isImageTiled, isSeekForwardOnly, processImageComplete, processImageProgress, processImageStarted, processImageUpdate, processPassComplete, processPassStarted, processReadAborted, processSequenceComplete, processSequenceStarted, processThumbnailComplete, processThumbnailPassComplete, processThumbnailPassStarted, processThumbnailProgress, processThumbnailStarted, processThumbnailUpdate, processWarningOccurred, processWarningOccurred, read, readAll, readAll, readerSupportsThumbnails, readThumbnail, readTile, readTileRaster, removeAllIIOReadProgressListeners, removeAllIIOReadUpdateListeners, removeAllIIOReadWarningListeners, removeIIOReadProgressListener, removeIIOReadUpdateListener, removeIIOReadWarningListener, setInput, setInput, setLocale
-
Constructor Details
-
RawImageReader
ConstructsRawImageReaderfrom the providedImageReaderSpi.
-
-
Method Details
-
computeRegionsWrapper
public static void computeRegionsWrapper(ImageReadParam param, int srcWidth, int srcHeight, BufferedImage image, Rectangle srcRegion, Rectangle destRegion) Wrapper for the protected methodcomputeRegions. So it can be access from the classes which are not inImageReaderhierachy. -
setInput
Overrides the method defined in the superclass.- Overrides:
setInputin classImageReader- Throws:
ClassCastException- If the providedinputis not an instance ofRawImageInputImage
-
getNumImages
Overrides the method defined in the superclass.- Specified by:
getNumImagesin classImageReader- Throws:
IOException
-
getWidth
- Specified by:
getWidthin classImageReader- Throws:
IOException
-
getHeight
- Specified by:
getHeightin classImageReader- Throws:
IOException
-
getTileWidth
- Overrides:
getTileWidthin classImageReader- Throws:
IOException
-
getTileHeight
- Overrides:
getTileHeightin classImageReader- Throws:
IOException
-
getImageTypes
- Specified by:
getImageTypesin classImageReader- Throws:
IOException
-
getDefaultReadParam
- Overrides:
getDefaultReadParamin classImageReader
-
getImageMetadata
- Specified by:
getImageMetadatain classImageReader- Throws:
IOException
-
getStreamMetadata
- Specified by:
getStreamMetadatain classImageReader- Throws:
IOException
-
isRandomAccessEasy
- Overrides:
isRandomAccessEasyin classImageReader- Throws:
IOException
-
read
- Specified by:
readin classImageReader- Throws:
IOException
-
readAsRenderedImage
- Overrides:
readAsRenderedImagein classImageReader- Throws:
IOException
-
readRaster
- Overrides:
readRasterin classImageReader- Throws:
IOException
-
canReadRaster
public boolean canReadRaster()- Overrides:
canReadRasterin classImageReader
-
reset
public void reset()- Overrides:
resetin classImageReader
-
processImageUpdateWrapper
public void processImageUpdateWrapper(BufferedImage theImage, int minX, int minY, int width, int height, int periodX, int periodY, int[] bands) Wrapper for the protected methodprocessImageUpdateSo it can be access from the classes which are not inImageReaderhierachy. -
processImageProgressWrapper
public void processImageProgressWrapper(float percentageDone) Wrapper for the protected methodprocessImageProgressSo it can be access from the classes which are not inImageReaderhierachy. -
getAbortRequest
public boolean getAbortRequest()This method wraps the protected methodabortRequestedto allow the abortions be monitored byJ2KReadState.
-