org.apache.maven.doxia.module.twiki
Class TWikiParser

java.lang.Object
  extended by org.apache.maven.doxia.parser.AbstractParser
      extended by org.apache.maven.doxia.parser.AbstractTextParser
          extended by org.apache.maven.doxia.module.twiki.TWikiParser
All Implemented Interfaces:
Markup, TextMarkup, Parser

public class TWikiParser
extends AbstractTextParser

Parse the twiki file format

Since:
1.0
Version:
$Id: TWikiParser.java 564180 2007-08-09 12:15:44Z vsiveton $
Author:
Juan F. Codagnone

Field Summary
 
Fields inherited from class org.apache.maven.doxia.parser.AbstractParser
macroManager, secondParsing
 
Fields inherited from interface org.apache.maven.doxia.markup.TextMarkup
PIPE
 
Fields inherited from interface org.apache.maven.doxia.markup.Markup
EOL, EQUAL, GREATER_THAN, LEFT_CURLY_BRACKET, LEFT_SQUARE_BRACKET, LESS_THAN, MINUS, PLUS, QUOTE, RIGHT_CURLY_BRACKET, RIGHT_SQUARE_BRACKET, SLASH, SPACE, STAR
 
Fields inherited from interface org.apache.maven.doxia.parser.Parser
JUSTIFY_CENTER, JUSTIFY_LEFT, JUSTIFY_RIGHT, ROLE, TXT_TYPE, UNKNOWN_TYPE, XML_TYPE
 
Constructor Summary
TWikiParser()
          Creates the TWikiParser.
 
Method Summary
 java.util.List parse(ByLineSource source)
           
 void parse(java.io.Reader reader, 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
executeMacro, getBasedir, setSecondParsing
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TWikiParser

public TWikiParser()
Creates the TWikiParser.

Method Detail

parse

public final java.util.List parse(ByLineSource source)
                           throws ParseException
Parameters:
source - source to parse
Returns:
the blocks that represent source
Throws:
ParseException - on error

parse

public final void parse(java.io.Reader reader,
                        Sink sink)
                 throws ParseException
Parses the given source model and emits Doxia events into the given sink.

Parameters:
reader - A reader that provides the source document.
sink - A sink that consumes the Doxia events.
Throws:
ParseException - if the model could not be parsed.


Copyright © 2002-2009 Apache Software Foundation. All Rights Reserved.