gistoolkit.datasources.imagefile.imagereaders
Class ImageIOImageReader

java.lang.Object
  extended bygistoolkit.datasources.imagefile.imagereaders.ImageIOImageReader
All Implemented Interfaces:
ImageReaderInterface

public class ImageIOImageReader
extends java.lang.Object
implements ImageReaderInterface

Class to protect from Instantiation exceptions if javax.imageio is not available..


Constructor Summary
ImageIOImageReader()
          Create an empty reader.
ImageIOImageReader(java.lang.String inFile)
          Creates a new instance of JAIImageReader
 
Method Summary
 int getHeight()
           
 java.awt.image.BufferedImage getImage()
           
 int getWidth()
           
 ImageInformation readImage(java.lang.String inFile)
          Use the javax.imageio api to read the image.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ImageIOImageReader

public ImageIOImageReader()
                   throws java.lang.Exception
Create an empty reader.


ImageIOImageReader

public ImageIOImageReader(java.lang.String inFile)
                   throws java.lang.Exception
Creates a new instance of JAIImageReader

Method Detail

getWidth

public int getWidth()

getHeight

public int getHeight()

getImage

public java.awt.image.BufferedImage getImage()

readImage

public ImageInformation readImage(java.lang.String inFile)
Use the javax.imageio api to read the image.

Specified by:
readImage in interface ImageReaderInterface