it.geosolutions.imageio.plugins.nitronitf
Class NITFReader

Object
  extended by ImageReader
      extended by NITFReader

public class NITFReader
extends ImageReader


Field Summary
 
Fields inherited from class ImageReader
availableLocales, ignoreMetadata, input, locale, minIndex, originatingProvider, progressListeners, seekForwardOnly, updateListeners, warningListeners, warningLocales
 
Constructor Summary
NITFReader(ImageReaderSpi originatingProvider)
           
 
Method Summary
 boolean canReadRaster()
           
 int getHeight(int imageIndex)
           
 IIOMetadata getImageMetadata(int imageIndex)
           
 Iterator<ImageTypeSpecifier> getImageTypes(int imageIndex)
           
 int getNumImages(boolean allowSearch)
           
 Reader getReader()
           
 Record getRecord()
           
 IIOMetadata getStreamMetadata()
           
 int getWidth(int imageIndex)
           
 BufferedImage read(int imageIndex, ImageReadParam param)
           
protected  void readFullImage(int imageIndex, Rectangle destRegion, int sourceXSubsampling, int sourceYSubsampling, int[] bandOffsets, int pixelSize, WritableRaster imRas)
          Optimization to read the entire image in one fell swoop...
 void readHeader()
           
 Raster readRaster(int imageIndex, ImageReadParam param)
           
protected  void readRaster(int imageIndex, Rectangle sourceRegion, Rectangle destRegion, int sourceXSubsampling, int sourceYSubsampling, int[] bandOffsets, int pixelSize, Point destinationOffset, WritableRaster imRas)
          Reads image data as bytes for the given region, and writes it to the given writable raster
 void setInput(Object input)
           
 
Methods inherited from class ImageReader
abort, abortRequested, addIIOReadProgressListener, addIIOReadUpdateListener, addIIOReadWarningListener, checkReadParamBandSettings, clearAbortRequest, computeRegions, dispose, 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, readThumbnail, readTile, readTileRaster, removeAllIIOReadProgressListeners, removeAllIIOReadUpdateListeners, removeAllIIOReadWarningListeners, removeIIOReadProgressListener, removeIIOReadUpdateListener, removeIIOReadWarningListener, reset, setInput, setInput, setLocale
 
Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NITFReader

public NITFReader(ImageReaderSpi originatingProvider)
Method Detail

getReader

public Reader getReader()

setInput

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

readHeader

public void readHeader()
                throws IOException
Throws:
IOException

getNumImages

public int getNumImages(boolean allowSearch)
                 throws IOException
Specified by:
getNumImages in class ImageReader
Throws:
IOException

getWidth

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

getHeight

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

getImageTypes

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

getStreamMetadata

public IIOMetadata getStreamMetadata()
                              throws IOException
Specified by:
getStreamMetadata in class ImageReader
Throws:
IOException

getImageMetadata

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

readRaster

public Raster readRaster(int imageIndex,
                         ImageReadParam param)
                  throws IOException
Overrides:
readRaster in class ImageReader
Throws:
IOException

readFullImage

protected void readFullImage(int imageIndex,
                             Rectangle destRegion,
                             int sourceXSubsampling,
                             int sourceYSubsampling,
                             int[] bandOffsets,
                             int pixelSize,
                             WritableRaster imRas)
                      throws IOException
Optimization to read the entire image in one fell swoop... This is most likely the common use case for this codec, so we hope this optimization will be helpful.

Parameters:
imageIndex -
sourceXSubsampling -
sourceYSubsampling -
bandOffsets -
pixelSize -
imRas -
Throws:
IOException

readRaster

protected void readRaster(int imageIndex,
                          Rectangle sourceRegion,
                          Rectangle destRegion,
                          int sourceXSubsampling,
                          int sourceYSubsampling,
                          int[] bandOffsets,
                          int pixelSize,
                          Point destinationOffset,
                          WritableRaster imRas)
                   throws IOException
Reads image data as bytes for the given region, and writes it to the given writable raster

Parameters:
sourceRegion -
sourceXSubsampling -
sourceYSubsampling -
bandOffsets -
destinationOffset -
imRas -
Throws:
IOException

read

public BufferedImage read(int imageIndex,
                          ImageReadParam param)
                   throws IOException
Specified by:
read in class ImageReader
Throws:
IOException

canReadRaster

public boolean canReadRaster()
Overrides:
canReadRaster in class ImageReader

getRecord

public Record getRecord()
                 throws IOException
Returns:
returns the underlying Record
Throws:
IOException


Copyright © 2006-2013 GeoSolutions. All Rights Reserved.