gistoolkit.datasources.imagefile.imagereaders
Class ImageReader

java.lang.Object
  extended bygistoolkit.datasources.imagefile.imagereaders.ImageReader

public class ImageReader
extends java.lang.Object

Class to try all the available means for reading an image and using the best one.


Field Summary
static java.lang.String METHOD_AWT
          Read the imates with the Standard AWT toolkit.
static java.lang.String METHOD_ICON
          Read the images with the javax.swing packages.
static java.lang.String METHOD_JAI
          Read the images with the Java Advanced Imaging Software.
static java.lang.String METHOD_JAVAIO
          Read the images with the javax.imageio packages.
static java.lang.String myMethod
          A variable to keep track of which method works.
 
Constructor Summary
ImageReader()
          Creates a new instance of JAIImageReader
 
Method Summary
static ImageInformation readImage(java.lang.String inFilename)
          This method will attempt to use the available methods to read images.
static void setMethod(java.lang.String inMethod)
          Method to tell when the method has been selected.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

METHOD_JAVAIO

public static java.lang.String METHOD_JAVAIO
Read the images with the javax.imageio packages.


METHOD_JAI

public static java.lang.String METHOD_JAI
Read the images with the Java Advanced Imaging Software.


METHOD_ICON

public static java.lang.String METHOD_ICON
Read the images with the javax.swing packages.


METHOD_AWT

public static java.lang.String METHOD_AWT
Read the imates with the Standard AWT toolkit.


myMethod

public static java.lang.String myMethod
A variable to keep track of which method works.

Constructor Detail

ImageReader

public ImageReader()
            throws java.lang.Exception
Creates a new instance of JAIImageReader

Method Detail

readImage

public static ImageInformation readImage(java.lang.String inFilename)
This method will attempt to use the available methods to read images.


setMethod

public static void setMethod(java.lang.String inMethod)
Method to tell when the method has been selected.