|
J avolution v3.7 (J2SE 1.5+) | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjavolution.xml.pull.XmlPullParserImpl
public final class XmlPullParserImpl
This class provides a real-time XPP-like XML parser; this parser is extremely fast (around 2-5x times faster than conventional SAX/XPP parsers).
This parser does not create temporary objects
(e.g. no String instance allocated on the heap) and
has no adverse effect on memory footprint and garbage collection.
The parser input source can be either a Reader,
an InputStream or even a ByteBuffer (e.g. MappedByteBuffer).
Here is an example parsing a resource as input stream:
InputStream in = Configuration.class.getResourceAsStream("configuration.xml");
XmlPullParserImpl xpp = new XmlPullParserImpl();
xpp.setInput(in);
for (int e = xpp.getEventType(); e != XmlPullParserImpl.END_DOCUMENT; e = xpp.next()) {
if (e == XmlPullParserImpl.START_TAG) { // Reads <key>value</key>
CharSequence key = xpp.getName();
if (xpp.next() == XmlPullParserImpl.TEXT) {
CharSequence value = xpp.getText();
Configuration.set(key, value);
}
}
}
This parser is light (less than 15Kbytes compressed) and maintains a very small memory footprint while parsing (e.g. less than 10Kbytes while parsing 32Mbytes files). Typical applications include SOAP messaging, embedded/realtime systems (J2ME), web servers (possibly thousands instances running concurrently), etc.
The CharSequence generated by this parser have
the following characteristics:
CharSequence created while parsing an XML element are
reused only after the element is out-of-scope (end tag).CharSequence (e.g. String).String and can be
used to retrieve data from maps (e.g.
FastMap) for which
the keys are String instances.CharSequence, they can quickly be
converted to primitive types (e.g. int, double) using the
TypeFormat utility class.Finally, this parser does not break up character data during call back (the whole character data between markups is always being returned).
Note: If a SAX2 parser is required, applications may also use the
SAX2 wrapper
(3-5x faster than conventional SAX2 parsers).
| Field Summary | |
|---|---|
static java.lang.String |
FEATURE_IGNORE_WHITESPACE
If this feature is activated, whitespaces are ignored. |
| Fields inherited from interface javolution.xml.pull.XmlPullParser |
|---|
CDSECT, COMMENT, DOCDECL, END_DOCUMENT, END_TAG, ENTITY_REF, FEATURE_PROCESS_DOCDECL, FEATURE_PROCESS_NAMESPACES, FEATURE_REPORT_NAMESPACE_ATTRIBUTES, FEATURE_VALIDATION, IGNORABLE_WHITESPACE, NO_NAMESPACE, PROCESSING_INSTRUCTION, START_DOCUMENT, START_TAG, TEXT, TYPES |
| Constructor Summary | |
|---|---|
XmlPullParserImpl()
Default constructor. |
|
| Method Summary | |
|---|---|
void |
defineEntityReplacementText(java.lang.String entityName,
java.lang.String replacementText)
Set new value for entity replacement text as defined in XML 1.0 Section 4.5 Construction of Internal Entity Replacement Text. |
int |
getAttributeCount()
Returns the number of attributes of the current start tag, or -1 if the current event type is not START_TAG |
java.lang.CharSequence |
getAttributeName(int index)
Returns the local name of the specified attribute if namespaces are enabled or just attribute name if namespaces are disabled. |
java.lang.CharSequence |
getAttributeNamespace(int index)
Returns the namespace URI of the attribute with the given index (starts from 0). |
java.lang.CharSequence |
getAttributePrefix(int index)
Returns the prefix of the specified attribute Returns null if the element has no prefix. |
java.lang.String |
getAttributeType(int index)
Returns the type of the specified attribute If parser is non-validating it MUST return CDATA. |
java.lang.CharSequence |
getAttributeValue(int index)
Returns the given attributes value. |
java.lang.CharSequence |
getAttributeValue(java.lang.String namespace,
java.lang.String name)
Returns the attributes value identified by namespace URI and namespace localName. |
int |
getColumnNumber()
Returns the current column number, starting from 0. |
int |
getDepth()
Returns the current depth of the element. |
int |
getEventType()
Returns the type of the current event (START_TAG, END_TAG, TEXT, etc.) |
boolean |
getFeature(java.lang.String name)
Returns the current value of the given feature. |
java.lang.String |
getInputEncoding()
Returns the input encoding if known, null otherwise. |
int |
getLineNumber()
Returns the current line number, starting from 1. |
java.lang.CharSequence |
getName()
For START_TAG or END_TAG events, the (local) name of the current element is returned when namespaces are enabled. |
java.lang.CharSequence |
getNamespace()
Returns the namespace URI of the current element. |
java.lang.CharSequence |
getNamespace(java.lang.String prefix)
Returns the URI corresponding to the given prefix, depending on current state of the parser. |
int |
getNamespaceCount(int depth)
Returns the numbers of elements in the namespace stack for the given depth. |
java.lang.CharSequence |
getNamespacePrefix(int pos)
Returns the namespace prefixe for the given position in the namespace stack. |
java.lang.CharSequence |
getNamespaceUri(int pos)
Returns the namespace URI for the given position in the namespace stack If the position is out of range, an exception is thrown. |
java.lang.CharSequence |
getPositionDescription()
Returns a short text describing the current parser state, including the position, a description of the current event and the data source if known. |
java.lang.CharSequence |
getPrefix()
Returns the prefix of the current element. |
java.lang.Object |
getProperty(java.lang.String name)
Look up the value of a property. |
java.lang.CharSequence |
getQName()
Returns the current element qualified name. |
Attributes |
getSaxAttributes()
Returns SAX-2 like attributes for the current element. |
java.lang.CharSequence |
getText()
Returns the text content of the current event as CharSequence. |
char[] |
getTextCharacters(int[] holderForStartAndLength)
Returns the buffer that contains the text of the current event, as well as the start offset and length relevant for the current event. |
boolean |
isAttributeDefault(int index)
Returns if the specified attribute was not in input was declared in XML. |
boolean |
isEmptyElementTag()
Returns true if the current event is START_TAG and the tag is degenerated (e.g. |
boolean |
isWhitespace()
Checks whether the current TEXT event contains only whitespace characters. |
int |
next()
Get next parsing event - element content will be coalesced and only one TEXT event must be returned for whole element content (comments and processing instructions will be ignored and entity references must be expanded or exception mus be thrown if entity reference can not be expanded). |
int |
nextTag()
Call next() and return event if it is START_TAG or END_TAG otherwise throw an exception. |
java.lang.CharSequence |
nextText()
If current event is START_TAG then if next element is TEXT then element content is returned or if next event is END_TAG then empty string is returned, otherwise exception is thrown. |
int |
nextToken()
This method works similarly to next() but will expose additional event types (COMMENT, CDSECT, DOCDECL, ENTITY_REF, PROCESSING_INSTRUCTION, or IGNORABLE_WHITESPACE) if they are available in input. |
void |
require(int type,
java.lang.String namespace,
java.lang.String name)
Test if the current event is of the given type and if the namespace and name do match. |
void |
reset()
Resets the internal state of this object to its default values. |
void |
setFeature(java.lang.String name,
boolean state)
Use this call to change the general behaviour of the parser, such as namespace processing or doctype declaration handling. |
void |
setInput(java.nio.ByteBuffer byteBuffer)
Sets the byte buffer this parser is going to process (UTF-8 encoding). |
void |
setInput(java.io.InputStream in)
Sets the input stream this parser is going to process (UTF-8 encoding). |
void |
setInput(java.io.InputStream inputStream,
java.lang.String inputEncoding)
Sets the input stream the parser is going to process. |
void |
setInput(java.io.Reader in)
Set the input source for parser to the given reader and resets the parser. |
void |
setProperty(java.lang.String name,
java.lang.Object value)
Set the value of a property. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final java.lang.String FEATURE_IGNORE_WHITESPACE
XmlPullParser.TEXT event with
isWhitespace() returning true.
| Constructor Detail |
|---|
public XmlPullParserImpl()
| Method Detail |
|---|
public void setInput(java.nio.ByteBuffer byteBuffer)
byteBuffer - the byte buffer with UTF-8 encoding.Utf8ByteBufferReaderpublic void setInput(java.io.InputStream in)
in - the input stream with UTF-8 encoding.Utf8StreamReader
public void setInput(java.io.InputStream inputStream,
java.lang.String inputEncoding)
throws XmlPullParserException
XmlPullParserNOTE: If an input encoding string is passed, it MUST be used. Otherwise, if inputEncoding is null, the parser SHOULD try to determine input encoding following XML 1.0 specification (see below). If encoding detection is supported then following feature http://xmlpull.org/v1/doc/features.html#detect-encoding MUST be true amd otherwise it must be false
setInput in interface XmlPullParserinputStream - contains a raw byte input stream of possibly
unknown encoding (when inputEncoding is null).inputEncoding - if not null it MUST be used as encoding for inputStream
XmlPullParserExceptionpublic void setInput(java.io.Reader in)
XmlPullParser
setInput in interface XmlPullParser
public void defineEntityReplacementText(java.lang.String entityName,
java.lang.String replacementText)
throws XmlPullParserException
XmlPullParserThe motivation for this function is to allow very small implementations of XMLPULL that will work in J2ME environments. Though these implementations may not be able to process the document type declaration, they still can work with known DTDs by using this function.
Please notes: The given value is used literally as replacement text and it corresponds to declaring entity in DTD that has all special characters escaped: left angle bracket is replaced with <, ampersnad with & and so on.
Note: The given value is the literal replacement text and must not contain any other entity reference (if it contains any entity reference there will be no further replacement).
Note: The list of pre-defined entity names will always contain standard XML entities such as amp (&), lt (<), gt (>), quot ("), and apos ('). Those cannot be redefined by this method!
defineEntityReplacementText in interface XmlPullParserXmlPullParserExceptionXmlPullParser.setInput(java.io.Reader),
XmlPullParser.FEATURE_PROCESS_DOCDECL,
XmlPullParser.FEATURE_VALIDATIONpublic Attributes getSaxAttributes()
public int getAttributeCount()
XmlPullParser
getAttributeCount in interface XmlPullParserXmlPullParser.getAttributeNamespace(int),
XmlPullParser.getAttributeName(int),
XmlPullParser.getAttributePrefix(int),
XmlPullParser.getAttributeValue(int)public java.lang.CharSequence getAttributeName(int index)
XmlPullParser
getAttributeName in interface XmlPullParserindex - zero based index of attribute
public java.lang.CharSequence getAttributeNamespace(int index)
XmlPullParserNOTE: if FEATURE_REPORT_NAMESPACE_ATTRIBUTES is set then namespace attributes (xmlns:ns='...') must be reported with namespace http://www.w3.org/2000/xmlns/ (visit this URL for description!). The default namespace attribute (xmlns="...") will be reported with empty namespace.
NOTE:The xml prefix is bound as defined in Namespaces in XML specification to "http://www.w3.org/XML/1998/namespace".
getAttributeNamespace in interface XmlPullParserindex - zero based index of attribute
public java.lang.CharSequence getAttributePrefix(int index)
XmlPullParser
getAttributePrefix in interface XmlPullParserindex - zero based index of attribute
public java.lang.String getAttributeType(int index)
XmlPullParser
getAttributeType in interface XmlPullParserindex - zero based index of attribute
public java.lang.CharSequence getAttributeValue(java.lang.String namespace,
java.lang.String name)
XmlPullParserNOTE: attribute value must be normalized (including entity replacement text if PROCESS_DOCDECL is false) as described in XML 1.0 section 3.3.3 Attribute-Value Normalization
getAttributeValue in interface XmlPullParsernamespace - Namespace of the attribute if namespaces are enabled otherwise must be nullname - If namespaces enabled local name of attribute otherwise just attribute name
XmlPullParser.defineEntityReplacementText(java.lang.String, java.lang.String)public java.lang.CharSequence getAttributeValue(int index)
XmlPullParserNOTE: attribute value must be normalized (including entity replacement text if PROCESS_DOCDECL is false) as described in XML 1.0 section 3.3.3 Attribute-Value Normalization
getAttributeValue in interface XmlPullParserindex - zero based index of attribute
XmlPullParser.defineEntityReplacementText(java.lang.String, java.lang.String)public int getDepth()
XmlPullParser
<!-- outside --> 0
<root> 1
sometext 1
<foobar> 2
</foobar> 2
</root> 1
<!-- outside --> 0
getDepth in interface XmlPullParser
public int getEventType()
throws XmlPullParserException
XmlPullParser
getEventType in interface XmlPullParserXmlPullParserExceptionXmlPullParser.next(),
XmlPullParser.nextToken()public java.lang.String getInputEncoding()
XmlPullParser
getInputEncoding in interface XmlPullParserpublic int getLineNumber()
XmlPullParser
getLineNumber in interface XmlPullParserpublic int getColumnNumber()
XmlPullParser
getColumnNumber in interface XmlPullParserpublic java.lang.CharSequence getName()
XmlPullParserPlease note: To reconstruct the raw element name when namespaces are enabled and the prefix is not null, you will need to add the prefix and a colon to localName..
getName in interface XmlPullParserpublic java.lang.CharSequence getNamespace()
XmlPullParser
getNamespace in interface XmlPullParserpublic java.lang.CharSequence getPrefix()
XmlPullParser
getPrefix in interface XmlPullParserpublic java.lang.CharSequence getQName()
public java.lang.CharSequence getNamespace(java.lang.String prefix)
XmlPullParserIf the prefix was not declared in the current scope, null is returned. The default namespace is included in the namespace table and is available via getNamespace (null).
This method is a convenience method for
for (int i = getNamespaceCount(getDepth ())-1; i >= 0; i--) {
if (getNamespacePrefix(i).equals( prefix )) {
return getNamespaceUri(i);
}
}
return null;
Please note: parser implementations may provide more efifcient lookup, e.g. using a Hashtable. The 'xml' prefix is bound to "http://www.w3.org/XML/1998/namespace", as defined in the Namespaces in XML specification. Analogous, the 'xmlns' prefix is resolved to http://www.w3.org/2000/xmlns/
getNamespace in interface XmlPullParserXmlPullParser.getNamespaceCount(int),
XmlPullParser.getNamespacePrefix(int),
XmlPullParser.getNamespaceUri(int)public int getNamespaceCount(int depth)
XmlPullParserNOTE: when parser is on END_TAG then it is allowed to call this function with getDepth()+1 argument to retrieve position of namespace prefixes and URIs that were declared on corresponding START_TAG.
NOTE: to retrieve lsit of namespaces declared in current element:
XmlPullParser pp = ...
int nsStart = pp.getNamespaceCount(pp.getDepth()-1);
int nsEnd = pp.getNamespaceCount(pp.getDepth());
for (int i = nsStart; i < nsEnd; i++) {
String prefix = pp.getNamespacePrefix(i);
String ns = pp.getNamespaceUri(i);
// ...
}
getNamespaceCount in interface XmlPullParserXmlPullParser.getNamespacePrefix(int),
XmlPullParser.getNamespaceUri(int),
XmlPullParser.getNamespace(),
XmlPullParser.getNamespace(String)public java.lang.CharSequence getNamespacePrefix(int pos)
XmlPullParserPlease note: when the parser is on an END_TAG, namespace prefixes that were declared in the corresponding START_TAG are still accessible although they are no longer in scope.
getNamespacePrefix in interface XmlPullParserpublic java.lang.CharSequence getNamespaceUri(int pos)
XmlPullParserNOTE: when parser is on END_TAG then namespace prefixes that were declared in corresponding START_TAG are still accessible even though they are not in scope
getNamespaceUri in interface XmlPullParserpublic java.lang.CharSequence getPositionDescription()
XmlPullParser
getPositionDescription in interface XmlPullParserpublic java.lang.CharSequence getText()
XmlPullParserNOTE: in case of ENTITY_REF, this method returns the entity replacement text (or null if not available). This is the only case where getText() and getTextCharacters() return different values.
getText in interface XmlPullParserXmlPullParser.getEventType(),
XmlPullParser.next(),
XmlPullParser.nextToken()public char[] getTextCharacters(int[] holderForStartAndLength)
XmlPullParserPlease note: this buffer must not be modified and its content MAY change after a call to next() or nextToken(). This method will always return the same value as getText(), except for ENTITY_REF. In the case of ENTITY ref, getText() returns the replacement text and this method returns the actual input buffer containing the entity name. If getText() returns null, this method returns null as well and the values returned in the holder array MUST be -1 (both start and length).
getTextCharacters in interface XmlPullParserholderForStartAndLength - Must hold an 2-element int array
into which the start offset and length values will be written.
XmlPullParser.getText(),
XmlPullParser.next(),
XmlPullParser.nextToken()public boolean isAttributeDefault(int index)
XmlPullParser
isAttributeDefault in interface XmlPullParserindex - zero based index of attribute
public boolean isEmptyElementTag()
throws XmlPullParserException
XmlPullParserNOTE: if the parser is not on START_TAG, an exception will be thrown.
isEmptyElementTag in interface XmlPullParserXmlPullParserException
public boolean isWhitespace()
throws XmlPullParserException
XmlPullParserPlease note: non-validating parsers are not able to distinguish whitespace and ignorable whitespace, except from whitespace outside the root element. Ignorable whitespace is reported as separate event, which is exposed via nextToken only.
isWhitespace in interface XmlPullParserXmlPullParserException
public int next()
throws XmlPullParserException,
java.io.IOException
XmlPullParserNOTE: empty element (such as <tag/>) will be reported with two separate events: START_TAG, END_TAG - it must be so to preserve parsing equivalency of empty element to <tag></tag>. (see isEmptyElementTag ())
next in interface XmlPullParserXmlPullParserException
java.io.IOExceptionXmlPullParser.isEmptyElementTag(),
XmlPullParser.START_TAG,
XmlPullParser.TEXT,
XmlPullParser.END_TAG,
XmlPullParser.END_DOCUMENT
public int nextTag()
throws XmlPullParserException,
java.io.IOException
XmlPullParseressentially it does this
int eventType = next();
if(eventType == TEXT && isWhitespace()) { // skip whitespace
eventType = next();
}
if (eventType != START_TAG && eventType != END_TAG) {
throw new XmlPullParserException("expected start or end tag", this, null);
}
return eventType;
nextTag in interface XmlPullParserXmlPullParserException
java.io.IOException
public java.lang.CharSequence nextText()
throws XmlPullParserException,
java.io.IOException
XmlPullParserThe motivation for this function is to allow to parse consistently both empty elements and elements that has non empty content, for example for input:
p.nextTag() p.requireEvent(p.START_TAG, "", "tag"); String content = p.nextText(); p.requireEvent(p.END_TAG, "", "tag");This function together with nextTag make it very easy to parse XML that has no mixed content.
Essentially it does this
if(getEventType() != START_TAG) {
throw new XmlPullParserException(
"parser must be on START_TAG to read next text", this, null);
}
int eventType = next();
if(eventType == TEXT) {
String result = getText();
eventType = next();
if(eventType != END_TAG) {
throw new XmlPullParserException(
"event TEXT it must be immediately followed by END_TAG", this, null);
}
return result;
} else if(eventType == END_TAG) {
return "";
} else {
throw new XmlPullParserException(
"parser must be on START_TAG or TEXT to read text", this, null);
}
nextText in interface XmlPullParserXmlPullParserException
java.io.IOException
public void setFeature(java.lang.String name,
boolean state)
throws XmlPullParserException
XmlPullParserExample: call setFeature(FEATURE_PROCESS_NAMESPACES, true) in order to switch on namespace processing. The initial settings correspond to the properties requested from the XML Pull Parser factory. If none were requested, all feautures are deactivated by default.
setFeature in interface XmlPullParserXmlPullParserException - If the feature is not supported or can not be setpublic boolean getFeature(java.lang.String name)
XmlPullParserPlease note: unknown features are always returned as false.
getFeature in interface XmlPullParsername - The name of feature to be retrieved.
public void setProperty(java.lang.String name,
java.lang.Object value)
throws XmlPullParserException
XmlPullParser
setProperty in interface XmlPullParserXmlPullParserException - If the property is not supported or can not be setpublic java.lang.Object getProperty(java.lang.String name)
XmlPullParserNOTE: unknown properties are always returned as null.
getProperty in interface XmlPullParsername - The name of property to be retrieved.
public void require(int type,
java.lang.String namespace,
java.lang.String name)
throws XmlPullParserException,
java.io.IOException
XmlPullParserEssentially it does this
if (type != getEventType()
|| (namespace != null && !namespace.equals( getNamespace () ) )
|| (name != null && !name.equals( getName() ) ) )
throw new XmlPullParserException( "expected "+ TYPES[ type ]+getPositionDescription());
require in interface XmlPullParserXmlPullParserException
java.io.IOException
public int nextToken()
throws XmlPullParserException,
java.io.IOException
XmlPullParserIf special feature FEATURE_XML_ROUNDTRIP (identified by URI: http://xmlpull.org/v1/doc/features.html#xml-roundtrip) is enabled it is possible to do XML document round trip ie. reproduce exectly on output the XML input using getText(): returned content is always unnormalized (exactly as in input). Otherwise returned content is end-of-line normalized as described XML 1.0 End-of-Line Handling and. Also when this feature is enabled exact content of START_TAG, END_TAG, DOCDECL and PROCESSING_INSTRUCTION is available.
Here is the list of tokens that can be returned from nextToken() and what getText() and getTextCharacters() returns:
" titlepage SYSTEM "http://www.foo.bar/dtds/typo.dtd" [<!ENTITY % active.links "INCLUDE">]"
for input document that contained:
<!DOCTYPE titlepage SYSTEM "http://www.foo.bar/dtds/typo.dtd"
[<!ENTITY % active.links "INCLUDE">]></pre>
otherwise if FEATURE_XML_ROUNDTRIP is false and PROCESS_DOCDECL is true
then what is returned is undefined (it may be even null)
</dd>
</dl>
<p><strong>NOTE:</strong> there is no gurantee that there will only one TEXT or
IGNORABLE_WHITESPACE event from nextToken() as parser may chose to deliver element content in
multiple tokens (dividing element content into chunks)
<p><strong>NOTE:</strong> whether returned text of token is end-of-line normalized
is depending on FEATURE_XML_ROUNDTRIP.
<p><strong>NOTE:</strong> XMLDecl (<?xml ...?>) is not reported but its content
is available through optional properties (see class description above).
<P>
<DD><DL>
<DT><B>Specified by:</B><DD><CODE><A HREF="../../../javolution/xml/pull/XmlPullParser.html#nextToken()">nextToken</A></CODE> in interface <CODE><A HREF="../../../javolution/xml/pull/XmlPullParser.html" title="interface in javolution.xml.pull">XmlPullParser</A></CODE></DL>
</DD>
<DD><DL>
<DT><B>Throws:</B>
<DD><CODE><A HREF="../../../javolution/xml/pull/XmlPullParserException.html" title="class in javolution.xml.pull">XmlPullParserException</A></CODE>
<DD><CODE>java.io.IOException</CODE><DT><B>See Also:</B><DD><A HREF="../../../javolution/xml/pull/XmlPullParser.html#next()"><CODE>XmlPullParser.next()</CODE></A>,
<A HREF="../../../javolution/xml/pull/XmlPullParser.html#START_TAG"><CODE>XmlPullParser.START_TAG</CODE></A>,
<A HREF="../../../javolution/xml/pull/XmlPullParser.html#TEXT"><CODE>XmlPullParser.TEXT</CODE></A>,
<A HREF="../../../javolution/xml/pull/XmlPullParser.html#END_TAG"><CODE>XmlPullParser.END_TAG</CODE></A>,
<A HREF="../../../javolution/xml/pull/XmlPullParser.html#END_DOCUMENT"><CODE>XmlPullParser.END_DOCUMENT</CODE></A>,
<A HREF="../../../javolution/xml/pull/XmlPullParser.html#COMMENT"><CODE>XmlPullParser.COMMENT</CODE></A>,
<A HREF="../../../javolution/xml/pull/XmlPullParser.html#DOCDECL"><CODE>XmlPullParser.DOCDECL</CODE></A>,
<A HREF="../../../javolution/xml/pull/XmlPullParser.html#PROCESSING_INSTRUCTION"><CODE>XmlPullParser.PROCESSING_INSTRUCTION</CODE></A>,
<A HREF="../../../javolution/xml/pull/XmlPullParser.html#ENTITY_REF"><CODE>XmlPullParser.ENTITY_REF</CODE></A>,
<A HREF="../../../javolution/xml/pull/XmlPullParser.html#IGNORABLE_WHITESPACE"><CODE>XmlPullParser.IGNORABLE_WHITESPACE</CODE></A></DL>
</DD>
</DL>
<HR>
<A NAME="reset()"><!-- --></A><H3>
reset</H3>
<PRE>
public void <B>reset</B>()</PRE>
<DL>
<DD><B>Description copied from interface: <CODE><A HREF="../../../javolution/lang/Reusable.html#reset()">Reusable</A></CODE></B></DD>
<DD>Resets the internal state of this object to its default values.
<P>
<DD><DL>
<DT><B>Specified by:</B><DD><CODE><A HREF="../../../javolution/lang/Reusable.html#reset()">reset</A></CODE> in interface <CODE><A HREF="../../../javolution/lang/Reusable.html" title="interface in javolution.lang">Reusable</A></CODE></DL>
</DD>
<DD><DL>
</DL>
</DD>
</DL>
<!-- ========= END OF CLASS DATA ========= -->
<HR>
<!-- ======= START OF BOTTOM NAVBAR ====== -->
<A NAME="navbar_bottom"><!-- --></A>
<A HREF="#skip-navbar_bottom" title="Skip navigation links"></A>
<TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY="">
<TR>
<TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1">
<A NAME="navbar_bottom_firstrow"><!-- --></A>
<TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY="">
<TR ALIGN="center" VALIGN="top">
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A> </TD>
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A> </TD>
<TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> <FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT> </TD>
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A> </TD>
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A> </TD>
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../index-files/index-1.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A> </TD>
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A> </TD>
</TR>
</TABLE>
</TD>
<TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>
<A HREF=http://javolution.org>
<SPAN CLASS=style0>J</SPAN>
<SPAN CLASS=style1>avolution v3.7 (J2SE 1.5+)</SPAN>
</A>
</EM>
</TD>
</TR>
<TR>
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
<A HREF="../../../javolution/xml/pull/XmlPullParserException.html" title="class in javolution.xml.pull"><B>PREV CLASS</B></A>
NEXT CLASS</FONT></TD>
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
<A HREF="../../../index.html?javolution/xml/pull/XmlPullParserImpl.html" target="_top"><B>FRAMES</B></A>
<A HREF="XmlPullParserImpl.html" target="_top"><B>NO FRAMES</B></A>
<SCRIPT type="text/javascript">
<!--
if(window==top) {
document.writeln('<A HREF="../../../allclasses-noframe.html"><B>All Classes</B></A>');
}
//-->
</SCRIPT>
<NOSCRIPT>
<A HREF="../../../allclasses-noframe.html"><B>All Classes</B></A>
</NOSCRIPT>
</FONT></TD>
</TR>
<TR>
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
SUMMARY: NESTED | <A HREF="#field_summary">FIELD</A> | <A HREF="#constructor_summary">CONSTR</A> | <A HREF="#method_summary">METHOD</A></FONT></TD>
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
DETAIL: <A HREF="#field_detail">FIELD</A> | <A HREF="#constructor_detail">CONSTR</A> | <A HREF="#method_detail">METHOD</A></FONT></TD>
</TR>
</TABLE>
<A NAME="skip-navbar_bottom"></A>
<!-- ======== END OF BOTTOM NAVBAR ======= -->
<HR>
<i>Copyright © 2006 Javolution.</i>
</BODY>
</HTML>