com.asprise.util.tiff
Class ImageReader

java.lang.Object
  extended bycom.asprise.util.tiff.ImageReader

public class ImageReader
extends java.lang.Object

Provides image reading support.


Field Summary
static int IMAGE_TYPE_BMP
          BMP type.
static int IMAGE_TYPE_GIF
          GIF type.
static int IMAGE_TYPE_JPEG
          JPEG type.
 
Constructor Summary
ImageReader()
           
 
Method Summary
static java.awt.image.BufferedImage readImageAsBufferedImage(java.io.File file)
           
static java.awt.image.BufferedImage readImageAsBufferedImage(java.io.InputStream stream, int type)
          Returns a buffered image.
static java.awt.image.RenderedImage readImageAsRenderedImage(java.io.InputStream stream, int type)
          Reads an image into a rendered image.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

IMAGE_TYPE_JPEG

public static final int IMAGE_TYPE_JPEG
JPEG type.

See Also:
Constant Field Values

IMAGE_TYPE_GIF

public static final int IMAGE_TYPE_GIF
GIF type.

See Also:
Constant Field Values

IMAGE_TYPE_BMP

public static final int IMAGE_TYPE_BMP
BMP type.

See Also:
Constant Field Values
Constructor Detail

ImageReader

public ImageReader()
Method Detail

readImageAsRenderedImage

public static java.awt.image.RenderedImage readImageAsRenderedImage(java.io.InputStream stream,
                                                                    int type)
                                                             throws java.io.IOException
Reads an image into a rendered image.

Parameters:
stream -
type -
Returns:
Throws:
java.io.IOException

readImageAsBufferedImage

public static java.awt.image.BufferedImage readImageAsBufferedImage(java.io.InputStream stream,
                                                                    int type)
                                                             throws java.io.IOException
Returns a buffered image.

Parameters:
stream -
type -
Returns:
Throws:
java.io.IOException

readImageAsBufferedImage

public static java.awt.image.BufferedImage readImageAsBufferedImage(java.io.File file)
                                                             throws java.io.FileNotFoundException,
                                                                    java.io.IOException
Throws:
java.io.FileNotFoundException
java.io.IOException