org.apache.maven.doxia.module.fml
Class FmlParser
java.lang.Object
org.apache.maven.doxia.module.fml.FmlParser
- All Implemented Interfaces:
- org.apache.maven.doxia.parser.Parser
- public class FmlParser
- extends Object
- implements org.apache.maven.doxia.parser.Parser
Parse a fml model and emit events into the specified doxia Sink.
- Since:
- 1.0
- Version:
- $Id: FmlParser.java 566992 2007-08-17 09:55:05Z ltheussl $
- Author:
- Emmanuel Venisse
| Fields inherited from interface org.apache.maven.doxia.parser.Parser |
JUSTIFY_CENTER, JUSTIFY_LEFT, JUSTIFY_RIGHT, ROLE, TXT_TYPE, UNKNOWN_TYPE, XML_TYPE |
|
Method Summary |
int |
getType()
|
void |
parse(Reader reader,
org.apache.maven.doxia.sink.Sink sink)
|
Faqs |
parseFml(XmlPullParser parser,
org.apache.maven.doxia.sink.Sink sink)
Parses an fml and emits the events into the given sink. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
FmlParser
public FmlParser()
parse
public void parse(Reader reader,
org.apache.maven.doxia.sink.Sink sink)
throws org.apache.maven.doxia.parser.ParseException
-
- Specified by:
parse in interface org.apache.maven.doxia.parser.Parser
- Throws:
org.apache.maven.doxia.parser.ParseException
getType
public int getType()
-
- Specified by:
getType in interface org.apache.maven.doxia.parser.Parser
parseFml
public Faqs parseFml(XmlPullParser parser,
org.apache.maven.doxia.sink.Sink sink)
throws IOException,
XmlPullParserException
- Parses an fml and emits the events into the given sink.
- Parameters:
parser - The parser to use.sink - The sink to consume the event.
- Returns:
- Faqs The parsed faqs model.
- Throws:
IOException - if the model cannot be read.
XmlPullParserException - if the model cannot be parsed.
Copyright © 2002-2008 The Apache Software Foundation. All Rights Reserved.