Interface Converter


  • @Role
    public interface Converter
    Convert source content in a given Syntax to another Syntax.
    Since:
    2.0M3
    Version:
    $Id: c6c10c5c751206d0362c1479a620d8dba2281cd4 $
    • 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)