public class MemoryPictureAdapter extends Object implements PictureAdapter, Serializable
| Constructor and Description |
|---|
MemoryPictureAdapter() |
| Modifier and Type | Method and Description |
|---|---|
void |
addPicture()
The converter will call this method every time when it encounters an
embedded picture in the RTF code.
|
void |
beforeConvert()
The converter will call this method before it starts to convert the RTF.
|
EmbeddedPicture |
finalizePicture()
The converter will call this method every time when it reaches the end of
an embedded picture.
|
EmbeddedPicture |
getCurrentPicture()
For internal use only.
|
Map<String,EmbeddedPicture> |
getPictures()
Return the map of the pictures in the current document.
|
void |
setBase(String base)
Set the base URL of the image link.
|
public EmbeddedPicture getCurrentPicture()
PictureAdaptergetCurrentPicture in interface PictureAdapterpublic void setBase(String base)
PictureAdaptersetBase in interface PictureAdapterbase - root path of the imagepublic Map<String,EmbeddedPicture> getPictures()
PictureAdaptergetPictures in interface PictureAdapterpublic void beforeConvert()
PictureAdapterbeforeConvert in interface PictureAdapterpublic void addPicture()
PictureAdapteraddPicture in interface PictureAdapterpublic EmbeddedPicture finalizePicture()
PictureAdapterfinalizePicture in interface PictureAdapterCopyright © 2019 Habarisoft. All rights reserved.