@Component(role=org.apache.maven.doxia.parser.Parser.class, hint="twiki") 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<Block> blocks,
ByLineSource source)
Guess a title for the page.
|
protected void |
init() |
List<Block> |
parse(ByLineSource source)
parse.
|
void |
parse(Reader source,
Sink sink) |
void |
parse(Reader source,
Sink sink,
String reference) |
getTypedoxiaVersion, enableLogging, executeMacro, getBasedir, getLog, getMacroManager, isEmitComments, isSecondParsing, parse, parse, setEmitComments, setSecondParsingpublic final List<Block> parse(ByLineSource source) throws ParseException
parse.
source - source to parse.ParseException - on error.public void parse(Reader source, Sink sink) throws ParseException
parse in interface Parserparse in class AbstractParserParseExceptionpublic final void parse(Reader source, Sink sink, String reference) throws ParseException
ParseExceptionpublic final String getTitle(List<Block> blocks, ByLineSource source)
ByLineReaderSource.getName()blocks - blocks to parsesource - source to parseprotected void init()
init in class AbstractParserCopyright © 2005–2021 The Apache Software Foundation. All rights reserved.