| Package | Description |
|---|---|
| org.xmlpull.mxp1 |
Contains XPP3 implementation of XMLPULL V1 API.
|
| org.xmlpull.v1 | |
| org.xmlpull.v1.builder |
This package defines API modeled after
XML Information Set
for building incrmentally XML trees
from events streamed from pull parser
(user can start navigating tree before whole XML input was parsed!)
and has an unique ability to bypass tree building for selected sub trees
to work directly with underlying event stream.
|
| org.xmlpull.v1.builder.impl | |
| org.xmlpull.v1.dom2_builder | |
| org.xmlpull.v1.parser_pool | |
| org.xmlpull.v1.samples | |
| org.xmlpull.v1.sax2 | |
| org.xmlpull.v1.util | |
| org.xmlpull.v1.wrapper | |
| org.xmlpull.v1.wrapper.classic |
| Modifier and Type | Class and Description |
|---|---|
class |
MXParser
Absolutely minimal implementation of XMLPULL V1 API
|
class |
MXParserCachingStrings
Extend MXP parser to use string cache of char[] to interned String
|
class |
MXParserNonValidating
Extend MXP parser to be full non validating XML 1.0 parser
(added internal DTD parsing and support for full XML 1.0 (or 1.1) character classes).
|
| Modifier and Type | Method and Description |
|---|---|
XmlPullParser |
MXParserFactory.newPullParser() |
| Modifier and Type | Method and Description |
|---|---|
XmlPullParser |
XmlPullParserFactory.newPullParser()
Creates a new instance of a XML Pull Parser
using the currently configured factory features.
|
| Constructor and Description |
|---|
XmlPullParserException(String msg,
XmlPullParser parser,
Throwable chain) |
| Modifier and Type | Method and Description |
|---|---|
abstract XmlDocument |
XmlInfosetBuilder.parse(XmlPullParser sourceForDocument)
Parse document - parser must be in START_DOCUMENT state.
|
abstract XmlElement |
XmlInfosetBuilder.parseFragment(XmlPullParser sourceForXml)
Parse fragment - parser must be on START_TAG.
|
abstract Object |
XmlInfosetBuilder.parseItem(XmlPullParser pp)
Will convert current parser state into event rerpresenting XML infoset item:
START_Document: XmlDocument without root element
START_TAG: XmlElement without children
TEXT: String or XmlCHaracters depending on builder mode
additiona states to corresponding XML infoset items (when implemented!)
|
abstract XmlElement |
XmlInfosetBuilder.parseStartTag(XmlPullParser pp)
Parser must be on START_TAG and this method will convert START_TAG content into
XmlELement.
|
void |
XmlInfosetBuilder.skipSubTree(XmlPullParser pp)
Move parser from START_TAG to the corresponding END_TAG which means
that XML sub tree is skipped.
|
| Modifier and Type | Method and Description |
|---|---|
XmlDocument |
XmlInfosetBuilderImpl.parse(XmlPullParser pp) |
XmlElement |
XmlInfosetBuilderImpl.parseFragment(XmlPullParser pp) |
Object |
XmlInfosetBuilderImpl.parseItem(XmlPullParser pp) |
XmlElement |
XmlInfosetBuilderImpl.parseStartTag(XmlPullParser pp) |
| Modifier and Type | Method and Description |
|---|---|
protected XmlPullParser |
DOM2XmlPullBuilder.newParser() |
| Modifier and Type | Method and Description |
|---|---|
Element |
DOM2XmlPullBuilder.parse(XmlPullParser pp,
Document docFactory) |
Element |
DOM2XmlPullBuilder.parseSubTree(XmlPullParser pp) |
Element |
DOM2XmlPullBuilder.parseSubTree(XmlPullParser pp,
Document docFactory) |
| Modifier and Type | Method and Description |
|---|---|
XmlPullParser |
XmlPullParserPool.getPullParserFromPool() |
protected XmlPullParser |
XmlPullParserPool.newParser() |
| Modifier and Type | Method and Description |
|---|---|
void |
XmlPullParserPool.returnPullParserToPool(XmlPullParser pp) |
| Modifier and Type | Method and Description |
|---|---|
void |
BestDeal.checkVendor(XmlPullParser parser)
subroutine handling a single vendor
|
void |
RSSReader.convertChannelToHtml(XmlPullParser parser,
XmlSerializer writer) |
void |
RSSReader.convertItemToHtml(XmlPullParser parser,
XmlSerializer writer) |
void |
RSSReader.convertRSSToHtml(XmlPullParser parser,
XmlSerializer writer) |
void |
XmlPullCount.countXml(XmlPullParser xpp) |
protected abstract Object |
XMLRPCDecoder.decodeWithParser(XmlPullParser aParser) |
static String |
XmlCompare.getNextElementText(XmlPullParser parser)
Returns the next Element in the stream (including all sub elements) as a String
|
void |
MyXmlPullApp.processDocument(XmlPullParser xpp) |
void |
MyXmlPullApp.processEndElement(XmlPullParser xpp) |
void |
MyXmlPullApp.processStartElement(XmlPullParser xpp) |
void |
MyXmlPullApp.processText(XmlPullParser xpp) |
void |
BestDeal.update(XmlPullParser parser)
updates the best deal from the given list in the format
|
| Modifier and Type | Field and Description |
|---|---|
protected XmlPullParser |
Driver.pp |
| Modifier and Type | Method and Description |
|---|---|
void |
Driver.parseSubTree(XmlPullParser pp) |
| Constructor and Description |
|---|
Driver(XmlPullParser pp) |
| Modifier and Type | Method and Description |
|---|---|
static String |
XmlPullUtil.getAttributeValue(XmlPullParser pp,
String name)
Return value of attribute with given name and no namespace.
|
static String |
XmlPullUtil.getPIData(XmlPullParser pp)
Return everything past PITarget and S from Processing Instruction (PI) as defined in
XML 1.0 Section 2.6 Processing Instructions
[16] PI ::= '<?' PITarget (S (Char* - (Char* '?>' Char*)))? '?>' |
static String |
XmlPullUtil.getPITarget(XmlPullParser pp)
Return PITarget from Processing Instruction (PI) as defined in
XML 1.0 Section 2.6 Processing Instructions
[16] PI ::= '<?' PITarget (S (Char* - (Char* '?>' Char*)))? '?>' |
static String |
XmlPullUtil.getRequiredAttributeValue(XmlPullParser pp,
String namespace,
String name)
Read attribute value and return it or throw exception if
current element does not have such attribute.
|
static boolean |
XmlPullUtil.matches(XmlPullParser pp,
int type,
String namespace,
String name)
Tests if the current event is of the given type and if the namespace and name match.
|
static void |
XmlPullUtil.nextEndTag(XmlPullParser pp)
Call parser nextTag() and check that it is END_TAG, throw exception if not.
|
static void |
XmlPullUtil.nextEndTag(XmlPullParser pp,
String namespace,
String name)
combine nextTag(); pp.require(XmlPullParser.END_TAG, namespace, name);
|
static void |
XmlPullUtil.nextStartTag(XmlPullParser pp)
call parser nextTag() and check that it is START_TAG, throw exception if not.
|
static void |
XmlPullUtil.nextStartTag(XmlPullParser pp,
String name)
combine nextTag(); pp.require(XmlPullParser.START_TAG, null, name);
|
static void |
XmlPullUtil.nextStartTag(XmlPullParser pp,
String namespace,
String name)
combine nextTag(); pp.require(XmlPullParser.START_TAG, namespace, name);
|
static String |
XmlPullUtil.nextText(XmlPullParser pp,
String namespace,
String name)
Read text content of element ith given namespace and name
(use null namespace do indicate that nemspace should not be checked)
|
static void |
XmlPullUtil.skipSubTree(XmlPullParser pp)
Skip sub tree that is currently porser positioned on.
|
| Modifier and Type | Interface and Description |
|---|---|
interface |
XmlPullParserWrapper
Extensions to XmlPullParser interface
|
| Modifier and Type | Method and Description |
|---|---|
void |
XmlSerializerWrapper.event(XmlPullParser pp)
Serializer current event form pull parser
|
XmlPullParserWrapper |
XmlPullWrapperFactory.newPullParserWrapper(XmlPullParser pp) |
| Modifier and Type | Class and Description |
|---|---|
class |
StaticXmlPullParserWrapper
This class seemlesly extends exisiting parser implementation by adding new methods
(provided by XmlPullUtil) and delegating exisiting methods to parser implementation.
|
class |
XmlPullParserDelegate
This is simple class that implements parser interface by delegating
all calls to actual wrapped class implementation that is passed in constructor.
|
| Modifier and Type | Field and Description |
|---|---|
protected XmlPullParser |
XmlPullParserDelegate.pp |
| Modifier and Type | Method and Description |
|---|---|
void |
StaticXmlSerializerWrapper.event(XmlPullParser pp) |
| Constructor and Description |
|---|
StaticXmlPullParserWrapper(XmlPullParser pp) |
XmlPullParserDelegate(XmlPullParser pp) |
Copyright © 2013. All Rights Reserved.