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
JImageReader
processFile
in interface JImageReader
IllegalDataException
- 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 JImageReader
public int getWidth()
JImageReader
getWidth
in interface JImageReader
public int getHeight()
JImageReader
getHeight
in interface JImageReader
public String getMetadataSummary()
JImageReader
getMetadataSummary
in interface JImageReader
Copyright © 2020. All rights reserved.