Package org.xwiki.rendering.converter
Interface Converter
-
@Role public interface ConverterConvert source content in a given Syntax to another Syntax.- Since:
- 2.0M3
- Version:
- $Id: c6c10c5c751206d0362c1479a620d8dba2281cd4 $
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidconvert(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 convertedsourceSyntax- the Syntax in which the content is representedtargetSyntax- the Syntax to which to convert toprinter- the printer that will receive the result of the conversion- Throws:
ConversionException- in case of a conversion error (invalid Syntax, etc)
-
-