|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.maven.doxia.parser.AbstractParser
org.apache.maven.doxia.parser.AbstractTextParser
org.apache.maven.doxia.module.twiki.TWikiParser
public class TWikiParser
Parse the twiki file format
Field Summary |
---|
Fields inherited from interface org.apache.maven.doxia.markup.TextMarkup |
---|
PIPE |
Fields inherited from interface org.apache.maven.doxia.markup.Markup |
---|
COLON, EOL, EQUAL, GREATER_THAN, LEFT_CURLY_BRACKET, LEFT_SQUARE_BRACKET, LESS_THAN, MINUS, PLUS, QUOTE, RIGHT_CURLY_BRACKET, RIGHT_SQUARE_BRACKET, SEMICOLON, SLASH, SPACE, STAR |
Fields inherited from interface org.apache.maven.doxia.parser.Parser |
---|
ROLE, TXT_TYPE, UNKNOWN_TYPE, XML_TYPE |
Constructor Summary | |
---|---|
TWikiParser()
Creates the TWikiParser. |
Method Summary | |
---|---|
java.lang.String |
getTitle(java.util.List blocks,
ByLineSource source)
Guess a title for the page. |
java.util.List |
parse(ByLineSource source)
parse. |
void |
parse(java.io.Reader source,
Sink sink)
Parses the given source model and emits Doxia events into the given sink. |
Methods inherited from class org.apache.maven.doxia.parser.AbstractTextParser |
---|
getType |
Methods inherited from class org.apache.maven.doxia.parser.AbstractParser |
---|
enableLogging, executeMacro, getBasedir, getLog, getMacroManager, isSecondParsing, parse, setSecondParsing |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public TWikiParser()
Method Detail |
---|
public final java.util.List parse(ByLineSource source) throws ParseException
parse.
source
- source to parse.
ParseException
- on error.public final void parse(java.io.Reader source, Sink sink) throws ParseException
source
- not null reader that provides the source document.
You could use newReader
methods from org.codehaus.plexus.util.ReaderFactory
.sink
- A sink that consumes the Doxia events.
ParseException
- if the model could not be parsed.public final java.lang.String getTitle(java.util.List blocks, ByLineSource source)
ByLineReaderSource.getName()
blocks
- blocks to parsesource
- source to parse
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |