Uses of Class
org.gjt.xpp.XmlPullParserException
Packages that use XmlPullParserException
Package
Description
This package defines classes compromising public API of XML Pull Parser 2.0 (org.gjt.xpp).
Constains reference implementation of Xml Pull Parser 2.0 (org.gjt.xpp).
-
Uses of XmlPullParserException in org.gjt.xpp
Methods in org.gjt.xpp that throw XmlPullParserExceptionModifier and TypeMethodDescriptionvoid
XmlStartTag.addAttribute
(String namespaceUri, String localName, String rawName, String value) parameters modeled after SAX2 attribute approachvoid
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 processingvoid
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
XmlStartTag.ensureAttributesCapacity
(int minCapacity) Pre-allocate if necessary tag data structure to hold at least minCapacity attributes .void
XmlNode.ensureChildrenCapacity
(int minCapacity) void
XmlNode.ensureDeclaredNamespacesCapacity
(int minCapacity) int
XmlPullParser.getContentLength()
Return how big is content.byte
XmlPullParser.getEventType()
Returns the type of the current element (START_TAG, END_TAG, CONTENT, etc)XmlRecorder.getOutput()
XmlPullNode.getPullParser()
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!!!!).XmlNode.getQNameLocal
(String qName) Return local part of qname.XmlPullParser.getQNameLocal
(String qName) Return local part of qname.XmlNode.getQNameUri
(String qName) Return uri part of qname.XmlPullParser.getQNameUri
(String qName) Return uri part of qname.void
XmlNode.insertChildAt
(int pos, Object child) boolean
XmlPullParser.isWhitespaceContent()
Check if last CONTENT contained only whitespace characters.void
Modify tag to have namespace URI, localName and rawName.XmlNode.namespace2Prefix
(String namespaceUri) return prefix for namesapce searching node tree upward.XmlPullParserFactory.newEndTag()
Create new end tag.XmlPullParserFactory.newFormatter()
Return new XML formatter.static XmlPullParserFactory
XmlPullParserFactory.newInstance()
Get a new instance of a PullParserFactory used to create XPP.static XmlPullParserFactory
XmlPullParserFactory.newInstance
(Class classLoaderCtx) Get a new instance of a PullParserFactory used to create XPP.static XmlPullParserFactory
XmlPullParserFactory.newInstance
(String factoryClassName) Get a new instance of a PullParserFactory from given class name.XmlNode.newNode()
context sensitive factory method to create the same type of nodeXmlPullNode.newNode()
XmlPullParserFactory.newNode()
Return new XML node.XmlPullParserFactory.newNode
(XmlPullParser pp) Return new XML node that is represeting tree from current pull parser start tag.XmlPullNode.newPullNode
(XmlPullParser pp) XmlPullParserFactory.newPullNode
(XmlPullParser pp) Return new XML pull node that is represeting tree from current pull parser start tag.XmlPullParserFactory.newPullParser()
Create new XML pull parser.XmlPullParserFactory.newRecorder()
Return new XML recorder.XmlPullParserFactory.newStartTag()
Return new XML start tag.byte
XmlPullParser.next()
Get next parsing event.XmlNode.prefix2Namespace
(String prefix) return namespace for prefix searching node tree upward.void
XmlPullNode.readChildren()
Read all reminaing children up to end tag.XmlPullParser.readContent()
Read current content as Stirng.void
XmlNode.readDeclaredNamespaceUris
(String[] uris, int off, int len) void
XmlNode.readDeclaredPrefixes
(String[] prefixes, int off, int len) void
XmlPullParser.readEndTag
(XmlEndTag etag) Read current end tag.void
XmlPullParser.readNamespacesPrefixes
(int depth, String[] prefixes, int off, int len) Return namespace prefixes for element at depthvoid
XmlPullParser.readNamespacesUris
(int depth, String[] uris, int off, int len) Return namespace URIs for element at depthXmlPullNode.readNextChild()
This is preferred method to pull children (children() requires .wrapping object Enumeration).byte
Read subtree into node: call readNodeWithoutChildren and then parse subtree adding children (values obtained with readXontent or readNodeWithoutChildren).Equivalent to calling readNode(reader, false);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.void
XmlPullParser.readNodeWithoutChildren
(XmlNode node) Read node: it calls readStartTag and then if parser is namespaces aware currently declared nemaspeces will be added and defaultNamespace will be set.void
XmlPullParser.readStartTag
(XmlStartTag stag) 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
XmlStartTag.removeAttributeByRawName
(String rawName) This method tries to remove attribute identified by raw name.void
XmlStartTag.removeAttributes()
remove all atributevoid
XmlNode.removeChildAt
(int pos) void
XmlNode.removeChildren()
Removes all children - every child that was implementing XmlNode will have set parent to null.void
XmlNode.removeDeclaredNamespaces()
void
XmlNode.replaceChildAt
(int pos, Object child) void
XmlPullParser.reset()
Reset the parser state.void
XmlPullParser.setAllowedMixedContent
(boolean enable) Allow for mixed element content.void
XmlPullParserBufferControl.setBufferShrinkable
(boolean shrinkable) void
XmlNode.setDefaultNamespaceUri
(String defaultNamespaceUri) Set default namesapce URI (xmlns='....')void
XmlPullParserBufferControl.setHardLimit
(int value) 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
Set the input for parser.void
XmlPullParser.setNamespaceAttributesReporting
(boolean enable) Make parser to report xmlns* attributes.void
XmlPullParser.setNamespaceAware
(boolean enable) Indicate that the parser understands XML Namespacesvoid
XmlPullParserFactory.setNamespaceAware
(boolean awareness) Specifies that the parser produced by this factory will provide support for XML namespaces.void
void
XmlNode.setParentNode
(XmlNode parent) void
XmlPullNode.setPullParser
(XmlPullParser pp) Reset pull node to use pull parser.void
XmlPullParserBufferControl.setSoftLimit
(int value) void
XmlPullNode.skipChildren()
byte
XmlPullParser.skipNode()
Goes directly to the next siblingvoid
void
XmlRecorder.writeContent
(String s) void
XmlRecorder.writeEndTag
(XmlEndTag etag) void
Equivalent to calling writeNode(node, writer, false);void
void
void
XmlRecorder.writeStartTag
(XmlStartTag stag) void
XmlRecorder.writeStartTagAsEndTag
(XmlStartTag stag) void
XmlRecorder.writeStartTagStart
(XmlStartTag stag) void
XmlRecorder.writeXml
(XmlWritable w) -
Uses of XmlPullParserException in org.gjt.xpp.impl
Methods in org.gjt.xpp.impl that throw XmlPullParserExceptionModifier and TypeMethodDescriptionPullParserFactoryFullImpl.newFormatter()
PullParserFactorySmallImpl.newNode()
PullParserFactoryFullImpl.newPullNode
(XmlPullParser pp) PullParserFactoryFullImpl.newPullParser()
PullParserFactorySmallImpl.newPullParser()
PullParserFactorySmallImpl.newRecorder()
-
Uses of XmlPullParserException in org.gjt.xpp.impl.format
Methods in org.gjt.xpp.impl.format that throw XmlPullParserExceptionModifier and TypeMethodDescriptionvoid
void
Recorder.writeContent
(String s) void
Formatter.writeEndTag
(XmlEndTag etag) void
Recorder.writeEndTag
(XmlEndTag etag) protected void
Recorder.writeEscaped
(String s, boolean escapeApostAttrib) void
void
Recorder.writeStartTag
(XmlStartTag stag) void
Formatter.writeStartTagAsEndTag
(XmlStartTag stag) void
Recorder.writeStartTagAsEndTag
(XmlStartTag stag) void
Recorder.writeStartTagStart
(XmlStartTag stag) void
Recorder.writeXml
(XmlWritable w) -
Uses of XmlPullParserException in org.gjt.xpp.impl.node
Methods in org.gjt.xpp.impl.node that throw XmlPullParserExceptionModifier and TypeMethodDescriptionvoid
Node.addNamespaceDeclaration
(String prefix, String namespaceUri) void
Node.appendChild
(Object child) void
Node.ensureChildrenCapacity
(int minCapacity) void
Node.insertChildAt
(int pos, Object child) Node.namespace2Prefix
(String namespaceUri) Node.newNode()
context sensitive factory method to create the same type of nodeNode.prefix2Namespace
(String prefix) void
Node.removeChildAt
(int pos) void
Node.removeChildren()
void
Node.replaceChildAt
(int pos, Object child) -
Uses of XmlPullParserException in org.gjt.xpp.impl.pullnode
Methods in org.gjt.xpp.impl.pullnode that throw XmlPullParserExceptionModifier and TypeMethodDescriptionvoid
PullNode.appendChild
(Object child) PullNode.getPullParser()
void
PullNode.insertChildAt
(int pos, Object child) PullNode.newNode()
PullNode.newPullNode
(XmlPullParser pp) void
PullNode.readChildren()
Read all reminaing children up to end tag.PullNode.readNextChild()
void
PullNode.removeChildAt
(int pos) void
PullNode.removeChildren()
void
PullNode.replaceChildAt
(int pos, Object child) void
PullNode.setPullParser
(XmlPullParser pp) Reset pull node to use pull parser.void
PullNode.skipChildren()
Constructors in org.gjt.xpp.impl.pullnode that throw XmlPullParserException -
Uses of XmlPullParserException in org.gjt.xpp.impl.pullparser
Methods in org.gjt.xpp.impl.pullparser that throw XmlPullParserExceptionModifier and TypeMethodDescriptionint
PullParser.getContentLength()
PullParser.getQNameUri
(String qName) boolean
PullParser.isWhitespaceContent()
Return true if just read CONTENT contained only white spaces.byte
PullParser.next()
This is key method - it reads more from input stream and returns next event type (such as START_TAG, END_TAG, CONTENT).PullParser.readContent()
Return String that contains just read CONTENT.void
PullParser.readEndTag
(XmlEndTag etag) 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 depthvoid
PullParser.readNamespacesUris
(int depth, String[] uris, int off, int len) Return namespace URIs for element at depthbyte
void
PullParser.readNodeWithoutChildren
(XmlNode node) void
PullParser.readStartTag
(XmlStartTag stag) Read value of just read START_TAG into passed as argument StartTag.void
PullParser.setBufferShrinkable
(boolean shrinkable) void
PullParser.setHardLimit
(int value) void
PullParser.setInput
(char[] buf, int off, int len) void
PullParser.setNamespaceAware
(boolean awareness) Set support of namespaces.void
PullParser.setSoftLimit
(int value) byte
PullParser.skipNode()
If parser has just read start tag it allows to skip whoole subtree contined in this element. -
Uses of XmlPullParserException in org.gjt.xpp.impl.tag
Methods in org.gjt.xpp.impl.tag that throw XmlPullParserException -
Uses of XmlPullParserException in org.gjt.xpp.impl.tokenizer
Subclasses of XmlPullParserException in org.gjt.xpp.impl.tokenizerModifier and TypeClassDescriptionclass
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 of XmlPullParserException in org.gjt.xpp.x2impl
Methods in org.gjt.xpp.x2impl that throw XmlPullParserExceptionModifier and TypeMethodDescriptionX2PullParserFactoryImpl.newFormatter()
X2PullParserFactoryImpl.newPullNode
(XmlPullParser pp) X2PullParserFactoryImpl.newPullParser()
-
Uses of XmlPullParserException in org.gjt.xpp.x2impl.x2pullparser
Methods in org.gjt.xpp.x2impl.x2pullparser that throw XmlPullParserExceptionModifier and TypeMethodDescriptionint
X2PullParser.getContentLength()
X2PullParser.getQNameUri
(String qName) boolean
X2PullParser.isWhitespaceContent()
Return true if just read CONTENT contained only white spaces.byte
X2PullParser.next()
This is a key method - translates XNI callbacks into XPP events (such as START_TAG, END_TAG, CONTENT).X2PullParser.readContent()
Return String that contains just read CONTENT.void
X2PullParser.readEndTag
(XmlEndTag etag) 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 depthvoid
X2PullParser.readNamespacesUris
(int depth, String[] uris, int off, int len) Return namespace URIs for element at depthbyte
void
X2PullParser.readNodeWithoutChildren
(XmlNode node) void
X2PullParser.readStartTag
(XmlStartTag stag) Read value of just read START_TAG into passed as argument StartTag.void
X2PullParser.setAllowedMixedContent
(boolean enable) Allow for mixed element content.void
X2PullParser.setBufferShrinkable
(boolean shrinkable) void
X2PullParser.setHardLimit
(int value) void
X2PullParser.setInput
(char[] buf) Reset parser and set new input.void
X2PullParser.setInput
(char[] buf, int off, int len) void
Reset parser and set new input.void
X2PullParser.setNamespaceAttributesReporting
(boolean enable) Make parser to report xmlns* attributes.void
X2PullParser.setNamespaceAware
(boolean awareness) Set support of namespaces.void
X2PullParser.setSoftLimit
(int value) byte
X2PullParser.skipNode()
If parser has just read start tag it allows to skip whoole subtree contined in this element.Constructors in org.gjt.xpp.x2impl.x2pullparser that throw XmlPullParserException