| Package | Description |
|---|---|
| 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.builder.xpath.jaxen | |
| org.xmlpull.v1.builder.xpath.saxpath |
| Modifier and Type | Method and Description |
|---|---|
XmlPullParserFactory |
XmlInfosetBuilder.getFactory()
Method get XmlPull factory that is ued by this builder.
|
XmlDocument |
XmlInfosetBuilder.newDocument()
Create a new document.
|
abstract XmlDocument |
XmlInfosetBuilder.newDocument(String version,
Boolean standalone,
String characterEncoding)
Create a new document with given XML prolog.
|
abstract XmlElement |
XmlInfosetBuilder.newFragment(String elementName)
Create XML fragment that is not associated with any document.
|
abstract XmlElement |
XmlInfosetBuilder.newFragment(String elementNamespace,
String elementName)
Create XML fragment that is not associated with any document.
|
abstract XmlElement |
XmlInfosetBuilder.newFragment(XmlNamespace elementNamespace,
String elementName)
Create XML fragment that is not associated with any document.
|
static XmlInfosetBuilder |
XmlInfosetBuilder.newInstance()
Create a new instance of the builder.
|
static XmlInfosetBuilder |
XmlInfosetBuilder.newInstance(XmlPullParserFactory factory) |
abstract XmlNamespace |
XmlInfosetBuilder.newNamespace(String namespaceName)
Create a new namespace that is not associated with any XML document.
|
abstract XmlNamespace |
XmlInfosetBuilder.newNamespace(String prefix,
String namespaceName)
Create a new namespace that is not associated with any XML document.
|
abstract XmlDocument |
XmlInfosetBuilder.parse(XmlPullParser sourceForDocument)
Parse document - parser must be in START_DOCUMENT state.
|
XmlElement |
XmlInfosetBuilder.parseFragementFromInputStream(InputStream is,
String encoding)
Parse input stream to create XML fragment using specified encoding.
|
abstract XmlElement |
XmlInfosetBuilder.parseFragment(XmlPullParser sourceForXml)
Parse fragment - parser must be on START_TAG.
|
XmlElement |
XmlInfosetBuilder.parseFragmentFromInputStream(InputStream is)
Parse input stream to create XML fragment.
|
XmlElement |
XmlInfosetBuilder.parseFragmentFromReader(Reader reader)
Parse reader to create XML fragment.
|
XmlDocument |
XmlInfosetBuilder.parseInputStream(InputStream is)
Parse input stream to create XML document.
|
XmlDocument |
XmlInfosetBuilder.parseInputStream(InputStream is,
String encoding)
Parse input stream to create XML document using specified encoding.
|
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 XmlDocument |
XmlInfosetBuilder.parseLocation(String locationUrl)
Parse input from URL location to create XML document.
|
XmlDocument |
XmlInfosetBuilder.parseReader(Reader reader)
Parse reader to create XML document.
|
abstract XmlElement |
XmlInfosetBuilder.parseStartTag(XmlPullParser pp)
Parser must be on START_TAG and this method will convert START_TAG content into
XmlELement.
|
XmlElement |
XmlElement.requiredElement(XmlNamespace n,
String name)
call element(n, name) and if null was returnedthrow XmlBuilderException
|
abstract void |
XmlInfosetBuilder.serialize(Object item,
XmlSerializer serializer)
Serialize XML infoset item including serializing of children.
|
abstract void |
XmlInfosetBuilder.serializeEndTag(XmlElement el,
XmlSerializer ser)
Write XML end tag with information provided in XML element.
|
abstract void |
XmlInfosetBuilder.serializeItem(Object item,
XmlSerializer serializer)
Serialize XML infoset item without serializing any of children.
|
abstract void |
XmlInfosetBuilder.serializeStartTag(XmlElement el,
XmlSerializer ser)
Write XML start tag with information provided in XML element.
|
void |
XmlInfosetBuilder.serializeToOutputStream(Object item,
OutputStream os)
Serialize item using default UTF8 encoding.
|
void |
XmlInfosetBuilder.serializeToOutputStream(Object item,
OutputStream os,
String encoding)
Serialize item to given output stream using given character encoding.
|
String |
XmlInfosetBuilder.serializeToString(Object item)
Convert item into String representing XML content.
|
void |
XmlInfosetBuilder.serializeToWriter(Object item,
Writer writer)
Serialize item to given writer.
|
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 |
|---|---|
XmlElement |
XmlElementImpl.requiredElement(XmlNamespace n,
String name) |
| Modifier and Type | Class and Description |
|---|---|
class |
FunctionCallException
FunctionCallException is thrown if an exception
occurs during the evaluation of a function. |
class |
JaxenException
Generic Jaxen exception.
|
class |
UnresolvableException
Used when a function-call or variable-reference, or any other lookup
based on namespace and local name, couldn't be resolved.
|
class |
UnsupportedAxisException
Indicates attempt to evaluate an XPath axis that
is unsupported by the current object-model.
|
| Modifier and Type | Class and Description |
|---|---|
class |
SAXPathException
Base of all SAXPath exceptions.
|
class |
SAXPathParseException
Base of all parse-related SAXPath exceptions.
|
class |
XPathSyntaxException |
Copyright © 2013. All Rights Reserved.