Content of current element if in CONTENT state
Utility class to keep information about XML element such as name etc.
temprary array to keep ElementContent stack
temprary array to keep ElementContent stack
how many elements are on elStack
how many elements are on elStack
Have we read empty element?
Have we read empty element?
signal logical end of xml document
Make sure that in attributes temporary array is enough space.
Make sure that in attributes temporary array is enough space.
Make sure that there is enough space to keep size attributes.
Pre-allocate if necessary tag data structure to hold
at least minCapacity attributes .
Make sure that we have enough space to keep element stack if passed size.
Make sure that we have enough space to keep element stack if passed size.
end position of current event in tokenizer biffer
end position of current event in tokenizer biffer
start position of current event in tokenizer biffer
start position of current event in tokenizer biffer
Return number of attributes.
Returns the number of attributes on the current element
Get localName of attribute number index (starts from 0)
if namespaces enabled or just attribute name if namespaces disabled.
Returns the localname of the specified attribute
if namespaces enabled or just attribute name if namespaces disabled.
Get uri of attribute number index (starts from 0).
Returns the namespace URI of the specified attribute
number index (starts from 0).
Returns the prefix of the specified attribute
Returns null if invalid index or if element has no prefix.
Returns the prefix of the specified attribute
Returns null if invalid index or if element has no prefix.
Return qName of atrribute number index (starts from 0)
Returns the raw name of the specified attribute
Returns null if invalid index.
Return value of attribute number index.
Returns the given attributes value
Returns null if invalid index.
Return value of attribute named (uri, localName) or null
of no such attribute found.
Returns the given attributes value
Return value of attribute named qName or null
of no such attribute found.
Returns the given attributes value
Returns null if no attribute with rawName.
it may need to reconsruct whole subtree to get count ...
it will reconsruct whole subtree to get count ...
it may need to reconsruct whole subtree to get count ...
if unfinished it returns actual number of children...
Return how big is content.
Return how big is content.
Return how big is content.
Namesapce URI associated with default namesapce prefix (xmlns='....')
Namesapce URI associated with default namesapce prefix (xmlns='....')
Returns the current depth of the element.
Returns the current depth of the element.
Returns the current depth of the element.
Returns the document source
NOTE: This may be internal buffer and is valud
only until call to method next()- do NOT attempt modify !
Returns the type of the current element (START_TAG, END_TAG, CONTENT, etc)
Returns the type of the current element (START_TAG, END_TAG, CONTENT, etc)
Returns the type of the current element (START_TAG, END_TAG, CONTENT, etc)
Returns the local name of the current element
(current event must be START_TAG or END_TAG)
Get start tag localName if namespaces enabled
or just qName (see below) if namespaces diabled.
Returns the local name of the current element
(current event must be START_TAG or END_TAG)
Returns the local name of the current element
(current event must be START_TAG or END_TAG)
Returns the local name of the current element
Returns the namespace URI of the current element
Returns null if not applicable
(current event must be START_TAG or END_TAG)
Get endtag tag uri (meaningful only if namespaces enabled)
Returns the namespace URI of the current element
Returns null if not applicable
(current event must be START_TAG or END_TAG)
Returns the namespace URI of the current element
Returns null if not applicable
(current event must be START_TAG or END_TAG)
Returns the namespace URI of the current element
Returns null if not applicable
Return string describing current position of parser in input stream.
Return string describing current position of parsers as
text 'at line %d (row) and column %d (colum) [seen %s...]'.
Return string describing current position of parser in input stream as
text 'at line %d (row) and column %d (colum) [seen %s...]'.
Returns the prefix of the current element
or null if elemet has no prefix.
Returns the prefix of the current element
or null if elemet has no prefix.
Returns the prefix of the current element
or null if elemet has no prefix.
Returns the prefix of the current element
or null if elemet has no prefix.
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!!!!).
Return local part of qname.
Return local part of qname.
Return local part of qname.
Return local part of qname.
Return local part of qname.
Return uri part of qname.
Return uri part of qname.
Return uri part of qname.
Return uri part of qname.
Return uri part of qname.
Returns the raw name (prefix + ':' + localName) of the current element
(current event must be START_TAG or END_TAG)
Return end tag name as it is in document (qName).
Returns the raw name (prefix + ':' + localName) of the current element
(current event must be START_TAG or END_TAG)
Returns the raw name (prefix + ':' + localName) of the current element
(current event must be START_TAG or END_TAG)
Returns the raw name (prefix + ':' + localName) of the current element
Is mixed element context allowed?
Is mixed element context allowed?
Is mixed element context allowed?
Return true if attribute at index is namespace declaration
such as xmlns='...' or xmlns:prefix='...'
Return true if attribute at index is namespace declaration
such as xmlns='...' or xmlns:prefix='...'
Should new line be added after end tag?
Should new line be added after end tag?
Is pull parsing of node finished.
Is parser going to report namespace attributes (xmlns*) ?
Is parser going to report namespace attributes (xmlns*) ?
Is parser going to report namespace attributes (xmlns*) ?
Is parser namespace aware?
Is parser namespace aware?
Is parser namespace aware?
Indicates whether or not the factory is configured to produce
parsers which are namespace aware.
Determine if ch is whitespace ([3] S)
Return true if just read CONTENT contained only white spaces.
Return true if just read CONTENT contained only white spaces.
Check if last CONTENT contained only whitespace characters.
return prefix for namesapce searching node tree upward.
return prefix for namesapce searching node tree upward.
Return new XML formatter.
Return new XML formatter.
Return new XML formatter.
Get a new instance of a PullParserFactory used to create XPP.
Get a new instance of a PullParserFactory used to create XPP.
Get a new instance of a PullParserFactory from given class name.
context sensitive factory method to create the same type of node
context sensitive factory method to create the same type of node
context sensitive factory method to create the same type of node
Return new XML node that is represeting tree from current pull parser start tag.
Return new XML pull node that is represeting tree from current pull parser start tag.
Return new XML pull node that is represeting tree from current pull parser start tag.
Return new XML pull node that is represeting tree from current pull parser start tag.
Create new XML pull parser.
Create new XML pull parser.
Create new XML pull parser.
Return new XML start tag.
Return new XML start tag.
Return new XML start tag.
This is key method - it reads more from input stream
and returns next event type
(such as START_TAG, END_TAG, CONTENT).
Return next recognized toke or END_DOCUMENT if no more input.
This is a key method - translates XNI callbacks
into XPP events
(such as START_TAG, END_TAG, CONTENT).
Encapsulate XML Node with list of associated children and namespaces :-).
Node() - constructor for class org.gjt.xpp.impl.node.
Node parent - field in class org.gjt.xpp.impl.node.
Node This falg decides which buffer will be used to retrieve
content for current token.
pc - field in class org.gjt.xpp.impl.tokenizer.
Tokenizer This is buffer for parsed content such as
actual valuue of entity
('<' in buf but in pc it is '<')
Range [pcStart, pcEnd) defines part of pc that is content
of current token iff parsedContent == false
PI - static field in class org.gjt.xpp.impl.tokenizer.
Tokenizer position of next char that will be read from buffer
Range [posStart, posEnd) defines part of buf that is content
of current token iff parsedContent == false
pp - field in class org.gjt.xpp.impl.pullnode.
PullNode return namespace for prefix searching node tree upward.
return namespace for prefix searching node tree upward.
mapping of names prefixes to uris
mapping of names prefixes to uris
Print into StringBuffer element name
Print this class state into StringBuffer element name
Print into StringBuffer element name
Print into StringBuffer element name
Allows node tree to be constructed on demand.
XML Pull Parser (XPP) allows to pull XML events from input stream.
Create instance of pull parser.
Implementation of Pull Parser Factory.
Implementation of Pull Parser Factory.
Extended runtime excpetion to allow chaining.
Read all reminaing children up to end tag.
Read all reminaing children up to end tag.
Return String that contains just read CONTENT.
Return String that contains just read CONTENT.
Read current content as Stirng.
Read value of just read END_TAG into passed as argument EndTag.
Read value of just read END_TAG into passed as argument EndTag.
Return namespace prefixes for element at depth
Return namespace prefixes for element at depth
Return namespace prefixes for element at depth
Return namespace URIs for element at depth
Return namespace URIs for element at depth
Return namespace URIs for element at depth
This is preferred method to pull children
(children() requires .wrapping object Enumeration).
Read subtree into node: call readNodeWithoutChildren
and then parse subtree adding children
(values obtained with readXontent or readNodeWithoutChildren).
Read subtree into node: call readNodeWithoutChildren
and then parse subtree adding children
(values obtained with readXontent or readNodeWithoutChildren).
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.
Read node: it calls readStartTag and then if parser is namespaces
aware currently declared nemaspeces will be added
and defaultNamespace will be set.
Read node: it calls readStartTag and then if parser is namespaces
aware currently declared nemaspeces will be added
and defaultNamespace will be set.
Read node: it calls readStartTag and then if parser is namespaces
aware currently declared nemaspeces will be added
and defaultNamespace will be set.
Read value of just read START_TAG into passed as argument StartTag.
Read value of just read START_TAG into passed as argument StartTag.
Implementatin of Recorder that is simply writing XML to output sink.
This method tries to remove attribute identified by namespace uti and local name.
This method tries to remove attribute identified by namespace uti and local name.
This method tries to remove attribute identified by raw name.
This method tries to remove attribute identified by raw name.
Removes all children - every child that was
implementing XmlNode will have set parent to null.
Removes all children - every child that was
implementing XmlNode will have set parent to null.
should parser report namespace xmlns* attributes ?
should parser report namespace xmlns* attributes ?
Reset parser state so it can be used to parse new
Reset parser state so it can be used to parse new
Clear all Tag state to default values.
Clear all Tag state to default values.
PullNode stays in finished state.
Reinitialize start tag content to none
Clear all Tag state to default values.
Clear all Tag state to default values.
Have we seen root element
Have we seen root element
Allow for mixed element content.
Set support for mixed conetent.
Allow for mixed element content.
Allow for mixed element content.
Set default namesapce URI (xmlns='....')
Set default namesapce URI (xmlns='....')
Should new line be added after end tag?
Should new line be added after end tag?
NOTE: setting it to true will affect output XML
parsing when there are elements with mixed content allowed!
Set hard limit on internal buffer size.
Reset parser and set new input.
Reset tokenizer state and set new input source
Reset parser and set new input.
Set the input for parser.
Set the input for parser.
Set the input for parser.
Set the input for parser.
Reset parser and set new input.
Reset tokenizer state and set new input source
Reset parser and set new input.
Set the input for parser.
Make parser to report xmlns* attributes.
Make parser to report xmlns* attributes.
Make parser to report xmlns* attributes.
Set support of namespaces.
Set support of namespaces.
Indicate that the parser understands XML Namespaces
NOTE: this is not resetable parameter.
Specifies that the parser produced by this factory will provide
support for XML namespaces.
Set notification of all XML content tokens:
Characters, Comment, CDSect, Doctype, PI, EntityRef, CharRef and
AttValue (tokens for STag, ETag and Attribute are always sent).
Allow reporting parsed content for element content
and attribute content (no need to deal with low level
tokens such as in setNotifyAll).
Reset pull node to use pull parser.
Reset pull node to use pull parser.
Set soft limit on internal buffer size.
If parser has just read start tag it allows to skip whoole
subtree contined in this element.
If parser has just read start tag it allows to skip whoole
subtree contined in this element.
Goes directly to the next sibling
NOTE: parser must be on START_TAG event.
Encapsulate XML STag and EmptyElement
what is current event type as returned from next()?
what is current event type as returned from next()?
should parser support namespaces?
should parser support namespaces?
used only internally by XPP
Utility class to keep information about XML element such as name etc.
This is Xerces 2 driver that uses XNI pull parsing capabilities to
implement XML Pull Parser API.
Create instance of pull parser.
Implementation of Pull Parser Factory.
Extended runtime excpetion to allow chaining.
This represent XML end tag.
This interface extends XmlRecorder to give some control
over formattingof XML output.
This class represents XML subtree.
when true indicates that attribute is xmlns* related
when true indicates that attribute is xmlns* related
This class represents pullable XML subtree - children are built on
demand.
Generic interface for simple and quick XML Pull Parser.
Additional interface to control XML Pull Parser buffering.
Special interface to retrieve event positioning information.
This exception is thrown to signal XML Pull Parser related excepions.
This class is used to create implementations of XML Pull Parser.
Proteted constructor to be called by factory implementations.
This class represents abstract functionality necessary to
to persist XML Pull Parser events.
This class represents abstract functionality necessary to
to persist XML Pull Parser events.
Base interface that encapsulates common functionality for
XML elements: both start tag and end tag
(an empty element is equivalent to start tag followed by
end tag so for simplicity ti is not modeled as a separate class).
This interface can be used by classes that wishes to implement
its own way to persist XML into writer.