org.xmlpull.v1.dom2_builder
Class DOM2XmlPullBuilder
java.lang.Object
org.xmlpull.v1.dom2_builder.DOM2XmlPullBuilder
public class DOM2XmlPullBuilder
- extends java.lang.Object
Simplistic DOM2 builder that should be enough to do support most cases.
Requires JAXP DOMBuilder to provide DOM2 implementation.
NOTE:this class is stateless factory and it is safe to share between multiple threads.
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DOM2XmlPullBuilder
public DOM2XmlPullBuilder()
newDoc
protected org.w3c.dom.Document newDoc()
throws XmlPullParserException
- Throws:
XmlPullParserException
newParser
protected XmlPullParser newParser()
throws XmlPullParserException
- Throws:
XmlPullParserException
parse
public org.w3c.dom.Element parse(java.io.Reader reader)
throws XmlPullParserException,
java.io.IOException
- Throws:
XmlPullParserException
java.io.IOException
parse
public org.w3c.dom.Element parse(java.io.Reader reader,
org.w3c.dom.Document docFactory)
throws XmlPullParserException,
java.io.IOException
- Throws:
XmlPullParserException
java.io.IOException
parse
public org.w3c.dom.Element parse(XmlPullParser pp,
org.w3c.dom.Document docFactory)
throws XmlPullParserException,
java.io.IOException
- Throws:
XmlPullParserException
java.io.IOException
parseSubTree
public org.w3c.dom.Element parseSubTree(XmlPullParser pp)
throws XmlPullParserException,
java.io.IOException
- Throws:
XmlPullParserException
java.io.IOException
parseSubTree
public org.w3c.dom.Element parseSubTree(XmlPullParser pp,
org.w3c.dom.Document docFactory)
throws XmlPullParserException,
java.io.IOException
- Throws:
XmlPullParserException
java.io.IOException
main
public static void main(java.lang.String[] args)
throws java.lang.Exception
- Minimal inline test
- Throws:
java.lang.Exception