Class RawImageReader
java.lang.Object
javax.imageio.ImageReader
com.github.jaiimageio.impl.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
FieldsFields inherited from class javax.imageio.ImageReader
availableLocales, ignoreMetadata, input, locale, minIndex, originatingProvider, progressListeners, seekForwardOnly, updateListeners, warningListeners, warningLocales
-
Constructor Summary
ConstructorsConstructorDescriptionRawImageReader
(ImageReaderSpi originator) ConstructsRawImageReader
from the providedImageReaderSpi
. -
Method Summary
Modifier and TypeMethodDescriptionboolean
private void
checkIndex
(int imageIndex) static void
computeRegionsWrapper
(ImageReadParam param, int srcWidth, int srcHeight, BufferedImage image, Rectangle srcRegion, Rectangle destRegion) Wrapper for the protected methodcomputeRegions
.boolean
This method wraps the protected methodabortRequested
to allow the abortions be monitored byJ2KReadState
.int
getHeight
(int imageIndex) getImageMetadata
(int imageIndex) getImageTypes
(int imageIndex) int
getNumImages
(boolean allowSearch) Overrides the method defined in the superclass.int
getTileHeight
(int imageIndex) int
getTileWidth
(int imageIndex) int
getWidth
(int imageIndex) boolean
isRandomAccessEasy
(int imageIndex) void
processImageProgressWrapper
(float percentageDone) Wrapper for the protected methodprocessImageProgress
So it can be access from the classes which are not inImageReader
hierachy.void
processImageUpdateWrapper
(BufferedImage theImage, int minX, int minY, int width, int height, int periodX, int periodY, int[] bands) Wrapper for the protected methodprocessImageUpdate
So it can be access from the classes which are not inImageReader
hierachy.read
(int imageIndex, ImageReadParam param) readAsRenderedImage
(int imageIndex, ImageReadParam param) readRaster
(int imageIndex, ImageReadParam param) void
reset()
void
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, 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
-
Field Details
-
iis
The input stream where reads from
-
-
Constructor Details
-
RawImageReader
ConstructsRawImageReader
from 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 inImageReader
hierachy. -
setInput
Overrides the method defined in the superclass.- Overrides:
setInput
in classImageReader
- Throws:
ClassCastException
- If the providedinput
is not an instance ofRawImageInputImage
-
getNumImages
Overrides the method defined in the superclass.- Specified by:
getNumImages
in classImageReader
- Throws:
IOException
-
getWidth
- Specified by:
getWidth
in classImageReader
- Throws:
IOException
-
getHeight
- Specified by:
getHeight
in classImageReader
- Throws:
IOException
-
getTileWidth
- Overrides:
getTileWidth
in classImageReader
- Throws:
IOException
-
getTileHeight
- Overrides:
getTileHeight
in classImageReader
- Throws:
IOException
-
checkIndex
- Throws:
IOException
-
getImageTypes
- Specified by:
getImageTypes
in classImageReader
- Throws:
IOException
-
getDefaultReadParam
- Overrides:
getDefaultReadParam
in classImageReader
-
getImageMetadata
- Specified by:
getImageMetadata
in classImageReader
- Throws:
IOException
-
getStreamMetadata
- Specified by:
getStreamMetadata
in classImageReader
- Throws:
IOException
-
isRandomAccessEasy
- Overrides:
isRandomAccessEasy
in classImageReader
- Throws:
IOException
-
read
- Specified by:
read
in classImageReader
- Throws:
IOException
-
readAsRenderedImage
- Overrides:
readAsRenderedImage
in classImageReader
- Throws:
IOException
-
readRaster
- Overrides:
readRaster
in classImageReader
- Throws:
IOException
-
canReadRaster
public boolean canReadRaster()- Overrides:
canReadRaster
in classImageReader
-
reset
public void reset()- Overrides:
reset
in 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 methodprocessImageUpdate
So it can be access from the classes which are not inImageReader
hierachy. -
processImageProgressWrapper
public void processImageProgressWrapper(float percentageDone) Wrapper for the protected methodprocessImageProgress
So it can be access from the classes which are not inImageReader
hierachy. -
getAbortRequest
public boolean getAbortRequest()This method wraps the protected methodabortRequested
to allow the abortions be monitored byJ2KReadState
.
-