Class XMLPullParser

java.lang.Object
org.sblim.cimclient.internal.pullparser.XMLPullParser

public class XMLPullParser extends Object
Class XMLPullParser is responsible for XML parsing.
  • Field Details

  • Constructor Details

    • XMLPullParser

      public XMLPullParser(Reader in)
      Ctor.
      Parameters:
      in -
  • Method Details

    • main

      public static void main(String[] args)
      main
      Parameters:
      args -
    • next

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

      public void close() throws IOException
      close
      Throws:
      IOException
    • getAttributes

      public Attributes getAttributes()
      getAttributes
      Returns:
      Attributes
    • getElementName

      public String getElementName()
      getElementName
      Returns:
      String
    • getElementNames

      public ArrayList<String> getElementNames()
      getElementNames
      Returns:
      Vector
    • getLevel

      public int getLevel()
      getLevel
      Returns:
      int
    • getText

      public String getText()
      getText
      Returns:
      String
    • hasNext

      public boolean hasNext()
      hasNext
      Returns:
      boolean
    • next

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

      public void reset()
      reset
    • toString

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

      protected char _getNextChar()
    • addAttribute

      protected void addAttribute(int begName, int lenName, int begValue, int lenValue)
    • ensureCapacity

      protected void ensureCapacity()
    • escape

      protected String escape(char ch)
    • getChar

      protected int getChar() throws IOException
      Throws:
      IOException
    • getNextChar

      protected int getNextChar() throws IOException
      Throws:
      IOException
    • getNextCharCheckingEOF

      protected int getNextCharCheckingEOF() throws IOException
      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

      protected void parseAttribute(char ch) throws IOException
      Throws:
      IOException
    • parseCDATA

      protected int parseCDATA() throws IOException
      Throws:
      IOException
    • parseComment

      protected int parseComment() throws IOException
      Throws:
      IOException
    • parseEndElement

      protected void parseEndElement() throws IOException
      Throws:
      IOException
    • parsePI

      protected int parsePI() throws IOException
      Throws:
      IOException
    • parseReference

      protected int parseReference() throws IOException
      Throws:
      IOException
    • parseStartElement

      protected int parseStartElement(char ch) throws IOException
      Throws:
      IOException
    • parseUnknown

      protected void parseUnknown() throws IOException
      Throws:
      IOException
    • resetAttributes

      protected void resetAttributes()
    • skipOptionalSpaces

      protected char skipOptionalSpaces(char ch) throws IOException
      Throws:
      IOException
    • skipRequiredSpaces

      protected char skipRequiredSpaces(char ch) throws IOException
      Throws:
      IOException