fr.reseaumexico.model.parser
Class XmlParser<M>
java.lang.Object
java.io.Reader
java.io.InputStreamReader
java.io.FileReader
fr.reseaumexico.model.parser.XmlParser<M>
- All Implemented Interfaces:
- Closeable, Readable
- Direct Known Subclasses:
- MexicoXmlParser
public abstract class XmlParser<M>
- extends FileReader
Abstract parser to get model from xml file using XPP3
- Since:
- 0.1
- Author:
- sletellier
- See Also:
XmlPullParser
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
XmlParser
public XmlParser(File file)
throws FileNotFoundException
- Throws:
FileNotFoundException
getModel
public M getModel()
throws org.xmlpull.v1.XmlPullParserException,
IOException,
ParseException
- Throws:
org.xmlpull.v1.XmlPullParserException
IOException
ParseException
parseModel
protected abstract M parseModel(org.xmlpull.v1.XmlPullParser parser)
throws IOException,
org.xmlpull.v1.XmlPullParserException,
ParseException
- Throws:
IOException
org.xmlpull.v1.XmlPullParserException
ParseException
parserEqual
public boolean parserEqual(org.xmlpull.v1.XmlPullParser parser,
String name)
Copyright © 2011-2012 Code Lutin. All Rights Reserved.