public class ImageData
extends java.lang.Object
implements java.io.Serializable
ImageIconStable
stable because this is easier to serialise via Json for
the web.Constructor and Description |
---|
ImageData(byte[] bytes,
java.lang.String mimeType,
java.lang.String description) |
Modifier and Type | Method and Description |
---|---|
static ImageData |
fromUrl(java.net.URL url,
java.lang.String description) |
byte[] |
getBytes() |
java.lang.String |
getDescription() |
java.lang.String |
getMimeType() |
public ImageData(byte[] bytes, java.lang.String mimeType, java.lang.String description)
public byte[] getBytes()
public java.lang.String getMimeType()
public java.lang.String getDescription()
public static ImageData fromUrl(java.net.URL url, java.lang.String description) throws java.io.IOException
java.io.IOException