public class SerialisableBufferedImage
extends java.lang.Object
implements java.io.Serializable
| Constructor and Description |
|---|
SerialisableBufferedImage()
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
java.awt.image.BufferedImage |
getImage()
Get a BufferedImage object representing this image.
|
byte[] |
getImageData() |
java.lang.String |
getName() |
void |
readImage(java.io.InputStream in,
java.lang.String mimeType)
Read an image from an input steam.
|
void |
setImage(java.awt.image.BufferedImage imageIn)
Set the image.
|
void |
setImageData(byte[] image_data) |
void |
setName(java.lang.String name) |
void |
writeImage(java.io.OutputStream out)
Write an image to an output stream.
|
public java.lang.String getName()
public void setName(java.lang.String name)
public byte[] getImageData()
public void setImageData(byte[] image_data)
public java.awt.image.BufferedImage getImage()
throws java.io.IOException,
java.lang.ClassNotFoundException
java.lang.ClassNotFoundException - no decoder found for the internal image datajava.io.IOException - could not decode the image datapublic void readImage(java.io.InputStream in,
java.lang.String mimeType)
throws java.lang.ClassNotFoundException,
java.io.IOException
in - the input streammimeType - the MIME type of the imagejava.lang.ClassNotFoundException - no usable decoder/encoder foundjava.io.IOException - input errorpublic void setImage(java.awt.image.BufferedImage imageIn)
throws java.lang.ClassNotFoundException,
java.io.IOException
imageIn - the imagejava.lang.ClassNotFoundException - no encoder found for the image datajava.io.IOException - output errorpublic void writeImage(java.io.OutputStream out)
throws java.io.IOException
out - the output streamjava.io.IOException - output error