org.sblim.wbem.xml.parser
Class XMLPullParser
java.lang.Object
org.sblim.wbem.xml.parser.XMLPullParser
- public class XMLPullParser
- extends java.lang.Object
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
ATTRIBUTE
public static final int ATTRIBUTE
- See Also:
- Constant Field Values
CDATA
public static final int CDATA
- See Also:
- Constant Field Values
CHARACTERS
public static final int CHARACTERS
- See Also:
- Constant Field Values
COMMENT
public static final int COMMENT
- See Also:
- Constant Field Values
DTD
public static final int DTD
- See Also:
- Constant Field Values
EMPTY
public static final java.lang.String EMPTY
- See Also:
- Constant Field Values
END_DOCUMENT
public static final int END_DOCUMENT
- See Also:
- Constant Field Values
END_ELEMENT
public static final int END_ELEMENT
- See Also:
- Constant Field Values
ENTITY_DECLARATION
public static final int ENTITY_DECLARATION
- See Also:
- Constant Field Values
ENTITY_REFERENCE
public static final int ENTITY_REFERENCE
- See Also:
- Constant Field Values
NAMESPACE
public static final int NAMESPACE
- See Also:
- Constant Field Values
NOTATION_DECLARATION
public static final int NOTATION_DECLARATION
- See Also:
- Constant Field Values
PROCESSING_INSTRUCTION
public static final int PROCESSING_INSTRUCTION
- See Also:
- Constant Field Values
SPACE
public static final int SPACE
- See Also:
- Constant Field Values
START_DOCUMENT
public static final int START_DOCUMENT
- See Also:
- Constant Field Values
START_ELEMENT
public static final int START_ELEMENT
- See Also:
- Constant Field Values
XMLPullParser
public XMLPullParser(java.io.Reader in)
main
public static void main(java.lang.String[] args)
next
public static boolean next(XMLPullParser reader,
XMLDefaultHandlerImpl parserHdlr)
throws java.lang.Exception
- Throws:
java.lang.Exception
close
public void close()
getAttributes
public org.xml.sax.Attributes getAttributes()
getElementName
public java.lang.String getElementName()
getElementNames
public java.util.Vector getElementNames()
getLevel
public int getLevel()
getText
public java.lang.String getText()
hasNext
public boolean hasNext()
next
public int next()
throws java.io.IOException
- Throws:
java.io.IOException
reset
public void reset()
toString
public java.lang.String 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
protected java.lang.String escape(char ch)
getChar
protected int getChar()
throws java.io.IOException
- Throws:
java.io.IOException
getNextChar
protected int getNextChar()
throws java.io.IOException
- Throws:
java.io.IOException
getNextCharCheckingEOF
protected int getNextCharCheckingEOF()
throws java.io.IOException
- Throws:
java.io.IOException
goBack
protected void goBack()
isSpace
protected boolean isSpace(char ch)
isValidElementNameChar
protected boolean isValidElementNameChar(char ch)
isValidStartElementNameChar
protected boolean isValidStartElementNameChar(char ch)
parseAttribute
protected void parseAttribute(char ch)
throws java.io.IOException
- Throws:
java.io.IOException
parseCDATA
protected int parseCDATA()
throws java.io.IOException
- Throws:
java.io.IOException
parseComment
protected int parseComment()
throws java.io.IOException
- Throws:
java.io.IOException
parseEndElement
protected void parseEndElement()
throws java.io.IOException
- Throws:
java.io.IOException
parsePI
protected int parsePI()
throws java.io.IOException
- Throws:
java.io.IOException
parseReference
protected int parseReference()
throws java.io.IOException
- Throws:
java.io.IOException
parseStartElement
protected int parseStartElement(char ch)
throws java.io.IOException
- Throws:
java.io.IOException
parseUnknown
protected void parseUnknown()
throws java.io.IOException
- Throws:
java.io.IOException
resetAttributes
protected void resetAttributes()
skipOptionalSpaces
protected char skipOptionalSpaces(char ch)
throws java.io.IOException
- Throws:
java.io.IOException
skipRequiredSpaces
protected char skipRequiredSpaces(char ch)
throws java.io.IOException
- Throws:
java.io.IOException
Copyright © 2005, 2010 IBM Corporation. All Rights Reserved.