Uses of Class org.gjt.xpp.XmlPullParserException

Uses in package org.gjt.xpp

Methods which throw type org.gjt.xpp.XmlPullParserException

void
XmlStartTag.addAttribute(String namespaceUri, String localName, String rawName, String value)
parameters modeled after SAX2 attribute approach
void
XmlStartTag.addAttribute(String namespaceUri, String localName, String rawName, String value, boolean isNamespaceDeclaration)
Parameter isNamespaceDeclaration if true indicates that attribute is related to namespace management and may be ignored by normal processing

NOTE: this class has no support for resolving namespaces and such support may be added later (see XmlNode and namespaces methids)

void
XmlNode.addDeclaredNamespaces(String[] prefix, int off, int len, String[] namespaceUri)
NOTE: node SHOULD NOT keep references to passed arrays!
void
XmlNode.addNamespaceDeclaration(String prefix, String namespaceUri)
void
XmlNode.appendChild(Object child)
void
Pre-allocate if necessary tag data structure to hold at least minCapacity attributes .
void
void
int
Return how big is content.
byte
Returns the type of the current element (START_TAG, END_TAG, CONTENT, etc)
Writer
XmlPullParser
Get parser that is use to build this node tree and this pull node becomes finished - the caller is responsibile to move pull parser state to the end tag of this node (or parent pull node will be left in unconsistent state!!!!).
String
XmlNode.getQNameLocal(String qName)
Return local part of qname.
String
Return local part of qname.
String
XmlNode.getQNameUri(String qName)
Return uri part of qname.
String
XmlPullParser.getQNameUri(String qName)
Return uri part of qname.
void
XmlNode.insertChildAt(int pos, Object child)
boolean
Check if last CONTENT contained only whitespace characters.
void
XmlTag.modifyTag(String namespaceURI, String localName, String rawName)
Modify tag to have namespace URI, localName and rawName.
String
XmlNode.namespace2Prefix(String namespaceUri)
return prefix for namesapce searching node tree upward.
XmlEndTag
Create new end tag.
XmlFormatter
Return new XML formatter.
XmlPullParserFactory
Get a new instance of a PullParserFactory used to create XPP.
XmlPullParserFactory
XmlPullParserFactory.newInstance(Class classLoaderCtx)
Get a new instance of a PullParserFactory used to create XPP.
XmlPullParserFactory
XmlPullParserFactory.newInstance(String factoryClassName)
Get a new instance of a PullParserFactory from given class name.
XmlNode
context sensitive factory method to create the same type of node
XmlNode
context sensitive factory method to create the same type of node
XmlNode
Return new XML node.
XmlNode
XmlNode.newNode(String amespaceUri, String localName)
XmlNode
Return new XML node that is represeting tree from current pull parser start tag.
XmlPullNode
XmlPullNode
Return new XML pull node that is represeting tree from current pull parser start tag.
XmlPullParser
Create new XML pull parser.
XmlRecorder
Return new XML recorder.
XmlStartTag
Return new XML start tag.
byte
Get next parsing event.
String
XmlNode.prefix2Namespace(String prefix)
return namespace for prefix searching node tree upward.
void
Read all reminaing children up to end tag.
String
Read current content as Stirng.
void
XmlNode.readDeclaredNamespaceUris(String[] uris, int off, int len)
void
XmlNode.readDeclaredPrefixes(String[] prefixes, int off, int len)
void
Read current end tag.
void
XmlPullParser.readNamespacesPrefixes(int depth, String[] prefixes, int off, int len)
Return namespace prefixes for element at depth
void
XmlPullParser.readNamespacesUris(int depth, String[] uris, int off, int len)
Return namespace URIs for element at depth
Object
This is preferred method to pull children (children() requires .wrapping object Enumeration).
XmlNode
Equivalent to calling readNode(reader, false);
XmlNode
XmlPullParserFactory.readNode(Reader reader, boolean closeAtEnd)
Read XmlNode from input - essentially it is utility function that will create instance of pull parser, feed input inpt it and return new node tree parsed form the input.
byte
Read subtree into node: call readNodeWithoutChildren and then parse subtree adding children (values obtained with readXontent or readNodeWithoutChildren).
void
Read node: it calls readStartTag and then if parser is namespaces aware currently declared nemaspeces will be added and defaultNamespace will be set.
void
Read current start tag.
boolean
XmlStartTag.removeAttributeByName(String uri, String localName)
This method tries to remove attribute identified by namespace uti and local name.
boolean
This method tries to remove attribute identified by raw name.
void
remove all atribute
void
void
Removes all children - every child that was implementing XmlNode will have set parent to null.
void
void
XmlNode.replaceChildAt(int pos, Object child)
void
Reset the parser state.
void
Allow for mixed element content.
void
void
XmlNode.setDefaultNamespaceUri(String defaultNamespaceUri)
Set default namesapce URI (xmlns='....')
void
void
Set the input for parser.
void
XmlPullParser.setInput(char[] buf)
Set the input for parser.
void
XmlPullParser.setInput(char[] buf, int off, int len)
Set the input for parser.
void
Make parser to report xmlns* attributes.
void
Indicate that the parser understands XML Namespaces

NOTE: this is not resetable parameter.

void
Specifies that the parser produced by this factory will provide support for XML namespaces.
void
XmlRecorder.setOutput(Writer out)
void
void
Reset pull node to use pull parser.
void
void
byte
Goes directly to the next sibling

NOTE: parser must be on START_TAG event.

void
XmlRecorder.write(Object o)
void
void
void
void
XmlPullParserFactory.writeNode(XmlNode node, Writer writer)
Equivalent to calling writeNode(node, writer, false);
void
XmlPullParserFactory.writeNode(XmlNode node, Writer writer, boolean closeAtEnd)
void
void
void
void

Uses in package org.gjt.xpp.impl

Methods which throw type org.gjt.xpp.XmlPullParserException

XmlFormatter
Return new XML formatter.
XmlNode
XmlPullNode
Return new XML pull node that is represeting tree from current pull parser start tag.
XmlPullParser
Create new XML pull parser.
XmlPullParser
XmlRecorder

Uses in package org.gjt.xpp.impl.format

Methods which throw type org.gjt.xpp.XmlPullParserException

void
Recorder.write(Object o)
void
void
void
void
Recorder.writeEscaped(String s, boolean escapeApostAttrib)
void
void
void
void
void
void

Uses in package org.gjt.xpp.impl.node

Methods which throw type org.gjt.xpp.XmlPullParserException

void
Node.addNamespaceDeclaration(String prefix, String namespaceUri)
void
Node.appendChild(Object child)
void
Node.ensureChildrenCapacity(int minCapacity)
void
Node.insertChildAt(int pos, Object child)
String
Node.namespace2Prefix(String namespaceUri)
return prefix for namesapce searching node tree upward.
XmlNode
context sensitive factory method to create the same type of node
XmlNode
Node.newNode(String namespaceUri, String localName)
String
Node.prefix2Namespace(String prefix)
return namespace for prefix searching node tree upward.
void
void
Removes all children - every child that was implementing XmlNode will have set parent to null.
void
Node.replaceChildAt(int pos, Object child)

Uses in package org.gjt.xpp.impl.pullnode

Constructors which throw type org.gjt.xpp.XmlPullParserException

Methods which throw type org.gjt.xpp.XmlPullParserException

void
PullNode.appendChild(Object child)
XmlPullParser
void
PullNode.insertChildAt(int pos, Object child)
XmlNode
XmlPullNode
void
Read all reminaing children up to end tag.
Object
void
void
void
PullNode.replaceChildAt(int pos, Object child)
void
Reset pull node to use pull parser.
void

Uses in package org.gjt.xpp.impl.pullparser

Methods which throw type org.gjt.xpp.XmlPullParserException

int
Return how big is content.
String
PullParser.getQNameUri(String qName)
Return uri part of qname.
boolean
Return true if just read CONTENT contained only white spaces.
byte
This is key method - it reads more from input stream and returns next event type (such as START_TAG, END_TAG, CONTENT).
String
Return String that contains just read CONTENT.
void
Read value of just read END_TAG into passed as argument EndTag.
void
PullParser.readNamespacesPrefixes(int depth, String[] prefixes, int off, int len)
Return namespace prefixes for element at depth
void
PullParser.readNamespacesUris(int depth, String[] uris, int off, int len)
Return namespace URIs for element at depth
byte
Read subtree into node: call readNodeWithoutChildren and then parse subtree adding children (values obtained with readXontent or readNodeWithoutChildren).
void
Read node: it calls readStartTag and then if parser is namespaces aware currently declared nemaspeces will be added and defaultNamespace will be set.
void
Read value of just read START_TAG into passed as argument StartTag.
void
PullParser.setBufferShrinkable(boolean shrinkable)
void
void
PullParser.setInput(char[] buf, int off, int len)
Set the input for parser.
void
PullParser.setNamespaceAware(boolean awareness)
Set support of namespaces.
void
byte
If parser has just read start tag it allows to skip whoole subtree contined in this element.

Uses in package org.gjt.xpp.impl.tag

Methods which throw type org.gjt.xpp.XmlPullParserException

void
Tag.modifyTag(String namespaceURI, String localName, String rawName)
this constructor is modeled after SAX2 startTag

Uses in package org.gjt.xpp.impl.tokenizer

Classes derived from org.gjt.xpp.XmlPullParserException

class
This exception is thrown to signal exceeding tokenizer hard limit on internal input buffer.
class
This exception is thrown to signal all XML tokenizing errors.

Uses in package org.gjt.xpp.x2impl

Methods which throw type org.gjt.xpp.XmlPullParserException

XmlFormatter
Return new XML formatter.
XmlPullNode
Return new XML pull node that is represeting tree from current pull parser start tag.
XmlPullParser
Create new XML pull parser.

Uses in package org.gjt.xpp.x2impl.x2pullparser

Constructors which throw type org.gjt.xpp.XmlPullParserException

Create instance of pull parser.

Methods which throw type org.gjt.xpp.XmlPullParserException

int
Return how big is content.
String
X2PullParser.getQNameUri(String qName)
Return uri part of qname.
boolean
Return true if just read CONTENT contained only white spaces.
byte
This is a key method - translates XNI callbacks into XPP events (such as START_TAG, END_TAG, CONTENT).
String
Return String that contains just read CONTENT.
void
Read value of just read END_TAG into passed as argument EndTag.
void
X2PullParser.readNamespacesPrefixes(int depth, String[] prefixes, int off, int len)
Return namespace prefixes for element at depth
void
X2PullParser.readNamespacesUris(int depth, String[] uris, int off, int len)
Return namespace URIs for element at depth
byte
Read subtree into node: call readNodeWithoutChildren and then parse subtree adding children (values obtained with readXontent or readNodeWithoutChildren).
void
Read node: it calls readStartTag and then if parser is namespaces aware currently declared nemaspeces will be added and defaultNamespace will be set.
void
Read value of just read START_TAG into passed as argument StartTag.
void
Allow for mixed element content.
void
X2PullParser.setBufferShrinkable(boolean shrinkable)
void
void
X2PullParser.setInput(Reader reader)
Reset parser and set new input.
void
X2PullParser.setInput(char[] buf)
Reset parser and set new input.
void
X2PullParser.setInput(char[] buf, int off, int len)
Set the input for parser.
void
Make parser to report xmlns* attributes.
void
X2PullParser.setNamespaceAware(boolean awareness)
Set support of namespaces.
void
byte
If parser has just read start tag it allows to skip whoole subtree contined in this element.

Copyright (c) 2003 IU Extreme! Lab http://www.extreme.indiana.edu/ All Rights Reserved.

Note this package is deprecated by XPP3 that implements XmlPull API