@Component(role=Doxia.class) public class DefaultDoxia extends org.codehaus.plexus.logging.AbstractLogEnabled implements Doxia
| Constructor and Description |
|---|
DefaultDoxia() |
| Modifier and Type | Method and Description |
|---|---|
Parser |
getParser(String parserId)
Return a parser for the given
parserId. |
void |
parse(Reader source,
String parserId,
Sink sink)
Parses the given source model using a parser with given id,
and emits Doxia events into the given sink.
|
public void parse(Reader source, String parserId, Sink sink) throws ParserNotFoundException, ParseException
parse in interface Doxiasource - not null reader that provides the source document.
You could use newReader methods from ReaderFactory.parserId - Identifier for the parser to use.sink - A sink that consumes the Doxia events.ParserNotFoundException - if no parser could be found for the given id.ParseException - if the model could not be parsed.public Parser getParser(String parserId) throws ParserNotFoundException
parserId.getParser in interface DoxiaparserId - Identifier for the parser to use.ParserNotFoundException - if no parser could be found for the given id.Copyright © 2005–2014 The Apache Software Foundation. All rights reserved.