DefaultDoxiapublic interface Doxia
| Modifier and Type | Field | Description |
|---|---|---|
static java.lang.String |
ROLE |
The Plexus lookup role.
|
| Modifier and Type | Method | Description |
|---|---|---|
Parser |
getParser(java.lang.String parserId) |
Return a parser for the given
parserId. |
void |
parse(java.io.Reader source,
java.lang.String parserId,
org.apache.maven.doxia.sink.Sink sink) |
Parses the given source model using a parser with given id,
and emits Doxia events into the given sink.
|
void parse(java.io.Reader source,
java.lang.String parserId,
org.apache.maven.doxia.sink.Sink sink)
throws ParserNotFoundException,
ParseException
source - 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.Parser getParser(java.lang.String parserId) throws ParserNotFoundException
parserId.parserId - Identifier for the parser to use.ParserNotFoundException - if no parser could be found for the given id.