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 void
XmlStartTag. addAttribute(java.lang.String namespaceUri, java.lang.String localName, java.lang.String rawName, java.lang.String value)
parameters modeled after SAX2 attribute approachvoid
XmlStartTag. 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 processingvoid
XmlNode. addDeclaredNamespaces(java.lang.String[] prefix, int off, int len, java.lang.String[] namespaceUri)
NOTE: node SHOULD NOT keep references to passed arrays!void
XmlNode. addNamespaceDeclaration(java.lang.String prefix, java.lang.String namespaceUri)
void
XmlNode. appendChild(java.lang.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)java.io.Writer
XmlRecorder. getOutput()
XmlPullParser
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!!!!).java.lang.String
XmlNode. getQNameLocal(java.lang.String qName)
Return local part of qname.java.lang.String
XmlPullParser. getQNameLocal(java.lang.String qName)
Return local part of qname.java.lang.String
XmlNode. getQNameUri(java.lang.String qName)
Return uri part of qname.java.lang.String
XmlPullParser. getQNameUri(java.lang.String qName)
Return uri part of qname.void
XmlNode. insertChildAt(int pos, java.lang.Object child)
boolean
XmlPullParser. isWhitespaceContent()
Check if last CONTENT contained only whitespace characters.void
XmlTag. modifyTag(java.lang.String namespaceURI, java.lang.String localName, java.lang.String rawName)
Modify tag to have namespace URI, localName and rawName.java.lang.String
XmlNode. namespace2Prefix(java.lang.String namespaceUri)
return prefix for namesapce searching node tree upward.XmlEndTag
XmlPullParserFactory. newEndTag()
Create new end tag.XmlFormatter
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(java.lang.Class classLoaderCtx)
Get a new instance of a PullParserFactory used to create XPP.static XmlPullParserFactory
XmlPullParserFactory. newInstance(java.lang.String factoryClassName)
Get a new instance of a PullParserFactory from given class name.XmlNode
XmlNode. newNode()
context sensitive factory method to create the same type of nodeXmlNode
XmlNode. newNode(java.lang.String amespaceUri, java.lang.String localName)
XmlNode
XmlPullNode. newNode()
XmlNode
XmlPullParserFactory. newNode()
Return new XML node.XmlNode
XmlPullParserFactory. newNode(XmlPullParser pp)
Return new XML node that is represeting tree from current pull parser start tag.XmlPullNode
XmlPullNode. newPullNode(XmlPullParser pp)
XmlPullNode
XmlPullParserFactory. newPullNode(XmlPullParser pp)
Return new XML pull node that is represeting tree from current pull parser start tag.XmlPullParser
XmlPullParserFactory. newPullParser()
Create new XML pull parser.XmlRecorder
XmlPullParserFactory. newRecorder()
Return new XML recorder.XmlStartTag
XmlPullParserFactory. newStartTag()
Return new XML start tag.byte
XmlPullParser. next()
Get next parsing event.java.lang.String
XmlNode. prefix2Namespace(java.lang.String prefix)
return namespace for prefix searching node tree upward.void
XmlPullNode. readChildren()
Read all reminaing children up to end tag.java.lang.String
XmlPullParser. readContent()
Read current content as Stirng.void
XmlNode. readDeclaredNamespaceUris(java.lang.String[] uris, int off, int len)
void
XmlNode. readDeclaredPrefixes(java.lang.String[] prefixes, int off, int len)
void
XmlPullParser. readEndTag(XmlEndTag etag)
Read current end tag.void
XmlPullParser. readNamespacesPrefixes(int depth, java.lang.String[] prefixes, int off, int len)
Return namespace prefixes for element at depthvoid
XmlPullParser. readNamespacesUris(int depth, java.lang.String[] uris, int off, int len)
Return namespace URIs for element at depthjava.lang.Object
XmlPullNode. readNextChild()
This is preferred method to pull children (children() requires .wrapping object Enumeration).byte
XmlPullParser. readNode(XmlNode node)
Read subtree into node: call readNodeWithoutChildren and then parse subtree adding children (values obtained with readXontent or readNodeWithoutChildren).XmlNode
XmlPullParserFactory. readNode(java.io.Reader reader)
Equivalent to calling readNode(reader, false);XmlNode
XmlPullParserFactory. 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.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(java.lang.String uri, java.lang.String localName)
This method tries to remove attribute identified by namespace uti and local name.boolean
XmlStartTag. removeAttributeByRawName(java.lang.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, java.lang.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(java.lang.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
XmlPullParser. setInput(java.io.Reader in)
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
XmlRecorder. setOutput(java.io.Writer out)
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
XmlRecorder. write(java.lang.Object o)
void
XmlRecorder. writeContent(java.lang.String s)
void
XmlRecorder. writeEndTag(XmlEndTag etag)
void
XmlPullParserFactory. writeNode(XmlNode node, java.io.Writer writer)
Equivalent to calling writeNode(node, writer, false);void
XmlPullParserFactory. writeNode(XmlNode node, java.io.Writer writer, boolean closeAtEnd)
void
XmlRecorder. writeNode(XmlNode node)
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 XmlPullParserException Modifier and Type Method Description XmlFormatter
PullParserFactoryFullImpl. newFormatter()
XmlNode
PullParserFactorySmallImpl. newNode()
XmlPullNode
PullParserFactoryFullImpl. newPullNode(XmlPullParser pp)
XmlPullParser
PullParserFactoryFullImpl. newPullParser()
XmlPullParser
PullParserFactorySmallImpl. newPullParser()
XmlRecorder
PullParserFactorySmallImpl. 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 void
Recorder. write(java.lang.Object o)
void
Recorder. writeContent(java.lang.String s)
void
Formatter. writeEndTag(XmlEndTag etag)
void
Recorder. writeEndTag(XmlEndTag etag)
protected void
Recorder. writeEscaped(java.lang.String s, boolean escapeApostAttrib)
void
Recorder. writeNode(XmlNode node)
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 XmlPullParserException Modifier and Type Method Description void
Node. addNamespaceDeclaration(java.lang.String prefix, java.lang.String namespaceUri)
void
Node. appendChild(java.lang.Object child)
void
Node. ensureChildrenCapacity(int minCapacity)
void
Node. insertChildAt(int pos, java.lang.Object child)
java.lang.String
Node. namespace2Prefix(java.lang.String namespaceUri)
XmlNode
Node. newNode()
context sensitive factory method to create the same type of nodeXmlNode
Node. newNode(java.lang.String namespaceUri, java.lang.String localName)
java.lang.String
Node. prefix2Namespace(java.lang.String prefix)
void
Node. removeChildAt(int pos)
void
Node. removeChildren()
void
Node. 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 void
PullNode. appendChild(java.lang.Object child)
XmlPullParser
PullNode. getPullParser()
void
PullNode. insertChildAt(int pos, java.lang.Object child)
XmlNode
PullNode. newNode()
XmlPullNode
PullNode. newPullNode(XmlPullParser pp)
void
PullNode. readChildren()
Read all reminaing children up to end tag.java.lang.Object
PullNode. readNextChild()
void
PullNode. removeChildAt(int pos)
void
PullNode. removeChildren()
void
PullNode. replaceChildAt(int pos, java.lang.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 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 int
PullParser. getContentLength()
java.lang.String
PullParser. getQNameUri(java.lang.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).java.lang.String
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, java.lang.String[] prefixes, int off, int len)
Return namespace prefixes for element at depthvoid
PullParser. readNamespacesUris(int depth, java.lang.String[] uris, int off, int len)
Return namespace URIs for element at depthbyte
PullParser. readNode(XmlNode node)
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 Modifier and Type Method Description void
Tag. 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 class
TokenizerBufferOverflowException
This exception is thrown to signal exceeding tokenizer hard limit on internal input buffer.class
TokenizerException
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 XmlPullParserException Modifier and Type Method Description XmlFormatter
X2PullParserFactoryImpl. newFormatter()
XmlPullNode
X2PullParserFactoryImpl. newPullNode(XmlPullParser pp)
XmlPullParser
X2PullParserFactoryImpl. 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 int
X2PullParser. getContentLength()
java.lang.String
X2PullParser. getQNameUri(java.lang.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).java.lang.String
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, java.lang.String[] prefixes, int off, int len)
Return namespace prefixes for element at depthvoid
X2PullParser. readNamespacesUris(int depth, java.lang.String[] uris, int off, int len)
Return namespace URIs for element at depthbyte
X2PullParser. readNode(XmlNode node)
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
X2PullParser. setInput(java.io.Reader reader)
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 Constructor Description X2PullParser()
Create instance of pull parser.
-