Package org.apache.maven.doxia
Class DefaultDoxia
- java.lang.Object
-
- org.apache.maven.doxia.DefaultDoxia
-
-
Constructor Summary
Constructors Constructor Description DefaultDoxia()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ParsergetParser(java.lang.String parserId)Return a parser for the givenparserId.voidparse(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.voidparse(java.io.Reader source, java.lang.String parserId, org.apache.maven.doxia.sink.Sink sink, java.lang.String reference)Parses the given source model using a parser with given id, and emits Doxia events into the given sink.
-
-
-
Method Detail
-
parse
public void parse(java.io.Reader source, java.lang.String parserId, org.apache.maven.doxia.sink.Sink sink) throws ParserNotFoundException, ParseExceptionDescription copied from interface:DoxiaParses the given source model using a parser with given id, and emits Doxia events into the given sink.- Specified by:
parsein interfaceDoxia- Parameters:
source- not null reader that provides the source documentparserId- identifier for the parser to usesink- a sink that consumes the Doxia events- Throws:
ParserNotFoundException- if no parser could be found for the given idParseException- if the model could not be parsed
-
parse
public void parse(java.io.Reader source, java.lang.String parserId, org.apache.maven.doxia.sink.Sink sink, java.lang.String reference) throws ParserNotFoundException, ParseExceptionDescription copied from interface:DoxiaParses the given source model using a parser with given id, and emits Doxia events into the given sink.- Specified by:
parsein interfaceDoxia- Parameters:
source- not null reader that provides the source documentparserId- identifier for the parser to usesink- a sink that consumes the Doxia eventsreference- string containing the reference to the source (e.g. filename)- Throws:
ParserNotFoundException- if no parser could be found for the given idParseException- if the model could not be parsed
-
getParser
public Parser getParser(java.lang.String parserId) throws ParserNotFoundException
Description copied from interface:DoxiaReturn a parser for the givenparserId.- Specified by:
getParserin interfaceDoxia- Parameters:
parserId- identifier for the parser to use- Returns:
- the parser identified by parserId
- Throws:
ParserNotFoundException- if no parser could be found for the given id
-
-