private void parse(Reader source, Listener listener, IdGenerator idGenerator) throws ParseException
    {
        XWikiGeneratorSink doxiaSink =
            new XWikiGeneratorSink(listener, this.linkReferenceParser, this.plainRendererFactory, idGenerator,
                this.plainParser, getSyntax());

        org.apache.maven.doxia.parser.Parser parser = createDoxiaParser();
        try {
            parser.parse(source, doxiaSink);
        } catch (Exception e) {
            throw new ParseException("Failed to parse input source", e);
        }
    }
private void parse ( Reader source , Listener listener , IdGenerator idGenerator ) throws ParseException { XWikiGeneratorSink doxiaSink = new XWikiGeneratorSink ( listener , this . linkReferenceParser , this . plainRendererFactory , idGenerator , this . plainParser , getSyntax ( ) ) ; org . apache . maven . doxia . parser . Parser parser = createDoxiaParser ( ) ; try { parser . parse ( source , doxiaSink ) ; } catch ( Exception e ) { throw new ParseException ( "Failed to parse input source" , e ) ; } }
@param source the content to parse
@param listener receive event for each element
@param idGenerator unique id tool generator
@throws ParseException if the source cannot be read or an unexpected error happens during the parsing. Parsers
should be written to not generate any error as much as possible.