|
JIGL v1.6 |
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Object | +--jigl.image.io.ImageInputStreamJAI
ImageInputStreamJAI reads in the following file types: PGM,PPM,PNG,JPEG,TIFF,GIF using the Java Advanced Imaging API and com.sun.media.jai.codec package.
| Field Summary | |
private BufferedInputStream |
data
Stores the image content. |
protected boolean |
grayImg
Flag of whether the loaded image is gray image. |
protected PlanarImage |
img
Image that will be loaded |
private String |
name
File name of loaded image file |
protected int |
type
Image type |
protected int |
X
Width of the image |
protected int |
Y
Height of the image |
| Constructor Summary | |
ImageInputStreamJAI()
|
|
ImageInputStreamJAI(String fn)
Opens a ImageInputSteamJAI from a filename. |
|
| Method Summary | |
Image |
read()
Reads data from a InputStream object and returns a JIGL image.. |
private int |
readByte(InputStream data)
Utility routine to read a byte from a InputStream object. |
protected PlanarImage |
readImage(String filename)
Utility routine to read directly from an image file and returns a PlanarImage. |
int |
readMagic()
Gets the magic number and returns the type |
int |
X()
Returns the width of the image |
int |
Y()
Returns the height of the image |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
protected int X
protected int Y
protected PlanarImage img
protected boolean grayImg
protected int type
private BufferedInputStream data
private String name
| Constructor Detail |
public ImageInputStreamJAI()
public ImageInputStreamJAI(String fn)
throws IOException
fn - the filename to open| Method Detail |
private int readByte(InputStream data)
throws IOException
IOException
public int readMagic()
throws IOException
IOException
public Image read()
throws InterruptedException,
ImageNotSupportedException,
IllegalPBMFormatException,
IOException
InterruptedException
ImageNotSupportedException
IllegalPBMFormatException
IOExceptionpublic int X()
public int Y()
protected PlanarImage readImage(String filename)
throws IOException
IOException
|
JIGL v1.6 |
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||