|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.maven.doxia.DefaultDoxia
public class DefaultDoxia
Simple implementation of the Doxia interface: uses a ParserManager to lookup a parser.
Field Summary |
---|
Fields inherited from interface org.apache.maven.doxia.Doxia |
---|
ROLE |
Constructor Summary | |
---|---|
DefaultDoxia()
|
Method Summary | |
---|---|
Parser |
getParser(java.lang.String parserId)
Return a parser for the given parserId . |
void |
parse(java.io.Reader source,
java.lang.String parserId,
Sink sink)
Parses the given source model using a parser with given id, and emits Doxia events into the given sink. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DefaultDoxia()
Method Detail |
---|
public void parse(java.io.Reader source, java.lang.String parserId, Sink sink) throws ParserNotFoundException, ParseException
parse
in interface Doxia
source
- A reader that provides the source document.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(java.lang.String parserId) throws ParserNotFoundException
parserId
.
getParser
in interface Doxia
parserId
- Identifier for the parser to use.
ParserNotFoundException
- if no parser could be found
for the given id.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |