org.xwiki.rendering.converter
Interface Converter


@Role
public interface Converter

Convert source content in a given Syntax to another Syntax.

Since:
2.0M3
Version:
$Id: 38b75ce957ccca9bd3c233e021de53f013457818 $

Method Summary
 void convert(Reader source, Syntax sourceSyntax, Syntax targetSyntax, WikiPrinter printer)
          Converts content from a Syntax to another and execute all registered Macro Transformations on the parsed content.
 

Method Detail

convert

void convert(Reader source,
             Syntax sourceSyntax,
             Syntax targetSyntax,
             WikiPrinter printer)
             throws ConversionException
Converts content from a Syntax to another and execute all registered Macro Transformations on the parsed content.

Parameters:
source - the content to be converted
sourceSyntax - the Syntax in which the content is represented
targetSyntax - the Syntax to which to convert to
printer - the printer that will receive the result of the conversion
Throws:
ConversionException - in case of a conversion error (invalid Syntax, etc)


Copyright © 2004–2015 XWiki. All rights reserved.