org.xmlpull.v1.parser_pool
Class XmlPullParserPool
java.lang.Object
org.xmlpull.v1.parser_pool.XmlPullParserPool
public class XmlPullParserPool
- extends java.lang.Object
Very simple utility to make pooling of XmlPull parsers easy.
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
pool
protected java.util.List pool
factory
protected XmlPullParserFactory factory
XmlPullParserPool
public XmlPullParserPool()
throws XmlPullParserException
- Throws:
XmlPullParserException
XmlPullParserPool
public XmlPullParserPool(XmlPullParserFactory factory)
newParser
protected XmlPullParser newParser()
throws XmlPullParserException
- Throws:
XmlPullParserException
getPullParserFromPool
public XmlPullParser getPullParserFromPool()
throws XmlPullParserException
- Throws:
XmlPullParserException
returnPullParserToPool
public void returnPullParserToPool(XmlPullParser pp)
main
public static void main(java.lang.String[] args)
throws java.lang.Exception
- Throws:
java.lang.Exception