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 TypeMethodDescriptionvoidXmlStartTag.addAttribute(String namespaceUri, String localName, String rawName, String value) parameters modeled after SAX2 attribute approachvoidXmlStartTag.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 processingvoidXmlNode.addDeclaredNamespaces(String[] prefix, int off, int len, String[] namespaceUri) NOTE: node SHOULD NOT keep references to passed arrays!voidXmlNode.addNamespaceDeclaration(String prefix, String namespaceUri) voidXmlNode.appendChild(Object child) voidXmlStartTag.ensureAttributesCapacity(int minCapacity) Pre-allocate if necessary tag data structure to hold at least minCapacity attributes .voidXmlNode.ensureChildrenCapacity(int minCapacity) voidXmlNode.ensureDeclaredNamespacesCapacity(int minCapacity) intXmlPullParser.getContentLength()Return how big is content.byteXmlPullParser.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.voidXmlNode.insertChildAt(int pos, Object child) booleanXmlPullParser.isWhitespaceContent()Check if last CONTENT contained only whitespace characters.voidModify 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 XmlPullParserFactoryXmlPullParserFactory.newInstance()Get a new instance of a PullParserFactory used to create XPP.static XmlPullParserFactoryXmlPullParserFactory.newInstance(Class classLoaderCtx) Get a new instance of a PullParserFactory used to create XPP.static XmlPullParserFactoryXmlPullParserFactory.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.byteXmlPullParser.next()Get next parsing event.XmlNode.prefix2Namespace(String prefix) return namespace for prefix searching node tree upward.voidXmlPullNode.readChildren()Read all reminaing children up to end tag.XmlPullParser.readContent()Read current content as Stirng.voidXmlNode.readDeclaredNamespaceUris(String[] uris, int off, int len) voidXmlNode.readDeclaredPrefixes(String[] prefixes, int off, int len) voidXmlPullParser.readEndTag(XmlEndTag etag) Read current end tag.voidXmlPullParser.readNamespacesPrefixes(int depth, String[] prefixes, int off, int len) Return namespace prefixes for element at depthvoidXmlPullParser.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).byteRead 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.voidXmlPullParser.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.voidXmlPullParser.readStartTag(XmlStartTag stag) Read current start tag.booleanXmlStartTag.removeAttributeByName(String uri, String localName) This method tries to remove attribute identified by namespace uti and local name.booleanXmlStartTag.removeAttributeByRawName(String rawName) This method tries to remove attribute identified by raw name.voidXmlStartTag.removeAttributes()remove all atributevoidXmlNode.removeChildAt(int pos) voidXmlNode.removeChildren()Removes all children - every child that was implementing XmlNode will have set parent to null.voidXmlNode.removeDeclaredNamespaces()voidXmlNode.replaceChildAt(int pos, Object child) voidXmlPullParser.reset()Reset the parser state.voidXmlPullParser.setAllowedMixedContent(boolean enable) Allow for mixed element content.voidXmlPullParserBufferControl.setBufferShrinkable(boolean shrinkable) voidXmlNode.setDefaultNamespaceUri(String defaultNamespaceUri) Set default namesapce URI (xmlns='....')voidXmlPullParserBufferControl.setHardLimit(int value) voidXmlPullParser.setInput(char[] buf) Set the input for parser.voidXmlPullParser.setInput(char[] buf, int off, int len) Set the input for parser.voidSet the input for parser.voidXmlPullParser.setNamespaceAttributesReporting(boolean enable) Make parser to report xmlns* attributes.voidXmlPullParser.setNamespaceAware(boolean enable) Indicate that the parser understands XML NamespacesvoidXmlPullParserFactory.setNamespaceAware(boolean awareness) Specifies that the parser produced by this factory will provide support for XML namespaces.voidvoidXmlNode.setParentNode(XmlNode parent) voidXmlPullNode.setPullParser(XmlPullParser pp) Reset pull node to use pull parser.voidXmlPullParserBufferControl.setSoftLimit(int value) voidXmlPullNode.skipChildren()byteXmlPullParser.skipNode()Goes directly to the next siblingvoidvoidXmlRecorder.writeContent(String s) voidXmlRecorder.writeEndTag(XmlEndTag etag) voidEquivalent to calling writeNode(node, writer, false);voidvoidvoidXmlRecorder.writeStartTag(XmlStartTag stag) voidXmlRecorder.writeStartTagAsEndTag(XmlStartTag stag) voidXmlRecorder.writeStartTagStart(XmlStartTag stag) voidXmlRecorder.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 TypeMethodDescriptionvoidvoidRecorder.writeContent(String s) voidFormatter.writeEndTag(XmlEndTag etag) voidRecorder.writeEndTag(XmlEndTag etag) protected voidRecorder.writeEscaped(String s, boolean escapeApostAttrib) voidvoidRecorder.writeStartTag(XmlStartTag stag) voidFormatter.writeStartTagAsEndTag(XmlStartTag stag) voidRecorder.writeStartTagAsEndTag(XmlStartTag stag) voidRecorder.writeStartTagStart(XmlStartTag stag) voidRecorder.writeXml(XmlWritable w) -
Uses of XmlPullParserException in org.gjt.xpp.impl.node
Methods in org.gjt.xpp.impl.node that throw XmlPullParserExceptionModifier and TypeMethodDescriptionvoidNode.addNamespaceDeclaration(String prefix, String namespaceUri) voidNode.appendChild(Object child) voidNode.ensureChildrenCapacity(int minCapacity) voidNode.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) voidNode.removeChildAt(int pos) voidNode.removeChildren()voidNode.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 TypeMethodDescriptionvoidPullNode.appendChild(Object child) PullNode.getPullParser()voidPullNode.insertChildAt(int pos, Object child) PullNode.newNode()PullNode.newPullNode(XmlPullParser pp) voidPullNode.readChildren()Read all reminaing children up to end tag.PullNode.readNextChild()voidPullNode.removeChildAt(int pos) voidPullNode.removeChildren()voidPullNode.replaceChildAt(int pos, Object child) voidPullNode.setPullParser(XmlPullParser pp) Reset pull node to use pull parser.voidPullNode.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 TypeMethodDescriptionintPullParser.getContentLength()PullParser.getQNameUri(String qName) booleanPullParser.isWhitespaceContent()Return true if just read CONTENT contained only white spaces.bytePullParser.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.voidPullParser.readEndTag(XmlEndTag etag) Read value of just read END_TAG into passed as argument EndTag.voidPullParser.readNamespacesPrefixes(int depth, String[] prefixes, int off, int len) Return namespace prefixes for element at depthvoidPullParser.readNamespacesUris(int depth, String[] uris, int off, int len) Return namespace URIs for element at depthbytevoidPullParser.readNodeWithoutChildren(XmlNode node) voidPullParser.readStartTag(XmlStartTag stag) Read value of just read START_TAG into passed as argument StartTag.voidPullParser.setBufferShrinkable(boolean shrinkable) voidPullParser.setHardLimit(int value) voidPullParser.setInput(char[] buf, int off, int len) voidPullParser.setNamespaceAware(boolean awareness) Set support of namespaces.voidPullParser.setSoftLimit(int value) bytePullParser.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 TypeClassDescriptionclassThis exception is thrown to signal exceeding tokenizer hard limit on internal input buffer.classThis 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 TypeMethodDescriptionintX2PullParser.getContentLength()X2PullParser.getQNameUri(String qName) booleanX2PullParser.isWhitespaceContent()Return true if just read CONTENT contained only white spaces.byteX2PullParser.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.voidX2PullParser.readEndTag(XmlEndTag etag) Read value of just read END_TAG into passed as argument EndTag.voidX2PullParser.readNamespacesPrefixes(int depth, String[] prefixes, int off, int len) Return namespace prefixes for element at depthvoidX2PullParser.readNamespacesUris(int depth, String[] uris, int off, int len) Return namespace URIs for element at depthbytevoidX2PullParser.readNodeWithoutChildren(XmlNode node) voidX2PullParser.readStartTag(XmlStartTag stag) Read value of just read START_TAG into passed as argument StartTag.voidX2PullParser.setAllowedMixedContent(boolean enable) Allow for mixed element content.voidX2PullParser.setBufferShrinkable(boolean shrinkable) voidX2PullParser.setHardLimit(int value) voidX2PullParser.setInput(char[] buf) Reset parser and set new input.voidX2PullParser.setInput(char[] buf, int off, int len) voidReset parser and set new input.voidX2PullParser.setNamespaceAttributesReporting(boolean enable) Make parser to report xmlns* attributes.voidX2PullParser.setNamespaceAware(boolean awareness) Set support of namespaces.voidX2PullParser.setSoftLimit(int value) byteX2PullParser.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