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()
PictureAdapter
getCurrentPicture
in interface PictureAdapter
public void setBase(String base)
PictureAdapter
setBase
in interface PictureAdapter
base
- root path of the imagepublic Map<String,EmbeddedPicture> getPictures()
PictureAdapter
getPictures
in interface PictureAdapter
public void beforeConvert()
PictureAdapter
beforeConvert
in interface PictureAdapter
public void addPicture()
PictureAdapter
addPicture
in interface PictureAdapter
public EmbeddedPicture finalizePicture()
PictureAdapter
finalizePicture
in interface PictureAdapter
Copyright © 2019 Habarisoft. All rights reserved.