public class JBIG2ImageReader extends ImageReader
availableLocales, ignoreMetadata, input, locale, minIndex, originatingProvider, progressListeners, seekForwardOnly, updateListeners, warningListeners, warningLocales| Constructor and Description |
|---|
JBIG2ImageReader(ImageReaderSpi originatingProvider) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
canReadRaster() |
JBIG2ReadParam |
getDefaultReadParam() |
JBIG2Globals |
getGlobals()
Returns decoded segments that has been set as globals.
|
int |
getHeight(int imageIndex) |
IIOMetadata |
getImageMetadata(int imageIndex) |
Iterator<ImageTypeSpecifier> |
getImageTypes(int imageIndex) |
int |
getNumImages(boolean allowSearch) |
IIOMetadata |
getStreamMetadata()
This ImageIO plugin doesn't record
IIOMetadata. |
int |
getWidth(int imageIndex) |
JBIG2Globals |
processGlobals(ImageInputStream globalsInputStream)
Decodes and returns the global segments.
|
BufferedImage |
read(int imageIndex,
ImageReadParam param) |
Raster |
readRaster(int imageIndex,
ImageReadParam param) |
void |
setGlobals(JBIG2Globals globals)
Simply sets the globals.
|
void |
setInput(Object input,
boolean seekForwardOnly,
boolean ignoreMetadata) |
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, isRandomAccessEasy, 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, reset, setInput, setInput, setLocalepublic JBIG2ImageReader(ImageReaderSpi originatingProvider) throws IOException
IOException - if something went wrong while reading the provided stream.public JBIG2ReadParam getDefaultReadParam()
getDefaultReadParam in class ImageReaderpublic int getWidth(int imageIndex)
throws IOException
getWidth in class ImageReaderIOExceptionpublic int getHeight(int imageIndex)
throws IOException
getHeight in class ImageReaderIOExceptionpublic IIOMetadata getImageMetadata(int imageIndex) throws IOException
getImageMetadata in class ImageReaderIOExceptionpublic Iterator<ImageTypeSpecifier> getImageTypes(int imageIndex) throws IOException
getImageTypes in class ImageReaderIOExceptionpublic int getNumImages(boolean allowSearch)
throws IOException
getNumImages in class ImageReaderIOExceptionpublic IIOMetadata getStreamMetadata()
IIOMetadata.getStreamMetadata in class ImageReadernull at every call.public JBIG2Globals getGlobals() throws IOException
IOException - if an error occurs reading the height information from the input source.public BufferedImage read(int imageIndex, ImageReadParam param) throws IOException
read in class ImageReaderIOExceptionpublic boolean canReadRaster()
canReadRaster in class ImageReaderpublic Raster readRaster(int imageIndex, ImageReadParam param) throws IOException
readRaster in class ImageReaderIOExceptionpublic JBIG2Globals processGlobals(ImageInputStream globalsInputStream) throws IOException
globalsInputStream - - The input stream of globals data.JBIG2Globals.IOException - if an error occurs reading the height information from the input source.public void setGlobals(JBIG2Globals globals) throws IOException
globals - - The globals to set.IOException - if an error occurspublic void setInput(Object input, boolean seekForwardOnly, boolean ignoreMetadata)
setInput in class ImageReaderCopyright © 2026 The Apache Software Foundation. All rights reserved.