public class Image
extends java.lang.Object
| Constructor and Description |
|---|
Image(byte[] imageBytes) |
Image(byte[] imageBytes,
java.lang.Integer maxWidth) |
Image(java.io.InputStream in) |
Image(java.io.InputStream in,
java.lang.Integer maxWidth) |
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getAltText() |
java.lang.String |
getFilename() |
byte[] |
getImageBytes() |
java.lang.Integer |
getMaxWidth() |
void |
setAltText(java.lang.String altText) |
void |
setFilename(java.lang.String filename) |
void |
setImageBytes(byte[] imageBytes) |
public Image(java.io.InputStream in)
throws java.io.IOException
in - - content of the image as InputStreamjava.io.IOExceptionpublic Image(java.io.InputStream in,
java.lang.Integer maxWidth)
throws java.io.IOException
in - - content of the image as InputStreammaxWidth - - max width of the image in twipjava.io.IOExceptionpublic Image(byte[] imageBytes)
imageBytes - - content of the image as array of the bytespublic Image(byte[] imageBytes,
java.lang.Integer maxWidth)
imageBytes - - content of the image as array of the bytesmaxWidth - - max width of the image in twippublic java.lang.String getFilename()
public void setFilename(java.lang.String filename)
public java.lang.String getAltText()
public void setAltText(java.lang.String altText)
public byte[] getImageBytes()
public void setImageBytes(byte[] imageBytes)
public java.lang.Integer getMaxWidth()
Copyright © 2017. All rights reserved.