Methods Summary |
---|
public void | abort()Requests an abort operation for current reading operation.
throw new UnsupportedOperationException("Not implemented yet");
|
protected boolean | abortRequested()Checks whether or not a request to abort the current read operation has
been made successfully.
throw new UnsupportedOperationException("Not implemented yet");
|
public void | addIIOReadProgressListener(javax.imageio.event.IIOReadProgressListener listener)Adds the IIOReadProgressListener.
throw new UnsupportedOperationException("Not implemented yet");
|
public void | addIIOReadUpdateListener(javax.imageio.event.IIOReadUpdateListener listener)Adds the IIOReadUpdateListener.
throw new UnsupportedOperationException("Not implemented yet");
|
public void | addIIOReadWarningListener(javax.imageio.event.IIOReadWarningListener listener)Adds the IIOReadWarningListener.
throw new UnsupportedOperationException("Not implemented yet");
|
public boolean | canReadRaster()Checks whether or not this plug-in supports reading a Raster.
return false; // def
|
protected static void | checkReadParamBandSettings(javax.imageio.ImageReadParam param, int numSrcBands, int numDstBands)Checks the validity of the source and destination band and is called when
the reader knows the number of bands of the source image and the number
of bands of the destination image.
throw new UnsupportedOperationException("Not implemented yet");
|
protected void | clearAbortRequest()Clears all previous abort request, and abortRequested returns false after
calling this method.
throw new UnsupportedOperationException("Not implemented yet");
|
protected static void | computeRegions(javax.imageio.ImageReadParam param, int srcWidth, int srcHeight, java.awt.image.BufferedImage image, java.awt.Rectangle srcRegion, java.awt.Rectangle destRegion)Computes the specified source region and the specified destination region
with the specified the width and height of the source image, an optional
destination image, and an ImageReadParam.
throw new UnsupportedOperationException("Not implemented yet");
|
public void | dispose()Disposes of any resources.
// do nothing by def
|
public float | getAspectRatio(int imageIndex)Gets the aspect ratio (width devided by height) of the image.
return (float)getWidth(imageIndex) / getHeight(imageIndex);
|
public java.util.Locale[] | getAvailableLocales()Gets the available locales.
return availableLocales;
|
public javax.imageio.ImageReadParam | getDefaultReadParam()Gets the default ImageReadParam object.
throw new UnsupportedOperationException("Not implemented yet");
|
protected static java.awt.image.BufferedImage | getDestination(javax.imageio.ImageReadParam param, java.util.Iterator imageTypes, int width, int height)Gets the destination image where the decoded data is written.
throw new UnsupportedOperationException("Not implemented yet");
|
public java.lang.String | getFormatName()Gets the format name of this input source.
return originatingProvider.getFormatNames()[0];
|
public abstract int | getHeight(int imageIndex)Gets the height of the specified image in input source.
|
public abstract javax.imageio.metadata.IIOMetadata | getImageMetadata(int imageIndex)Gets the image metadata of the specified image in input source.
|
public javax.imageio.metadata.IIOMetadata | getImageMetadata(int imageIndex, java.lang.String formatName, java.util.Set nodeNames)Gets the image metadata of the specified image input source.
throw new UnsupportedOperationException("Not implemented yet");
|
public abstract java.util.Iterator | getImageTypes(int imageIndex)Gets an Iterator of ImageTypeSpecifier objects which are associated with
image types that may be used when decoding specified image.
|
public java.lang.Object | getInput()Gets the input source object of this ImageReader, or returns null.
return input;
|
public java.util.Locale | getLocale()Gets the locale of this ImageReader.
return locale;
|
public int | getMinIndex()Gets the minimum valid index for reading an image, thumbnail, or image
metadata.
return minIndex;
|
public abstract int | getNumImages(boolean allowSearch)Gets the number of images available in the current input source.
|
public int | getNumThumbnails(int imageIndex)Gets the number of thumbnails for the specified image.
return 0; // def
|
public javax.imageio.spi.ImageReaderSpi | getOriginatingProvider()Gets the ImageReaderSpi which instantiated this ImageReader.
return originatingProvider;
|
public javax.imageio.ImageTypeSpecifier | getRawImageType(int imageIndex)Gets an ImageTypeSpecifier which indicates the type of the specified
image.
throw new UnsupportedOperationException("Not implemented yet");
|
protected static java.awt.Rectangle | getSourceRegion(javax.imageio.ImageReadParam param, int srcWidth, int srcHeight)Gets the region of source image that should be read with the specified
width, height and ImageReadParam.
throw new UnsupportedOperationException("Not implemented yet");
|
public abstract javax.imageio.metadata.IIOMetadata | getStreamMetadata()Gets an IIOMetadata object for this input source.
|
public javax.imageio.metadata.IIOMetadata | getStreamMetadata(java.lang.String formatName, java.util.Set nodeNames)Gets an IIOMetadata object for this input source.
throw new UnsupportedOperationException("Not implemented yet");
|
public int | getThumbnailHeight(int imageIndex, int thumbnailIndex)Gets the height of the specified thumbnail for the specified image.
return readThumbnail(imageIndex, thumbnailIndex).getHeight(); // def
|
public int | getThumbnailWidth(int imageIndex, int thumbnailIndex)Gets the width of the specified thumbnail for the specified image.
return readThumbnail(imageIndex, thumbnailIndex).getWidth(); // def
|
public int | getTileGridXOffset(int imageIndex)Gets the X coordinate of the upper left corner of the tile grid in the
specified image.
return 0; // def
|
public int | getTileGridYOffset(int imageIndex)Gets the Y coordinate of the upper left corner of the tile grid in the
specified image.
return 0; // def
|
public int | getTileHeight(int imageIndex)Gets the tile height in the specified image.
return getHeight(imageIndex); // def
|
public int | getTileWidth(int imageIndex)Gets the tile width in the specified image.
return getWidth(imageIndex); // def
|
public abstract int | getWidth(int imageIndex)Gets the width of the specified image in input source.
|
public boolean | hasThumbnails(int imageIndex)Checks if the specified image has thumbnails or not.
return getNumThumbnails(imageIndex) > 0; // def
|
public boolean | isIgnoringMetadata()Returns true if the current input source allows to metadata to be ignored
by passing true as the ignoreMetadata argument to the setInput method.
return ignoreMetadata;
|
public boolean | isImageTiled(int imageIndex)Checks if the specified image has tiles or not.
return false; // def
|
public boolean | isRandomAccessEasy(int imageIndex)Checks if the storage format of the specified image places an impediment
on random pixels access or not.
return false; // def
|
public boolean | isSeekForwardOnly()Checks if the input source supports only forward reading, or not.
return seekForwardOnly;
|
private boolean | isSupported(java.lang.Object input)Checks if is supported.
ImageReaderSpi spi = getOriginatingProvider();
if (null != spi) {
Class[] outTypes = spi.getInputTypes();
for (Class<?> element : outTypes) {
if (element.isInstance(input)) {
return true;
}
}
}
return false;
|
protected void | processImageComplete()Processes image completion by calling the imageComplete method on all
registered IIOReadProgressListeners.
throw new UnsupportedOperationException("Not implemented yet");
|
protected void | processImageProgress(float percentageDone)Processes the current percentage of image completion by calling the
imageProgress method on all registered IIOReadProgressListeners.
throw new UnsupportedOperationException("Not implemented yet");
|
protected void | processImageStarted(int imageIndex)Processes the start of an image read by calling the imageStarted method
on all registered IIOReadProgressListeners.
throw new UnsupportedOperationException("Not implemented yet");
|
protected void | processImageUpdate(java.awt.image.BufferedImage theImage, int minX, int minY, int width, int height, int periodX, int periodY, int[] bands)Processes the update of a set of samples by calling the imageUpdate
method on all registered IIOReadUpdateListeners.
throw new UnsupportedOperationException("Not implemented yet");
|
protected void | processPassComplete(java.awt.image.BufferedImage theImage)Processes the end of a progressive pass by calling passComplete method of
registered IIOReadUpdateListeners.
throw new UnsupportedOperationException("Not implemented yet");
|
protected void | processPassStarted(java.awt.image.BufferedImage theImage, int pass, int minPass, int maxPass, int minX, int minY, int periodX, int periodY, int[] bands)Processes the beginning of a progressive pass by calling the passStarted
method on all registered IIOReadUpdateListeners.
throw new UnsupportedOperationException("Not implemented yet");
|
protected void | processReadAborted()Processes a read aborted event by calling the readAborted method on all
registered IIOReadProgressListeners.
throw new UnsupportedOperationException("Not implemented yet");
|
protected void | processSequenceComplete()Processes the completion of an sequence of image reads by calling
sequenceComplete method on all registered IIOReadProgressListeners.
throw new UnsupportedOperationException("Not implemented yet");
|
protected void | processSequenceStarted(int minIndex)Processes the start of an sequence of image reads by calling the
sequenceStarted method on all registered IIOReadProgressListeners.
throw new UnsupportedOperationException("Not implemented yet");
|
protected void | processThumbnailComplete()Processes the completion of a thumbnail read by calling the
thumbnailComplete method on all registered IIOReadProgressListeners.
throw new UnsupportedOperationException("Not implemented yet");
|
protected void | processThumbnailPassComplete(java.awt.image.BufferedImage theThumbnail)Processes the end of a thumbnail progressive pass by calling the
thumbnailPassComplete method on all registered IIOReadUpdateListeners.
throw new UnsupportedOperationException("Not implemented yet");
|
protected void | processThumbnailPassStarted(java.awt.image.BufferedImage theThumbnail, int pass, int minPass, int maxPass, int minX, int minY, int periodX, int periodY, int[] bands)Processes the beginning of a thumbnail progressive pass by calling the
thumbnailPassStarted method on all registered IIOReadUpdateListeners.
throw new UnsupportedOperationException("Not implemented yet");
|
protected void | processThumbnailProgress(float percentageDone)Processes the current percentage of thumbnail completion by calling the
thumbnailProgress method on all registered IIOReadProgressListeners.
throw new UnsupportedOperationException("Not implemented yet");
|
protected void | processThumbnailStarted(int imageIndex, int thumbnailIndex)Processes the start of a thumbnail read by calling the thumbnailStarted
method on all registered IIOReadProgressListeners.
throw new UnsupportedOperationException("Not implemented yet");
|
protected void | processThumbnailUpdate(java.awt.image.BufferedImage theThumbnail, int minX, int minY, int width, int height, int periodX, int periodY, int[] bands)Processes the update of a set of samples in a thumbnail image by calling
the thumbnailUpdate method on all registered IIOReadUpdateListeners.
throw new UnsupportedOperationException("Not implemented yet");
|
protected void | processWarningOccurred(java.lang.String warning)Processes a warning message by calling warningOccurred method of
registered IIOReadWarningListeners.
throw new UnsupportedOperationException("Not implemented yet");
|
protected void | processWarningOccurred(java.lang.String baseName, java.lang.String keyword)Processes a warning by calling the warningOccurred method of on all
registered IIOReadWarningListeners.
throw new UnsupportedOperationException("Not implemented yet");
|
public java.awt.image.BufferedImage | read(int imageIndex)Reads the specified image and returns it as a BufferedImage using the
default ImageReadParam.
return read(imageIndex, null);
|
public abstract java.awt.image.BufferedImage | read(int imageIndex, javax.imageio.ImageReadParam param)Reads the specified image and returns it as a BufferedImage using the
specified ImageReadParam.
|
public javax.imageio.IIOImage | readAll(int imageIndex, javax.imageio.ImageReadParam param)Reads the specified image and returns an IIOImage with this image,
thumbnails, and metadata for this image, using the specified
ImageReadParam.
throw new UnsupportedOperationException("Not implemented yet");
|
public java.util.Iterator | readAll(java.util.Iterator params)Returns an Iterator of IIOImages from the input source.
throw new UnsupportedOperationException("Not implemented yet");
|
public java.awt.image.RenderedImage | readAsRenderedImage(int imageIndex, javax.imageio.ImageReadParam param)Reads the specified image using the specified ImageReadParam and returns
it as a RenderedImage.
return read(imageIndex, param);
|
public java.awt.image.Raster | readRaster(int imageIndex, javax.imageio.ImageReadParam param)Reads a new Raster object which contains the raw pixel data from the
image.
throw new UnsupportedOperationException("Unsupported");
|
public java.awt.image.BufferedImage | readThumbnail(int imageIndex, int thumbnailIndex)Reads the thumbnail image for the specified image as a BufferedImage.
throw new UnsupportedOperationException("Unsupported"); // def
|
public java.awt.image.BufferedImage | readTile(int imageIndex, int tileX, int tileY)Reads the tile specified by the tileX and tileY parameters of the
specified image and returns it as a BufferedImage.
throw new UnsupportedOperationException("Not implemented yet");
|
public java.awt.image.Raster | readTileRaster(int imageIndex, int tileX, int tileY)Reads the tile specified by the tileX and tileY parameters of the
specified image and returns it as a Raster.
throw new UnsupportedOperationException("Not implemented yet");
|
public boolean | readerSupportsThumbnails()Returns true if the image format supported by this reader supports
thumbnail preview images.
return false; // def
|
public void | removeAllIIOReadProgressListeners()Removes registered IIOReadProgressListeners.
throw new UnsupportedOperationException("Not implemented yet");
|
public void | removeAllIIOReadUpdateListeners()Removes registered IIOReadUpdateListeners.
throw new UnsupportedOperationException("Not implemented yet");
|
public void | removeAllIIOReadWarningListeners()Removes all registered IIOReadWarningListeners.
throw new UnsupportedOperationException("Not implemented yet");
|
public void | removeIIOReadProgressListener(javax.imageio.event.IIOReadProgressListener listener)Removes the specified IIOReadProgressListener.
throw new UnsupportedOperationException("Not implemented yet");
|
public void | removeIIOReadUpdateListener(javax.imageio.event.IIOReadUpdateListener listener)Removes the specified IIOReadUpdateListener.
throw new UnsupportedOperationException("Not implemented yet");
|
public void | removeIIOReadWarningListener(javax.imageio.event.IIOReadWarningListener listener)Removes the specified IIOReadWarningListener.
throw new UnsupportedOperationException("Not implemented yet");
|
public void | reset()Resets this ImageReader.
// def
setInput(null, false);
setLocale(null);
removeAllIIOReadUpdateListeners();
removeAllIIOReadWarningListeners();
removeAllIIOReadProgressListeners();
clearAbortRequest();
|
public void | setInput(java.lang.Object input, boolean seekForwardOnly, boolean ignoreMetadata)Sets the specified Object as the input source of this ImageReader.
if (input != null) {
if (!isSupported(input) && !(input instanceof ImageInputStream)) {
throw new IllegalArgumentException("input " + input + " is not supported");
}
}
this.minIndex = 0;
this.seekForwardOnly = seekForwardOnly;
this.ignoreMetadata = ignoreMetadata;
this.input = input;
|
public void | setInput(java.lang.Object input, boolean seekForwardOnly)Sets the specified Object as the input source of this ImageReader.
Metadata is not ignored.
setInput(input, seekForwardOnly, false);
|
public void | setInput(java.lang.Object input)Sets the specified Object as the input source of this ImageReader.
Metadata is not ignored and forward seeking is not required.
setInput(input, false, false);
|
public void | setLocale(java.util.Locale locale)Sets the locale to this ImageReader.
throw new UnsupportedOperationException("Not implemented yet");
|