XPP3Reader is a Reader of DOM4J documents that uses the fast
XML Pull Parser 3.x .
It is very fast for use in SOAP style environments.
| Modifier and Type | Field and Description |
|---|---|
| private DispatchHandler | dispatchHandler
DispatchHandler to call when each |
| private DocumentFactory | factory
|
| private XmlPullParserFactory | xppFactory
|
| private XmlPullParser | xppParser
|
| Access | Constructor and Description |
|---|---|
| public | |
| public |
| Modifier and Type | Method and Description |
|---|---|
| public void | addHandler(String
is the path to be handled path, ElementHandler is the handler)ElementHandler to be called by the event
based processor.Adds the |
| protected Reader | Returns: DOCUMENT ME!DOCUMENT ME! in)Factory method to create a Reader from the given InputStream. |
| protected DispatchHandler | |
| public DocumentFactory | |
| public XmlPullParserFactory | |
| public XmlPullParser | |
| protected Document | |
| public Document | |
| public Document | |
| public Document | |
| public Document | Returns: the newly created Document instanceInputStream to read from.Reads a Document from the given stream |
| public Document | |
| public Document | Returns: the newly created Document instanceis the text to parse text)Reads a Document from the given array of characters |
| public Document | Returns: the newly created Document instanceInputStream to read from.is the URI for the input systemID)Reads a Document from the given stream |
| public Document | |
| public void | removeHandler(String
is the path to remove the path)ElementHandler for.Removes the |
| public void | setDefaultHandler(ElementHandler
is the handler)ElementHandler to be called by the event
based processor.When multiple |
| protected void | |
| public void | setDocumentFactory(DocumentFactory
DocumentFactory used to create DOM4J objects
This sets the |
| public void |
| dispatchHandler | back to summary |
|---|---|
| private DispatchHandler dispatchHandler DispatchHandler to call when each | |
| factory | back to summary |
|---|---|
| private DocumentFactory factory
| |
| xppFactory | back to summary |
|---|---|
| private XmlPullParserFactory xppFactory
| |
| xppParser | back to summary |
|---|---|
| private XmlPullParser xppParser
| |
| XPP3Reader | back to summary |
|---|---|
| public XPP3Reader() | |
| XPP3Reader | back to summary |
|---|---|
| public XPP3Reader(DocumentFactory factory) | |
| addHandler | back to summary |
|---|---|
| public void addHandler(String path, ElementHandler handler) Adds the
| |
| createReader | back to summary |
|---|---|
| protected Reader createReader(InputStream in) throws IOException Factory method to create a Reader from the given InputStream.
| |
| getDispatchHandler | back to summary |
|---|---|
| protected DispatchHandler getDispatchHandler() | |
| getDocumentFactory | back to summary |
|---|---|
| public DocumentFactory getDocumentFactory() DOCUMENT ME!
| |
| getXPPFactory | back to summary |
|---|---|
| public XmlPullParserFactory getXPPFactory() throws XmlPullParserException | |
| getXPPParser | back to summary |
|---|---|
| public XmlPullParser getXPPParser() throws XmlPullParserException | |
| parseDocument | back to summary |
|---|---|
| protected Document parseDocument() throws DocumentException, IOException, XmlPullParserException | |
| read | back to summary |
|---|---|
| public Document read(File file) throws DocumentException, IOException, XmlPullParserException
Reads a Document from the given
| |
| read | back to summary |
|---|---|
| public Document read(URL url) throws DocumentException, IOException, XmlPullParserException
Reads a Document from the given
| |
| read | back to summary |
|---|---|
| public Document read(String systemID) throws DocumentException, IOException, XmlPullParserException Reads a Document from the given URL or filename.
If the systemID contains a
| |
| read | back to summary |
|---|---|
| public Document read(InputStream in) throws DocumentException, IOException, XmlPullParserException Reads a Document from the given stream
| |
| read | back to summary |
|---|---|
| public Document read(Reader reader) throws DocumentException, IOException, XmlPullParserException
Reads a Document from the given
| |
| read | back to summary |
|---|---|
| public Document read(char[] text) throws DocumentException, IOException, XmlPullParserException Reads a Document from the given array of characters
| |
| read | back to summary |
|---|---|
| public Document read(InputStream in, String systemID) throws DocumentException, IOException, XmlPullParserException Reads a Document from the given stream
| |
| read | back to summary |
|---|---|
| public Document read(Reader reader, String systemID) throws DocumentException, IOException, XmlPullParserException
Reads a Document from the given
| |
| removeHandler | back to summary |
|---|---|
| public void removeHandler(String path) Removes the
| |
| setDefaultHandler | back to summary |
|---|---|
| public void setDefaultHandler(ElementHandler handler) When multiple
| |
| setDispatchHandler | back to summary |
|---|---|
| protected void setDispatchHandler(DispatchHandler dispatchHandler) | |
| setDocumentFactory | back to summary |
|---|---|
| public void setDocumentFactory(DocumentFactory documentFactory)
This sets the
| |
| setXPPFactory | back to summary |
|---|---|
| public void setXPPFactory(XmlPullParserFactory xPPfactory) | |