Class XMLPullParser
java.lang.Object
org.sblim.wbem.xml.parser.XMLPullParser
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final int
static final int
static final int
static final int
static final int
static final String
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected char
protected void
addAttribute
(int begName, int lenName, int begValue, int lenValue, int hashname, int hashvalue) void
close()
protected void
protected String
escape
(char ch) protected int
getChar()
int
getLevel()
protected int
protected int
getText()
protected void
goBack()
boolean
hasNext()
protected boolean
isSpace
(char ch) protected boolean
isValidElementNameChar
(char ch) protected boolean
isValidStartElementNameChar
(char ch) static void
int
next()
static boolean
next
(XMLPullParser reader, XMLDefaultHandlerImpl parserHdlr) protected void
parseAttribute
(char ch) protected int
protected int
protected void
protected int
parsePI()
protected int
protected int
parseStartElement
(char ch) protected void
void
reset()
protected void
protected char
skipOptionalSpaces
(char ch) protected char
skipRequiredSpaces
(char ch) toString()
-
Field Details
-
ATTRIBUTE
public static final int ATTRIBUTE- See Also:
-
CDATA
public static final int CDATA- See Also:
-
CHARACTERS
public static final int CHARACTERS- See Also:
-
COMMENT
public static final int COMMENT- See Also:
-
DTD
public static final int DTD- See Also:
-
EMPTY
- See Also:
-
END_DOCUMENT
public static final int END_DOCUMENT- See Also:
-
END_ELEMENT
public static final int END_ELEMENT- See Also:
-
ENTITY_DECLARATION
public static final int ENTITY_DECLARATION- See Also:
-
ENTITY_REFERENCE
public static final int ENTITY_REFERENCE- See Also:
-
NAMESPACE
public static final int NAMESPACE- See Also:
-
NOTATION_DECLARATION
public static final int NOTATION_DECLARATION- See Also:
-
PROCESSING_INSTRUCTION
public static final int PROCESSING_INSTRUCTION- See Also:
-
SPACE
public static final int SPACE- See Also:
-
START_DOCUMENT
public static final int START_DOCUMENT- See Also:
-
START_ELEMENT
public static final int START_ELEMENT- See Also:
-
-
Constructor Details
-
XMLPullParser
-
-
Method Details
-
main
-
next
- Throws:
Exception
-
close
public void close() -
getAttributes
-
getElementName
-
getElementNames
-
getLevel
public int getLevel() -
getText
-
hasNext
public boolean hasNext() -
next
- Throws:
IOException
-
reset
public void reset() -
toString
-
_getNextChar
protected char _getNextChar() -
addAttribute
protected void addAttribute(int begName, int lenName, int begValue, int lenValue, int hashname, int hashvalue) -
ensureCapacity
protected void ensureCapacity() -
escape
-
getChar
- Throws:
IOException
-
getNextChar
- Throws:
IOException
-
getNextCharCheckingEOF
- Throws:
IOException
-
goBack
protected void goBack() -
isSpace
protected boolean isSpace(char ch) -
isValidElementNameChar
protected boolean isValidElementNameChar(char ch) -
isValidStartElementNameChar
protected boolean isValidStartElementNameChar(char ch) -
parseAttribute
- Throws:
IOException
-
parseCDATA
- Throws:
IOException
-
parseComment
- Throws:
IOException
-
parseEndElement
- Throws:
IOException
-
parsePI
- Throws:
IOException
-
parseReference
- Throws:
IOException
-
parseStartElement
- Throws:
IOException
-
parseUnknown
- Throws:
IOException
-
resetAttributes
protected void resetAttributes() -
skipOptionalSpaces
- Throws:
IOException
-
skipRequiredSpaces
- Throws:
IOException
-