public interface Doxia
| 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.
|
void |
parse(Reader source,
String parserId,
Sink sink,
String reference)
Parses the given source model using a parser with given id,
and emits Doxia events into the given sink.
|
void parse(Reader source, String parserId, Sink sink) throws ParserNotFoundException, ParseException
source - not null reader that provides the source documentparserId - identifier for the parser to usesink - a sink that consumes the Doxia eventsParserNotFoundException - if no parser could be found for the given idParseException - if the model could not be parsedvoid parse(Reader source, String parserId, Sink sink, String reference) throws ParserNotFoundException, ParseException
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)ParserNotFoundException - if no parser could be found for the given idParseException - if the model could not be parsedParser getParser(String parserId) throws ParserNotFoundException
parserId.parserId - identifier for the parser to useParserNotFoundException - if no parser could be found for the given idCopyright © 2005–2024 The Apache Software Foundation. All rights reserved.