net.sf.sqs_xml.image
Class RasterFactory

java.lang.Object
  extended bynet.sf.sqs_xml.image.RasterFactory

public class RasterFactory
extends java.lang.Object


Field Summary
static int[] BLACK
           
static java.lang.String ERROR_NOT_PNM
           
static java.lang.String GIF
           
static java.lang.String PBM
           
static java.lang.String PNG
           
static java.lang.String PPM
           
static java.lang.String TIF
           
static java.lang.String TIFF
           
static int[] WHITE
           
 
Constructor Summary
RasterFactory()
           
 
Method Summary
static java.awt.image.Raster create(java.io.File file)
           
static java.awt.image.Raster create(java.lang.String filename)
           
static java.awt.image.BufferedImage createByPBM(java.io.InputStream in)
           
static java.awt.image.BufferedImage createImage(java.io.File file)
           
static boolean isGIF(java.lang.String filename)
           
static boolean isPBM(java.lang.String filename)
           
static boolean isPNG(java.lang.String filename)
           
static boolean isPPM(java.lang.String filename)
           
static boolean isSupported(java.lang.String filename)
           
static boolean isTiff(java.lang.String filename)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

TIF

public static final java.lang.String TIF
See Also:
Constant Field Values

TIFF

public static final java.lang.String TIFF
See Also:
Constant Field Values

PNG

public static final java.lang.String PNG
See Also:
Constant Field Values

PBM

public static final java.lang.String PBM
See Also:
Constant Field Values

PPM

public static final java.lang.String PPM
See Also:
Constant Field Values

GIF

public static final java.lang.String GIF
See Also:
Constant Field Values

ERROR_NOT_PNM

public static final java.lang.String ERROR_NOT_PNM
See Also:
Constant Field Values

BLACK

public static final int[] BLACK

WHITE

public static final int[] WHITE
Constructor Detail

RasterFactory

public RasterFactory()
Method Detail

isSupported

public static boolean isSupported(java.lang.String filename)

isTiff

public static boolean isTiff(java.lang.String filename)

isPNG

public static boolean isPNG(java.lang.String filename)

isPBM

public static boolean isPBM(java.lang.String filename)

isPPM

public static boolean isPPM(java.lang.String filename)

isGIF

public static boolean isGIF(java.lang.String filename)

create

public static java.awt.image.Raster create(java.lang.String filename)
                                    throws java.io.IOException
Throws:
java.io.IOException

createImage

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

create

public static java.awt.image.Raster create(java.io.File file)
                                    throws java.io.IOException
Throws:
java.io.IOException

createByPBM

public static java.awt.image.BufferedImage createByPBM(java.io.InputStream in)
                                                throws java.io.IOException,
                                                       java.lang.IllegalArgumentException
Throws:
java.io.IOException
java.lang.IllegalArgumentException