@Component(role=Parser.class, hint="confluence") public class ConfluenceParser extends AbstractTextParser
| Modifier and Type | Field and Description |
|---|---|
private BlockParser[] |
parsers |
PIPECOLON, EOL, EQUAL, GREATER_THAN, LEFT_CURLY_BRACKET, LEFT_SQUARE_BRACKET, LESS_THAN, MINUS, PLUS, QUOTE, RIGHT_CURLY_BRACKET, RIGHT_SQUARE_BRACKET, SEMICOLON, SLASH, SPACE, STARROLE, TXT_TYPE, UNKNOWN_TYPE, XML_TYPE| Constructor and Description |
|---|
ConfluenceParser()
Constructor for ConfluenceParser.
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
init()
Initialize the parser.
|
private java.util.List<Block> |
parse(ByLineSource source) |
void |
parse(java.io.Reader source,
Sink sink)
Parses the given source model and emits Doxia events into the given sink.
|
void |
parse(java.io.Reader source,
Sink sink,
java.lang.String reference)
Parses the given source model and emits Doxia events into the given sink.
|
getTypedoxiaVersion, enableLogging, executeMacro, getBasedir, getLog, getMacroManager, isEmitComments, isSecondParsing, parse, setEmitComments, setSecondParsingprivate BlockParser[] parsers
private java.util.List<Block> parse(ByLineSource source) throws ParseException
ParseExceptionpublic void parse(java.io.Reader source,
Sink sink)
throws ParseException
Parsersource - not null reader that provides the source document.
You could use newReader methods from ReaderFactory.sink - A sink that consumes the Doxia events.ParseException - if the model could not be parsed.public void parse(java.io.Reader source,
Sink sink,
java.lang.String reference)
throws ParseException
Parserparse in interface Parserparse in class AbstractParsersource - not null reader that provides the source document.
You could use newReader methods from ReaderFactory.sink - A sink that consumes the Doxia events.ParseException - if the model could not be parsed.protected void init()
Parser.parse(java.io.Reader, org.apache.maven.doxia.sink.Sink) and can be used
to set the parser into a clear state so it can be re-used.init in class AbstractParser