Uses of Class
org.gjt.xpp.XmlPullParserException
-
Packages that use XmlPullParserException Package Description org.gjt.xpp This package defines classes compromising public API of XML Pull Parser 2.0 (org.gjt.xpp).org.gjt.xpp.impl Constains reference implementation of Xml Pull Parser 2.0 (org.gjt.xpp).org.gjt.xpp.impl.format org.gjt.xpp.impl.node org.gjt.xpp.impl.pullnode org.gjt.xpp.impl.pullparser org.gjt.xpp.impl.tag org.gjt.xpp.impl.tokenizer org.gjt.xpp.x2impl org.gjt.xpp.x2impl.x2pullparser -
-
Uses of XmlPullParserException in org.gjt.xpp
Methods in org.gjt.xpp that throw XmlPullParserException Modifier and Type Method Description voidXmlStartTag. addAttribute(java.lang.String namespaceUri, java.lang.String localName, java.lang.String rawName, java.lang.String value)parameters modeled after SAX2 attribute approachvoidXmlStartTag. addAttribute(java.lang.String namespaceUri, java.lang.String localName, java.lang.String rawName, java.lang.String value, boolean isNamespaceDeclaration)Parameter isNamespaceDeclaration if true indicates that attribute is related to namespace management and may be ignored by normal processingvoidXmlNode. addDeclaredNamespaces(java.lang.String[] prefix, int off, int len, java.lang.String[] namespaceUri)NOTE: node SHOULD NOT keep references to passed arrays!voidXmlNode. addNamespaceDeclaration(java.lang.String prefix, java.lang.String namespaceUri)voidXmlNode. appendChild(java.lang.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)java.io.WriterXmlRecorder. getOutput()XmlPullParserXmlPullNode. 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!!!!).java.lang.StringXmlNode. getQNameLocal(java.lang.String qName)Return local part of qname.java.lang.StringXmlPullParser. getQNameLocal(java.lang.String qName)Return local part of qname.java.lang.StringXmlNode. getQNameUri(java.lang.String qName)Return uri part of qname.java.lang.StringXmlPullParser. getQNameUri(java.lang.String qName)Return uri part of qname.voidXmlNode. insertChildAt(int pos, java.lang.Object child)booleanXmlPullParser. isWhitespaceContent()Check if last CONTENT contained only whitespace characters.voidXmlTag. modifyTag(java.lang.String namespaceURI, java.lang.String localName, java.lang.String rawName)Modify tag to have namespace URI, localName and rawName.java.lang.StringXmlNode. namespace2Prefix(java.lang.String namespaceUri)return prefix for namesapce searching node tree upward.XmlEndTagXmlPullParserFactory. newEndTag()Create new end tag.XmlFormatterXmlPullParserFactory. newFormatter()Return new XML formatter.static XmlPullParserFactoryXmlPullParserFactory. newInstance()Get a new instance of a PullParserFactory used to create XPP.static XmlPullParserFactoryXmlPullParserFactory. newInstance(java.lang.Class classLoaderCtx)Get a new instance of a PullParserFactory used to create XPP.static XmlPullParserFactoryXmlPullParserFactory. newInstance(java.lang.String factoryClassName)Get a new instance of a PullParserFactory from given class name.XmlNodeXmlNode. newNode()context sensitive factory method to create the same type of nodeXmlNodeXmlNode. newNode(java.lang.String amespaceUri, java.lang.String localName)XmlNodeXmlPullNode. newNode()XmlNodeXmlPullParserFactory. newNode()Return new XML node.XmlNodeXmlPullParserFactory. newNode(XmlPullParser pp)Return new XML node that is represeting tree from current pull parser start tag.XmlPullNodeXmlPullNode. newPullNode(XmlPullParser pp)XmlPullNodeXmlPullParserFactory. newPullNode(XmlPullParser pp)Return new XML pull node that is represeting tree from current pull parser start tag.XmlPullParserXmlPullParserFactory. newPullParser()Create new XML pull parser.XmlRecorderXmlPullParserFactory. newRecorder()Return new XML recorder.XmlStartTagXmlPullParserFactory. newStartTag()Return new XML start tag.byteXmlPullParser. next()Get next parsing event.java.lang.StringXmlNode. prefix2Namespace(java.lang.String prefix)return namespace for prefix searching node tree upward.voidXmlPullNode. readChildren()Read all reminaing children up to end tag.java.lang.StringXmlPullParser. readContent()Read current content as Stirng.voidXmlNode. readDeclaredNamespaceUris(java.lang.String[] uris, int off, int len)voidXmlNode. readDeclaredPrefixes(java.lang.String[] prefixes, int off, int len)voidXmlPullParser. readEndTag(XmlEndTag etag)Read current end tag.voidXmlPullParser. readNamespacesPrefixes(int depth, java.lang.String[] prefixes, int off, int len)Return namespace prefixes for element at depthvoidXmlPullParser. readNamespacesUris(int depth, java.lang.String[] uris, int off, int len)Return namespace URIs for element at depthjava.lang.ObjectXmlPullNode. readNextChild()This is preferred method to pull children (children() requires .wrapping object Enumeration).byteXmlPullParser. readNode(XmlNode node)Read subtree into node: call readNodeWithoutChildren and then parse subtree adding children (values obtained with readXontent or readNodeWithoutChildren).XmlNodeXmlPullParserFactory. readNode(java.io.Reader reader)Equivalent to calling readNode(reader, false);XmlNodeXmlPullParserFactory. readNode(java.io.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.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(java.lang.String uri, java.lang.String localName)This method tries to remove attribute identified by namespace uti and local name.booleanXmlStartTag. removeAttributeByRawName(java.lang.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, java.lang.Object child)voidXmlPullParser. reset()Reset the parser state.voidXmlPullParser. setAllowedMixedContent(boolean enable)Allow for mixed element content.voidXmlPullParserBufferControl. setBufferShrinkable(boolean shrinkable)voidXmlNode. setDefaultNamespaceUri(java.lang.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.voidXmlPullParser. setInput(java.io.Reader in)Set 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.voidXmlRecorder. setOutput(java.io.Writer out)voidXmlNode. 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 siblingvoidXmlRecorder. write(java.lang.Object o)voidXmlRecorder. writeContent(java.lang.String s)voidXmlRecorder. writeEndTag(XmlEndTag etag)voidXmlPullParserFactory. writeNode(XmlNode node, java.io.Writer writer)Equivalent to calling writeNode(node, writer, false);voidXmlPullParserFactory. writeNode(XmlNode node, java.io.Writer writer, boolean closeAtEnd)voidXmlRecorder. writeNode(XmlNode node)voidXmlRecorder. 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 XmlPullParserException Modifier and Type Method Description XmlFormatterPullParserFactoryFullImpl. newFormatter()XmlNodePullParserFactorySmallImpl. newNode()XmlPullNodePullParserFactoryFullImpl. newPullNode(XmlPullParser pp)XmlPullParserPullParserFactoryFullImpl. newPullParser()XmlPullParserPullParserFactorySmallImpl. newPullParser()XmlRecorderPullParserFactorySmallImpl. newRecorder() -
Uses of XmlPullParserException in org.gjt.xpp.impl.format
Methods in org.gjt.xpp.impl.format that throw XmlPullParserException Modifier and Type Method Description voidRecorder. write(java.lang.Object o)voidRecorder. writeContent(java.lang.String s)voidFormatter. writeEndTag(XmlEndTag etag)voidRecorder. writeEndTag(XmlEndTag etag)protected voidRecorder. writeEscaped(java.lang.String s, boolean escapeApostAttrib)voidRecorder. writeNode(XmlNode node)voidRecorder. 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 XmlPullParserException Modifier and Type Method Description voidNode. addNamespaceDeclaration(java.lang.String prefix, java.lang.String namespaceUri)voidNode. appendChild(java.lang.Object child)voidNode. ensureChildrenCapacity(int minCapacity)voidNode. insertChildAt(int pos, java.lang.Object child)java.lang.StringNode. namespace2Prefix(java.lang.String namespaceUri)XmlNodeNode. newNode()context sensitive factory method to create the same type of nodeXmlNodeNode. newNode(java.lang.String namespaceUri, java.lang.String localName)java.lang.StringNode. prefix2Namespace(java.lang.String prefix)voidNode. removeChildAt(int pos)voidNode. removeChildren()voidNode. replaceChildAt(int pos, java.lang.Object child) -
Uses of XmlPullParserException in org.gjt.xpp.impl.pullnode
Methods in org.gjt.xpp.impl.pullnode that throw XmlPullParserException Modifier and Type Method Description voidPullNode. appendChild(java.lang.Object child)XmlPullParserPullNode. getPullParser()voidPullNode. insertChildAt(int pos, java.lang.Object child)XmlNodePullNode. newNode()XmlPullNodePullNode. newPullNode(XmlPullParser pp)voidPullNode. readChildren()Read all reminaing children up to end tag.java.lang.ObjectPullNode. readNextChild()voidPullNode. removeChildAt(int pos)voidPullNode. removeChildren()voidPullNode. replaceChildAt(int pos, java.lang.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 Constructor Description PullNode(XmlPullParser pp) -
Uses of XmlPullParserException in org.gjt.xpp.impl.pullparser
Methods in org.gjt.xpp.impl.pullparser that throw XmlPullParserException Modifier and Type Method Description intPullParser. getContentLength()java.lang.StringPullParser. getQNameUri(java.lang.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).java.lang.StringPullParser. 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, java.lang.String[] prefixes, int off, int len)Return namespace prefixes for element at depthvoidPullParser. readNamespacesUris(int depth, java.lang.String[] uris, int off, int len)Return namespace URIs for element at depthbytePullParser. readNode(XmlNode node)voidPullParser. 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 Modifier and Type Method Description voidTag. modifyTag(java.lang.String namespaceURI, java.lang.String localName, java.lang.String rawName)this constructor is modeled after SAX2 startTag -
Uses of XmlPullParserException in org.gjt.xpp.impl.tokenizer
Subclasses of XmlPullParserException in org.gjt.xpp.impl.tokenizer Modifier and Type Class Description classTokenizerBufferOverflowExceptionThis exception is thrown to signal exceeding tokenizer hard limit on internal input buffer.classTokenizerExceptionThis 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 XmlPullParserException Modifier and Type Method Description XmlFormatterX2PullParserFactoryImpl. newFormatter()XmlPullNodeX2PullParserFactoryImpl. newPullNode(XmlPullParser pp)XmlPullParserX2PullParserFactoryImpl. newPullParser() -
Uses of XmlPullParserException in org.gjt.xpp.x2impl.x2pullparser
Methods in org.gjt.xpp.x2impl.x2pullparser that throw XmlPullParserException Modifier and Type Method Description intX2PullParser. getContentLength()java.lang.StringX2PullParser. getQNameUri(java.lang.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).java.lang.StringX2PullParser. 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, java.lang.String[] prefixes, int off, int len)Return namespace prefixes for element at depthvoidX2PullParser. readNamespacesUris(int depth, java.lang.String[] uris, int off, int len)Return namespace URIs for element at depthbyteX2PullParser. readNode(XmlNode node)voidX2PullParser. 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)voidX2PullParser. setInput(java.io.Reader reader)Reset 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 Constructor Description X2PullParser()Create instance of pull parser.
-