fr.opensagres.xdocreport.document.textstyling.html
Class HTMLTextStylingTransformer
java.lang.Object
fr.opensagres.xdocreport.document.textstyling.AbstractTextStylingTransformer
fr.opensagres.xdocreport.document.textstyling.html.HTMLTextStylingTransformer
- All Implemented Interfaces:
- ITextStylingTransformer
public class HTMLTextStylingTransformer
- extends AbstractTextStylingTransformer
HTML text styling transformer to transform HTML to another document kind (odt, docx, etc) syntax. The ODT, DOCX is
represented with the given IDocumentHandler
.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
INSTANCE
public static final ITextStylingTransformer INSTANCE
HTMLTextStylingTransformer
public HTMLTextStylingTransformer()
doTransform
protected void doTransform(String content,
IDocumentHandler documentHandler)
throws Exception
- Description copied from class:
AbstractTextStylingTransformer
- Transform the given content (with some syntax like HTML, Mediawiki, etc) to another syntax (docx, odt, etc). The
given visitor can be used to process the transformation.
- Specified by:
doTransform
in class AbstractTextStylingTransformer
- Parameters:
content
- the content to transform.documentHandler
- the document handler used for the transformation.
- Throws:
Exception
generateXhtmlFromContent
protected String generateXhtmlFromContent(String content)
throws Exception
- Throws:
Exception
Copyright © 2013. All rights reserved.