public class SunIconReader extends Object implements JImageReader
| Constructor and Description |
|---|
SunIconReader(String string) |
| Modifier and Type | Method and Description |
|---|---|
void |
createBufferedImage()
Creates a BufferedImage from the PCX image.
|
int |
getHeight()
Returns the image's height.
|
BufferedImage |
getImage()
Returns the ICO image as a BufferedImage.
|
String |
getMetadataSummary()
Returns a summary of the image's metadata.
|
int |
getWidth()
Returns the image's width.
|
void |
parse() |
void |
processFile()
Processes the file supplied at initialization, and stores the image in the reader.
|
void |
readFile() |
public SunIconReader(String string)
public void processFile()
throws IllegalDataException,
UnsupportedVariantException
JImageReaderprocessFile in interface JImageReaderIllegalDataException - If the data is not valid for this type of reader.UnsupportedVariantException - If the supplied file is a variant of the reader's format that is not supported.public void readFile()
public void parse()
throws IllegalDataException,
UnsupportedVariantException
public void createBufferedImage()
public BufferedImage getImage()
getImage in interface JImageReaderpublic int getWidth()
JImageReadergetWidth in interface JImageReaderpublic int getHeight()
JImageReadergetHeight in interface JImageReaderpublic String getMetadataSummary()
JImageReadergetMetadataSummary in interface JImageReaderCopyright © 2020. All rights reserved.