public class TWikiParser extends AbstractTextParser
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 |
|---|
TWikiParser()
Creates the TWikiParser.
|
| Modifier and Type | Method and Description |
|---|---|
String |
getTitle(List blocks,
ByLineSource source)
Guess a title for the page.
|
protected void |
init()
Initialize the parser.
|
List |
parse(ByLineSource source)
parse.
|
void |
parse(Reader source,
Sink sink)
Parses the given source model and emits Doxia events into the given sink.
|
getTypeenableLogging, executeMacro, getBasedir, getLog, getMacroManager, isSecondParsing, parse, setSecondParsingpublic final List parse(ByLineSource source) throws ParseException
parse.
source - source to parse.ParseException - on error.public final void parse(Reader source, Sink sink) throws ParseException
source - 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 final String getTitle(List blocks, ByLineSource source)
ByLineReaderSource.getName()blocks - blocks to parsesource - source to parseprotected 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 AbstractParserCopyright © 2005–2014. All rights reserved.