Class XMLPullParser
java.lang.Object
org.sblim.wbem.xml.parser.XMLPullParser
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intstatic final intstatic final intstatic final intstatic final intstatic final Stringstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final int -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected charprotected voidaddAttribute(int begName, int lenName, int begValue, int lenValue, int hashname, int hashvalue) voidclose()protected voidprotected Stringescape(char ch) protected intgetChar()intgetLevel()protected intprotected intgetText()protected voidgoBack()booleanhasNext()protected booleanisSpace(char ch) protected booleanisValidElementNameChar(char ch) protected booleanisValidStartElementNameChar(char ch) static voidintnext()static booleannext(XMLPullParser reader, XMLDefaultHandlerImpl parserHdlr) protected voidparseAttribute(char ch) protected intprotected intprotected voidprotected intparsePI()protected intprotected intparseStartElement(char ch) protected voidvoidreset()protected voidprotected charskipOptionalSpaces(char ch) protected charskipRequiredSpaces(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
-