|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.maven.doxia.module.fml.FmlParser
public class FmlParser
Parse a fml model and emit events into the specified doxia Sink.
Field Summary |
---|
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 | |
---|---|
FmlParser()
|
Method Summary | |
---|---|
int |
getType()
The parser type value could be Parser.UNKNOWN_TYPE , Parser.TXT_TYPE or
Parser.XML_TYPE . |
void |
parse(java.io.Reader reader,
Sink sink)
Parses the given source model and emits Doxia events into the given sink. |
Faqs |
parseFml(org.codehaus.plexus.util.xml.pull.XmlPullParser parser,
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 |
Constructor Detail |
---|
public FmlParser()
Method Detail |
---|
public void parse(java.io.Reader reader, Sink sink) throws ParseException
parse
in interface Parser
reader
- A reader that provides the source document.sink
- A sink that consumes the Doxia events.
ParseException
- if the model could not be parsed.public int getType()
Parser.UNKNOWN_TYPE
, Parser.TXT_TYPE
or
Parser.XML_TYPE
.
getType
in interface Parser
public Faqs parseFml(org.codehaus.plexus.util.xml.pull.XmlPullParser parser, Sink sink) throws java.io.IOException, org.codehaus.plexus.util.xml.pull.XmlPullParserException
parser
- The parser to use.sink
- The sink to consume the event.
java.io.IOException
- if the model cannot be read.
org.codehaus.plexus.util.xml.pull.XmlPullParserException
- if the model cannot be parsed.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |