Class XMLPullParser


  • public class XMLPullParser
    extends java.lang.Object
    Class XMLPullParser is responsible for XML parsing.
    • Constructor Detail

      • XMLPullParser

        public XMLPullParser​(java.io.Reader in)
        Ctor.
        Parameters:
        in -
    • Method Detail

      • main

        public static void main​(java.lang.String[] args)
        main
        Parameters:
        args -
      • next

        public static boolean next​(XMLPullParser reader,
                                   XMLDefaultHandlerImpl parserHdlr)
                            throws java.lang.Exception
        next
        Parameters:
        reader -
        parserHdlr -
        Returns:
        boolean
        Throws:
        java.lang.Exception
      • close

        public void close()
                   throws java.io.IOException
        close
        Throws:
        java.io.IOException
      • getAttributes

        public org.xml.sax.Attributes getAttributes()
        getAttributes
        Returns:
        Attributes
      • getElementName

        public java.lang.String getElementName()
        getElementName
        Returns:
        String
      • getElementNames

        public java.util.ArrayList<java.lang.String> getElementNames()
        getElementNames
        Returns:
        Vector
      • getLevel

        public int getLevel()
        getLevel
        Returns:
        int
      • getText

        public java.lang.String getText()
        getText
        Returns:
        String
      • hasNext

        public boolean hasNext()
        hasNext
        Returns:
        boolean
      • next

        public int next()
                 throws java.io.IOException
        next
        Returns:
        int
        Throws:
        java.io.IOException
      • reset

        public void reset()
        reset
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object
      • _getNextChar

        protected char _getNextChar()
      • addAttribute

        protected void addAttribute​(int begName,
                                    int lenName,
                                    int begValue,
                                    int lenValue)
      • 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