public interface RichTextTransformer
Modifier and Type | Method and Description |
---|---|
void |
transform(String source,
ModifiableRichText dest)
|
void |
transformForEditing(ModifiableRichText source,
StringBuilder dest)
Transform a
RichText into a StringBuilder . |
void |
transformForRendering(RichText source,
ContentHandler handler)
SAXes a
RichText into a ContentHandler for rendering purposes. |
void transform(String source, ModifiableRichText dest) throws AmetysRepositoryException, IOException
source
- the source.dest
- the rich text to populate.AmetysRepositoryException
- if an error occurs.IOException
- if an error occurs.void transformForEditing(ModifiableRichText source, StringBuilder dest) throws AmetysRepositoryException, IOException
RichText
into a StringBuilder
.source
- the source.dest
- the StringBuilder
to populate.AmetysRepositoryException
- if an error occurs.IOException
- if an error occurs.void transformForRendering(RichText source, ContentHandler handler) throws AmetysRepositoryException, SAXException, IOException
RichText
into a ContentHandler
for rendering purposes.source
- the source.handler
- the StringBuilder
to populate.AmetysRepositoryException
- if an error occurs.SAXException
- if an error occurs.IOException
- if an error occurs.