Package org.xmlpull.v1.dom2_builder
Class DOM2XmlPullBuilder
- java.lang.Object
-
- org.xmlpull.v1.dom2_builder.DOM2XmlPullBuilder
-
public class DOM2XmlPullBuilder extends 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.
- Author:
- Aleksander Slominski
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description (package private) static classDOM2XmlPullBuilder.BuildProcess
-
Constructor Summary
Constructors Constructor Description DOM2XmlPullBuilder()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static voidmain(String[] args)Minimal inline testprotected DocumentnewDoc()protected XmlPullParsernewParser()Elementparse(Reader reader)Elementparse(Reader reader, Document docFactory)Elementparse(XmlPullParser pp, Document docFactory)ElementparseSubTree(XmlPullParser pp)ElementparseSubTree(XmlPullParser pp, Document docFactory)
-
-
-
Method Detail
-
newDoc
protected Document newDoc() throws XmlPullParserException
- Throws:
XmlPullParserException
-
newParser
protected XmlPullParser newParser() throws XmlPullParserException
- Throws:
XmlPullParserException
-
parse
public Element parse(Reader reader) throws XmlPullParserException, IOException
- Throws:
XmlPullParserExceptionIOException
-
parse
public Element parse(Reader reader, Document docFactory) throws XmlPullParserException, IOException
- Throws:
XmlPullParserExceptionIOException
-
parse
public Element parse(XmlPullParser pp, Document docFactory) throws XmlPullParserException, IOException
- Throws:
XmlPullParserExceptionIOException
-
parseSubTree
public Element parseSubTree(XmlPullParser pp) throws XmlPullParserException, IOException
- Throws:
XmlPullParserExceptionIOException
-
parseSubTree
public Element parseSubTree(XmlPullParser pp, Document docFactory) throws XmlPullParserException, IOException
- Throws:
XmlPullParserExceptionIOException
-
-