Class CLibImageReader


  • public abstract class CLibImageReader
    extends javax.imageio.ImageReader
    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
      private class  CLibImageReader.SoloIterator
      An Iterator over a single element.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private int currIndex  
      private long highWaterMark  
      private java.util.ArrayList imageStartPosition  
      private int mlibImageIndex  
      private int numImages  
      • Fields inherited from class javax.imageio.ImageReader

        availableLocales, ignoreMetadata, input, locale, minIndex, originatingProvider, progressListeners, seekForwardOnly, updateListeners, warningListeners, warningLocales
    • Constructor Summary

      Constructors 
      Modifier Constructor Description
      protected CLibImageReader​(javax.imageio.spi.ImageReaderSpi originatingProvider)  
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      protected int getImageIndex()
      Returns the index of the image cached in the private mlibImage instance variable or -1 if no image is currently cached.
      javax.imageio.metadata.IIOMetadata getStreamMetadata()  
      private static boolean subBandsMatch​(int[] sourceBands, int[] destinationBands)
      Returns true if and only if both arguments are null or both are non-null and have the same length and content.
      private static void subsample​(java.awt.image.Raster src, int subX, int subY, java.awt.image.WritableRaster dst)  
      • Methods inherited from class javax.imageio.ImageReader

        abort, abortRequested, addIIOReadProgressListener, addIIOReadUpdateListener, addIIOReadWarningListener, canReadRaster, checkReadParamBandSettings, clearAbortRequest, computeRegions, dispose, getAspectRatio, getAvailableLocales, getDefaultReadParam, getDestination, getFormatName, getHeight, getImageMetadata, getImageMetadata, getImageTypes, getInput, getLocale, getMinIndex, getNumImages, getNumThumbnails, getOriginatingProvider, getRawImageType, getSourceRegion, getStreamMetadata, getThumbnailHeight, getThumbnailWidth, getTileGridXOffset, getTileGridYOffset, getTileHeight, getTileWidth, getWidth, hasThumbnails, isIgnoringMetadata, isImageTiled, isRandomAccessEasy, isSeekForwardOnly, processImageComplete, processImageProgress, processImageStarted, processImageUpdate, processPassComplete, processPassStarted, processReadAborted, processSequenceComplete, processSequenceStarted, processThumbnailComplete, processThumbnailPassComplete, processThumbnailPassStarted, processThumbnailProgress, processThumbnailStarted, processThumbnailUpdate, processWarningOccurred, processWarningOccurred, read, read, readAll, readAll, readAsRenderedImage, readerSupportsThumbnails, readRaster, readThumbnail, readTile, readTileRaster, removeAllIIOReadProgressListeners, removeAllIIOReadUpdateListeners, removeAllIIOReadWarningListeners, removeIIOReadProgressListener, removeIIOReadUpdateListener, removeIIOReadWarningListener, reset, setInput, setInput, setInput, setLocale
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • currIndex

        private int currIndex
      • highWaterMark

        private long highWaterMark
      • imageStartPosition

        private java.util.ArrayList imageStartPosition
      • numImages

        private int numImages
      • mlibImageIndex

        private int mlibImageIndex
    • Constructor Detail

      • CLibImageReader

        protected CLibImageReader​(javax.imageio.spi.ImageReaderSpi originatingProvider)
    • Method Detail

      • subBandsMatch

        private static boolean subBandsMatch​(int[] sourceBands,
                                             int[] destinationBands)
        Returns true if and only if both arguments are null or both are non-null and have the same length and content.
      • subsample

        private static final void subsample​(java.awt.image.Raster src,
                                            int subX,
                                            int subY,
                                            java.awt.image.WritableRaster dst)
      • getImageIndex

        protected int getImageIndex()
        Returns the index of the image cached in the private mlibImage instance variable or -1 if no image is currently cached.
      • getStreamMetadata

        public javax.imageio.metadata.IIOMetadata getStreamMetadata()
                                                             throws java.io.IOException
        Specified by:
        getStreamMetadata in class javax.imageio.ImageReader
        Throws:
        java.io.IOException