public interface EmbeddedImage
Modifier and Type | Interface and Description |
---|---|
static interface |
EmbeddedImage.HTMLImageReader
Callback interface that receives data of embedded images
|
Modifier and Type | Method and Description |
---|---|
String |
getFormat()
Returns the image format, either "gif" or "jpg"
|
String |
getImageSrcAttr()
Returns img tag URL (src attribute value), can be used for string replacement
if the image is stored locally on disk
|
int |
getItemIndex()
Returns the item index.
|
String |
getItemName()
Returns the name of the item that contains this image.
|
int |
getItemOffset()
Returns the item offset.
|
Collection<String> |
getOptions()
Use the HTML convert options used to render this embedded image.
|
void |
readImage(EmbeddedImage.HTMLImageReader callback)
Method to directly access the image data without storing it to disk
|
void |
writeImage(OutputStream out)
Convenience method to write the whole image to an output stream
|
void |
writeImage(Path filePath)
Convenience method to write the whole image to a file
|
String getItemName()
RichTextHTMLConverter.readEmbeddedImage(com.hcl.domino.data.Document, java.lang.String, java.util.Collection<java.lang.String>, int, int, com.hcl.domino.html.EmbeddedImage.HTMLImageReader)
.int getItemOffset()
int getItemIndex()
Collection<String> getOptions()
String getImageSrcAttr()
void readImage(EmbeddedImage.HTMLImageReader callback)
callback
- callback to receive datavoid writeImage(Path filePath) throws IOException
filePath
- image filepathIOException
- on case of I/O errorsvoid writeImage(OutputStream out) throws IOException
out
- streamIOException
- on case of I/O errorsString getFormat()
Copyright © 2019–2021 HCL. All rights reserved.