class TargaReader extends ParserObject
| Modifier and Type | Field and Description |
|---|---|
(package private) java.io.BufferedInputStream |
bufferedReader |
(package private) java.awt.Image |
theImage |
debugPrinter, EXCEPTION, LINE_TRACE, MISC, NONE, TIME, TRACE, VALUES, WARNING| Constructor and Description |
|---|
TargaReader(java.lang.String fileName,
int debugVals)
Constructor: creates file reader and calls parseFile() to do the real
work
|
| Modifier and Type | Method and Description |
|---|---|
(package private) java.awt.Image |
getImage()
Returns the image that was created from parsing the targa file (null
if the file reading failed)
|
(package private) void |
parseFile()
This method parses the file and stores the pixel data in a
BufferedImage.
|
debugOutput, debugOutputLnjava.io.BufferedInputStream bufferedReader
java.awt.Image theImage
TargaReader(java.lang.String fileName,
int debugVals)
throws java.io.FileNotFoundException
java.io.FileNotFoundExceptionjava.awt.Image getImage()
void parseFile()
throws IncorrectFormatException,
ParsingErrorException
Copyright 1996-2008 Sun Microsystems, Inc. All Rights Reserved. Use is subject to license terms.