com.twainconnect.io.imp
Class JavaIoImageLoaderImp

java.lang.Object
  extended by com.twainconnect.io.imp.JavaIoImageLoaderImp
All Implemented Interfaces:
ImageLoader

public class JavaIoImageLoaderImp
extends java.lang.Object
implements ImageLoader

In order to adhere to the JRE 1.4 and later JDK support for images TwainConnect supports the javax.io library found in JRE 1.4.x and above with this implementation of the ImageLoader interface Use key com.twainconnect.io.imp.JavaIoImageLoaderImp for the value in the properties file

Version:
3.0.0
Author:
twainconnect.com

Constructor Summary
JavaIoImageLoaderImp()
           
 
Method Summary
 java.awt.image.BufferedImage load(java.lang.Object o)
          Performs the heavy lifting for loading the image from the file system Most likley com.sun.media.imageioimpl.plugins.bmp.BMPImageReader ir = null; ImageReader must be installed from Java(TM) Image I/O API http://java.sun.com/products/java-media/jai/ or be part of JSE 1.5
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JavaIoImageLoaderImp

public JavaIoImageLoaderImp()
Method Detail

load

public java.awt.image.BufferedImage load(java.lang.Object o)
                                  throws TwainConnectException
Performs the heavy lifting for loading the image from the file system Most likley com.sun.media.imageioimpl.plugins.bmp.BMPImageReader ir = null; ImageReader must be installed from Java(TM) Image I/O API http://java.sun.com/products/java-media/jai/ or be part of JSE 1.5

Specified by:
load in interface ImageLoader
Parameters:
o - file object to display
Returns:
BufferedImage to be used by Java programs
Throws:
TwainConnectException