public class JFIFReader extends Object implements JImageReader
Modifier and Type | Class and Description |
---|---|
class |
JFIFReader.ImageComponent |
class |
JFIFReader.QuantizationTable |
Constructor and Description |
---|
JFIFReader(String string) |
Modifier and Type | Method and Description |
---|---|
int |
convertDCToDecimal(int dcCodeBits,
short bits)
Takes a DC Code and the next dcCode number of bits after it, and converts
it into decimal.
|
void |
createBufferedImage()
Creates a BufferedImage from the PCX image.
|
int |
getHeight()
Returns the image's height.
|
BufferedImage |
getImage()
Returns the image that the reader has imported.
|
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 JFIFReader(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 parse() throws IllegalDataException, UnsupportedVariantException
public int convertDCToDecimal(int dcCodeBits, short bits)
dcCodeBits
- The DC Code (which is also the size)bits
- The next dcCodeBits bitspublic void readFile()
public void createBufferedImage()
public int getWidth()
JImageReader
getWidth
in interface JImageReader
public int getHeight()
JImageReader
getHeight
in interface JImageReader
public String getMetadataSummary()
JImageReader
getMetadataSummary
in interface JImageReader
public BufferedImage getImage()
JImageReader
getImage
in interface JImageReader
Copyright © 2020. All rights reserved.