it.geosolutions.imageio.plugins.grib1
Class GRIB1ImageReader

Object
  extended by ImageReader
      extended by BaseImageReader
          extended by GRIB1ImageReader

public class GRIB1ImageReader
extends BaseImageReader

GRIB1ImageReader is a ImageReader able to create RenderedImage from GRIB1 sources.

Author:
Daniele Romagnoli, GeoSolutions, Alessio Fabiani, GeoSolutions

Field Summary
protected static Logger LOGGER
           
 
Fields inherited from class ImageReader
availableLocales, ignoreMetadata, input, locale, minIndex, originatingProvider, progressListeners, seekForwardOnly, updateListeners, warningListeners, warningLocales
 
Constructor Summary
GRIB1ImageReader(ImageReaderSpi originatingProvider)
           
 
Method Summary
 void dispose()
          Allows any resources held by this reader to be released.
 int getHeight(int imageIndex)
          Returns the height of the specified image.
 IIOMetadata getImageMetadata(int imageIndex)
           
 Iterator<ImageTypeSpecifier> getImageTypes(int imageIndex)
           
 IIOMetadata getStreamMetadata()
           
 int getWidth(int imageIndex)
          Returns the width of the specified image.
 BufferedImage read(int imageIndex, ImageReadParam param)
           
 void setInput(Object input)
           
 void setInput(Object input, boolean seekForwardOnly)
           
 void setInput(Object input, boolean seekForwardOnly, boolean ignoreMetadata)
           
 
Methods inherited from class BaseImageReader
checkImageIndex, getNumImages, setNumImages
 
Methods inherited from class ImageReader
abort, abortRequested, addIIOReadProgressListener, addIIOReadUpdateListener, addIIOReadWarningListener, canReadRaster, checkReadParamBandSettings, clearAbortRequest, computeRegions, getAspectRatio, getAvailableLocales, getDefaultReadParam, 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, readRaster, readThumbnail, readTile, readTileRaster, removeAllIIOReadProgressListeners, removeAllIIOReadUpdateListeners, removeAllIIOReadWarningListeners, removeIIOReadProgressListener, removeIIOReadUpdateListener, removeIIOReadWarningListener, reset, setLocale
 
Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

LOGGER

protected static final Logger LOGGER
Constructor Detail

GRIB1ImageReader

public GRIB1ImageReader(ImageReaderSpi originatingProvider)
Method Detail

setInput

public void setInput(Object input,
                     boolean seekForwardOnly,
                     boolean ignoreMetadata)
Overrides:
setInput in class ImageReader

setInput

public void setInput(Object input,
                     boolean seekForwardOnly)
Overrides:
setInput in class ImageReader

setInput

public void setInput(Object input)
Overrides:
setInput in class ImageReader

getWidth

public int getWidth(int imageIndex)
             throws IOException
Returns the width of the specified image.

Specified by:
getWidth in class ImageReader
Parameters:
imageIndex - the index of the required image
Returns:
the width of the specified image.
Throws:
IOException

getHeight

public int getHeight(int imageIndex)
              throws IOException
Returns the height of the specified image.

Specified by:
getHeight in class ImageReader
Parameters:
imageIndex - the index of the required image
Returns:
the height of the specified image.
Throws:
IOException

read

public BufferedImage read(int imageIndex,
                          ImageReadParam param)
                   throws IOException
Specified by:
read in class ImageReader
Throws:
IOException
See Also:
ImageReader.read(int, javax.imageio.ImageReadParam)

getStreamMetadata

public IIOMetadata getStreamMetadata()
Specified by:
getStreamMetadata in class ImageReader

getImageMetadata

public IIOMetadata getImageMetadata(int imageIndex)
                             throws IOException
Specified by:
getImageMetadata in class ImageReader
Throws:
IOException

dispose

public void dispose()
Allows any resources held by this reader to be released.

Overrides:
dispose in class BaseImageReader

getImageTypes

public Iterator<ImageTypeSpecifier> getImageTypes(int imageIndex)
                                           throws IOException
Specified by:
getImageTypes in class ImageReader
Throws:
IOException


Copyright © 2006-2010 GeoSolutions. All Rights Reserved.