Class CXMLScanner

java.lang.Object
com.nt.udc.io.xml.CXMLScanner

public class CXMLScanner extends Object
This class converts XML input into XML tokens.

Any errors are reported.

  • Field Details

    • m_debugLevel

      protected static int m_debugLevel
    • m_iLogger

      protected ILogger m_iLogger
      This member is used to report errors and warnings.
    • m_iDataSource

      protected IDataSource m_iDataSource
      This member represents the input data source for XML tokens.
    • m_firstChar

      protected char m_firstChar
      This member represents the first character of the next XML token.
    • m_crtLine

      protected char[] m_crtLine
      This member is used as a buffer to read characters from the data source into.
    • m_lineIndex

      protected int m_lineIndex
    • m_lineLen

      protected int m_lineLen
      This member represents the actual number of characters loaded into m_crtLine.
    • m_crtLineNumber

      protected int m_crtLineNumber
      This member represents the current line number is the source file.
    • m_buf

      protected char[] m_buf
      /** This member is a temporary buffer used to build strings.
    • m_maxBuf

      protected int m_maxBuf
      This member represents the allocated length of m_buf.
  • Constructor Details

    • CXMLScanner

      public CXMLScanner(IDataSource iDataSource, ILogger iLogger)
      Parameters:
      iDataSource - - Object implementing IDataSource interface - used for getting characters one by one
      iLogger - - Object implementing ILogger interface - used for logging errors, warnings, etc.
    • CXMLScanner

      public CXMLScanner(IDataSource iDataSource)
  • Method Details

    • getDebugLevel

      public static int getDebugLevel()
    • getCurrentLine

      public final int getCurrentLine()
    • setDebugLevel

      public static void setDebugLevel(int debugLevel)
    • start

      public boolean start()
    • nextToken

      public CXMLToken nextToken()
      Returns:
      Next token retrieved from the input
    • init

      protected void init(IDataSource iDataSource, ILogger iLogger)
    • error

      protected void error(String fName, String msg)
    • debug

      protected void debug(String fName, String msg)