public class RMImageReader extends java.lang.Object implements RMImageData.ImageReader
Constructor and Description |
---|
RMImageReader(RMImageData anImageData)
Creates a new image reader for given image data.
|
Modifier and Type | Method and Description |
---|---|
static boolean |
canRead(byte[] bytes)
Returns whether image reader can read the file provided in the byte array.
|
static boolean |
canRead(java.lang.String anExt)
Returns whether image reader can read files with given extension.
|
RMImageData |
getImageData()
Returns the image data.
|
static java.lang.String |
getType(byte[] bytes)
Returns the type of the image bytes provided.
|
void |
readBasicInfo(RMImageData anImageData)
Reads basic image info.
|
void |
readBasicInfoJPG()
Reads basic image info specifically optimized for JPEG images (without having to create Java RenderedImage).
|
void |
readBytesDecoded()
Loads and sets the decoded bytes for the image data.
|
java.awt.image.BufferedImage |
readImage(RMImageData anImageData)
Reads the buffered image.
|
public RMImageReader(RMImageData anImageData)
public static boolean canRead(java.lang.String anExt)
public static boolean canRead(byte[] bytes)
public static java.lang.String getType(byte[] bytes)
public RMImageData getImageData()
public void readBasicInfo(RMImageData anImageData)
readBasicInfo
in interface RMImageData.ImageReader
public void readBasicInfoJPG()
public java.awt.image.BufferedImage readImage(RMImageData anImageData)
readImage
in interface RMImageData.ImageReader
public void readBytesDecoded()
readBytesDecoded
in interface RMImageData.ImageReader