fr.opensagres.xdocreport.document.textstyling.html
Class HTMLTextStylingTransformer

java.lang.Object
  extended by fr.opensagres.xdocreport.document.textstyling.AbstractTextStylingTransformer
      extended by 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.


Field Summary
static ITextStylingTransformer INSTANCE
           
 
Constructor Summary
HTMLTextStylingTransformer()
           
 
Method Summary
protected  void doTransform(String content, IDocumentHandler documentHandler)
          Transform the given content (with some syntax like HTML, Mediawiki, etc) to another syntax (docx, odt, etc).
protected  String generateXhtmlFromContent(String content)
           
 
Methods inherited from class fr.opensagres.xdocreport.document.textstyling.AbstractTextStylingTransformer
transform
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

INSTANCE

public static final ITextStylingTransformer INSTANCE
Constructor Detail

HTMLTextStylingTransformer

public HTMLTextStylingTransformer()
Method Detail

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.