fr.opensagres.xdocreport.document.textstyling
Class AbstractTextStylingTransformer
java.lang.Object
fr.opensagres.xdocreport.document.textstyling.AbstractTextStylingTransformer
- All Implemented Interfaces:
- ITextStylingTransformer
- Direct Known Subclasses:
- AbstractWikiTextStylingTransformer, HTMLTextStylingTransformer
public abstract class AbstractTextStylingTransformer
- extends Object
- implements ITextStylingTransformer
Abstract class for text styling transformer.
Method Summary |
protected abstract void |
doTransform(String content,
IDocumentHandler documentHandler)
Transform the given content (with some syntax like HTML, Mediawiki, etc) to another syntax (docx, odt, etc). |
ITransformResult |
transform(String content,
IDocumentHandler handler)
Transform the given content (with some syntax like HTML, MediaWiki, etc) to another syntax (docx, odt, etc). |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
AbstractTextStylingTransformer
public AbstractTextStylingTransformer()
transform
public ITransformResult transform(String content,
IDocumentHandler handler)
throws XDocReportException
- Description copied from interface:
ITextStylingTransformer
- 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:
transform
in interface ITextStylingTransformer
- Parameters:
content
- the content to transform.handler
- the document visitor used for the transformation.
- Returns:
- the result of text styling transform.
- Throws:
XDocReportException
doTransform
protected abstract void doTransform(String content,
IDocumentHandler documentHandler)
throws Exception
- 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.
- Parameters:
content
- the content to transform.documentHandler
- the document handler used for the transformation.
- Throws:
Exception
Copyright © 2013. All rights reserved.