Uses of Class
org.gjt.xpp.XmlPullParserException
-
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)