public class ByteArrayImage extends Image
| Constructor and Description |
|---|
ByteArrayImage(byte[] payload,
String mimeType,
Date lastModificationDate,
String providerId,
boolean defaultImage) |
ByteArrayImage(byte[] payload,
String mimeType,
Date lastModificationDate,
String providerId,
boolean defaultImage,
boolean isExternal) |
| Modifier and Type | Method and Description |
|---|---|
byte[] |
getBytes() |
InputStream |
openStream() |
getLastModificationDate, getMimeType, getProviderId, getSize, isDefaultImage, isExternal, setExternal, setLastModificationDate, setMimeType, setSizepublic ByteArrayImage(byte[] payload,
String mimeType,
Date lastModificationDate,
String providerId,
boolean defaultImage)
payload - The payload.mimeType - The mimetype.lastModificationDate - The last modification data.providerId - The identifier of the provider that loaded the imagedefaultImage - whether the image is a default image or a custom imagepublic ByteArrayImage(byte[] payload,
String mimeType,
Date lastModificationDate,
String providerId,
boolean defaultImage,
boolean isExternal)
payload - The payload.mimeType - The mimetype.lastModificationDate - The last modification data.providerId - The identifier of the provider that loaded the imagedefaultImage - whether the image is a default image or a custom imageisExternal - True, if this is an external image.public byte[] getBytes()
throws IOException
getBytes in class ImageIOException - Thrown, when there was an array creating the bytes.public InputStream openStream()
openStream in class ImageInputStream to the image.Copyright © 2019 Communote team. All rights reserved.