public class J2KImageReader extends ImageReader implements MsgLogger
J2KImageReadParam.availableLocales, ignoreMetadata, input, locale, minIndex, originatingProvider, progressListeners, seekForwardOnly, updateListeners, warningListeners, warningLocales| Constructor and Description |
|---|
J2KImageReader(ImageReaderSpi originator)
Constructs
J2KImageReader from the provided
ImageReaderSpi. |
| Modifier and Type | Method and Description |
|---|---|
boolean |
canReadRaster() |
static void |
checkReadParamBandSettingsWrapper(ImageReadParam param,
int numSrcBands,
int numDstBands)
Wrapper for the protected method
checkReadParamBandSettings. |
static void |
computeRegionsWrapper(ImageReadParam param,
boolean allowZeroDestOffset,
int srcWidth,
int srcHeight,
BufferedImage image,
Rectangle srcRegion,
Rectangle destRegion)
Wrapper for the protected method
computeRegions. |
void |
flush()
Writes any buffered data from the println() method to the device.
|
boolean |
getAbortRequest()
This method wraps the protected method
abortRequested
to allow the abortions be monitored by J2KReadState. |
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 |
getTileGridXOffset(int imageIndex) |
int |
getTileGridYOffset(int imageIndex) |
int |
getTileHeight(int imageIndex) |
int |
getTileWidth(int imageIndex) |
int |
getWidth(int imageIndex) |
boolean |
isImageTiled(int imageIndex) |
boolean |
isRandomAccessEasy(int imageIndex) |
void |
println(String str,
int flind,
int ind)
Prints the string 'str' to the output device, appending a line
return.
|
void |
printmsg(int sev,
String msg)
Prints the message 'msg' to the output device, appending a newline,
with severity 'sev'.
|
void |
processImageProgressWrapper(float percentageDone)
Wrapper for the protected method
processImageProgress
So it can be access from the classes which are not in
ImageReader hierarchy. |
void |
processImageUpdateWrapper(BufferedImage theImage,
int minX,
int minY,
int width,
int height,
int periodX,
int periodY,
int[] bands)
Wrapper for the protected method
processImageUpdate
So it can be access from the classes which are not in
ImageReader hierarchy. |
BufferedImage |
read(int imageIndex,
ImageReadParam param) |
RenderedImage |
readAsRenderedImage(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.
|
abort, abortRequested, addIIOReadProgressListener, addIIOReadUpdateListener, addIIOReadWarningListener, checkReadParamBandSettings, clearAbortRequest, computeRegions, dispose, getAspectRatio, getAvailableLocales, getDestination, getFormatName, getImageMetadata, getInput, getLocale, getMinIndex, getNumThumbnails, getOriginatingProvider, getRawImageType, getSourceRegion, getStreamMetadata, getThumbnailHeight, getThumbnailWidth, hasThumbnails, isIgnoringMetadata, 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, setLocalepublic J2KImageReader(ImageReaderSpi originator)
J2KImageReader from the provided
ImageReaderSpi.public static void computeRegionsWrapper(ImageReadParam param, boolean allowZeroDestOffset, int srcWidth, int srcHeight, BufferedImage image, Rectangle srcRegion, Rectangle destRegion)
computeRegions. So it
can be access from the classes which are not in ImageReader
hierarchy.public static void checkReadParamBandSettingsWrapper(ImageReadParam param, int numSrcBands, int numDstBands)
checkReadParamBandSettings.
So it can be access from the classes which are not in
ImageReader hierarchy.public void processImageUpdateWrapper(BufferedImage theImage, int minX, int minY, int width, int height, int periodX, int periodY, int[] bands)
processImageUpdate
So it can be access from the classes which are not in
ImageReader hierarchy.public void processImageProgressWrapper(float percentageDone)
processImageProgress
So it can be access from the classes which are not in
ImageReader hierarchy.public void setInput(Object input, boolean seekForwardOnly, boolean ignoreMetadata)
setInput in class ImageReaderpublic int getNumImages(boolean allowSearch)
throws IOException
getNumImages in class ImageReaderIOExceptionpublic int getWidth(int imageIndex)
throws IOException
getWidth in class ImageReaderIOExceptionpublic int getHeight(int imageIndex)
throws IOException
getHeight in class ImageReaderIOExceptionpublic int getTileGridXOffset(int imageIndex)
throws IOException
getTileGridXOffset in class ImageReaderIOExceptionpublic int getTileGridYOffset(int imageIndex)
throws IOException
getTileGridYOffset in class ImageReaderIOExceptionpublic int getTileWidth(int imageIndex)
throws IOException
getTileWidth in class ImageReaderIOExceptionpublic int getTileHeight(int imageIndex)
throws IOException
getTileHeight in class ImageReaderIOExceptionpublic void readHeader()
public Iterator getImageTypes(int imageIndex) throws IOException
getImageTypes in class ImageReaderIOExceptionpublic ImageReadParam getDefaultReadParam()
getDefaultReadParam in class ImageReaderpublic IIOMetadata getImageMetadata(int imageIndex) throws IOException
getImageMetadata in class ImageReaderIOExceptionpublic IIOMetadata getStreamMetadata() throws IOException
getStreamMetadata in class ImageReaderIOExceptionpublic BufferedImage read(int imageIndex, ImageReadParam param) throws IOException
read in class ImageReaderIOExceptionpublic RenderedImage readAsRenderedImage(int imageIndex, ImageReadParam param) throws IOException
readAsRenderedImage in class ImageReaderIOExceptionpublic boolean canReadRaster()
canReadRaster in class ImageReaderpublic boolean isRandomAccessEasy(int imageIndex)
throws IOException
isRandomAccessEasy in class ImageReaderIOExceptionpublic Raster readRaster(int imageIndex, ImageReadParam param) throws IOException
readRaster in class ImageReaderIOExceptionpublic boolean isImageTiled(int imageIndex)
isImageTiled in class ImageReaderpublic void reset()
reset in class ImageReaderpublic boolean getAbortRequest()
abortRequested
to allow the abortions be monitored by J2KReadState.public void flush()
MsgLoggerpublic void println(String str, int flind, int ind)
MsgLoggerpublic void printmsg(int sev,
String msg)
MsgLoggerCopyright © 2015 Open Microscopy Environment