public class XMLPullParser
extends java.lang.Object
Modifier and Type | Field | Description |
---|---|---|
static int |
ATTRIBUTE |
ATTRIBUTE
|
static int |
CDATA |
CDATA
|
static int |
CHARACTERS |
CHARACTERS
|
static int |
COMMENT |
COMMENT
|
static int |
DTD |
DTD
|
static java.lang.String |
EMPTY |
EMPTY
|
static int |
END_DOCUMENT |
END_DOCUMENT
|
static int |
END_ELEMENT |
END_ELEMENT
|
static int |
ENTITY_DECLARATION |
ENTITY_DECLARATION
|
static int |
ENTITY_REFERENCE |
ENTITY_REFERENCE
|
static int |
NAMESPACE |
NAMESPACE
|
static int |
NOTATION_DECLARATION |
NOTATION_DECLARATION
|
static int |
PROCESSING_INSTRUCTION |
PROCESSING_INSTRUCTION
|
static int |
SPACE |
SPACE
|
static int |
START_DOCUMENT |
START_DOCUMENT
|
static int |
START_ELEMENT |
START_ELEMENT
|
Constructor | Description |
---|---|
XMLPullParser(java.io.Reader in) |
Ctor.
|
Modifier and Type | Method | Description |
---|---|---|
protected char |
_getNextChar() |
|
protected void |
addAttribute(int begName,
int lenName,
int begValue,
int lenValue) |
|
void |
close() |
close
|
protected void |
ensureCapacity() |
|
protected java.lang.String |
escape(char ch) |
|
org.xml.sax.Attributes |
getAttributes() |
getAttributes
|
protected int |
getChar() |
|
java.lang.String |
getElementName() |
getElementName
|
java.util.ArrayList<java.lang.String> |
getElementNames() |
getElementNames
|
int |
getLevel() |
getLevel
|
protected int |
getNextChar() |
|
protected int |
getNextCharCheckingEOF() |
|
java.lang.String |
getText() |
getText
|
protected void |
goBack() |
|
boolean |
hasNext() |
hasNext
|
protected boolean |
isSpace(char ch) |
|
protected boolean |
isValidElementNameChar(char ch) |
|
protected boolean |
isValidStartElementNameChar(char ch) |
|
static void |
main(java.lang.String[] args) |
main
|
int |
next() |
next
|
static boolean |
next(XMLPullParser reader,
XMLDefaultHandlerImpl parserHdlr) |
next
|
protected void |
parseAttribute(char ch) |
|
protected int |
parseCDATA() |
|
protected int |
parseComment() |
|
protected void |
parseEndElement() |
|
protected int |
parsePI() |
|
protected int |
parseReference() |
|
protected int |
parseStartElement(char ch) |
|
protected void |
parseUnknown() |
|
void |
reset() |
reset
|
protected void |
resetAttributes() |
|
protected char |
skipOptionalSpaces(char ch) |
|
protected char |
skipRequiredSpaces(char ch) |
|
java.lang.String |
toString() |
public static final int ATTRIBUTE
public static final int CDATA
public static final int CHARACTERS
public static final int COMMENT
public static final int DTD
public static final java.lang.String EMPTY
public static final int END_DOCUMENT
public static final int END_ELEMENT
public static final int ENTITY_DECLARATION
public static final int ENTITY_REFERENCE
public static final int NAMESPACE
public static final int NOTATION_DECLARATION
public static final int PROCESSING_INSTRUCTION
public static final int SPACE
public static final int START_DOCUMENT
public static final int START_ELEMENT
public static void main(java.lang.String[] args)
args
- public static boolean next(XMLPullParser reader, XMLDefaultHandlerImpl parserHdlr) throws java.lang.Exception
reader
- parserHdlr
- java.lang.Exception
public void close() throws java.io.IOException
java.io.IOException
public org.xml.sax.Attributes getAttributes()
public java.lang.String getElementName()
public java.util.ArrayList<java.lang.String> getElementNames()
public int getLevel()
public java.lang.String getText()
public boolean hasNext()
public int next() throws java.io.IOException
java.io.IOException
public void reset()
public java.lang.String toString()
toString
in class java.lang.Object
protected char _getNextChar()
protected void addAttribute(int begName, int lenName, int begValue, int lenValue)
protected void ensureCapacity()
protected java.lang.String escape(char ch)
protected int getChar() throws java.io.IOException
java.io.IOException
protected int getNextChar() throws java.io.IOException
java.io.IOException
protected int getNextCharCheckingEOF() throws java.io.IOException
java.io.IOException
protected void goBack()
protected boolean isSpace(char ch)
protected boolean isValidElementNameChar(char ch)
protected boolean isValidStartElementNameChar(char ch)
protected void parseAttribute(char ch) throws java.io.IOException
java.io.IOException
protected int parseCDATA() throws java.io.IOException
java.io.IOException
protected int parseComment() throws java.io.IOException
java.io.IOException
protected void parseEndElement() throws java.io.IOException
java.io.IOException
protected int parsePI() throws java.io.IOException
java.io.IOException
protected int parseReference() throws java.io.IOException
java.io.IOException
protected int parseStartElement(char ch) throws java.io.IOException
java.io.IOException
protected void parseUnknown() throws java.io.IOException
java.io.IOException
protected void resetAttributes()
protected char skipOptionalSpaces(char ch) throws java.io.IOException
java.io.IOException
protected char skipRequiredSpaces(char ch) throws java.io.IOException
java.io.IOException
Copyright © 2005, 2013 IBM Corporation. All Rights Reserved.