public class CXMLScanner
extends java.lang.Object
Any errors are reported.
Modifier and Type | Field and Description |
---|---|
protected char[] |
m_buf
/**
This member is a temporary buffer used to build strings.
|
protected char[] |
m_crtLine
This member is used as a buffer to read characters from
the data source into.
|
protected int |
m_crtLineNumber
This member represents the current line number is the
source file.
|
protected static int |
m_debugLevel |
protected char |
m_firstChar
This member represents the first character of the next XML token.
|
protected IDataSource |
m_iDataSource
This member represents the input data source for XML tokens.
|
protected ILogger |
m_iLogger
This member is used to report errors and warnings.
|
protected int |
m_lineIndex |
protected int |
m_lineLen
This member represents the actual number of characters
loaded into m_crtLine.
|
protected int |
m_maxBuf
This member represents the allocated length of m_buf.
|
Constructor and Description |
---|
CXMLScanner(IDataSource iDataSource) |
CXMLScanner(IDataSource iDataSource,
ILogger iLogger) |
Modifier and Type | Method and Description |
---|---|
protected void |
debug(java.lang.String fName,
java.lang.String msg) |
protected void |
error(java.lang.String fName,
java.lang.String msg) |
int |
getCurrentLine() |
static int |
getDebugLevel() |
protected void |
init(IDataSource iDataSource,
ILogger iLogger) |
CXMLToken |
nextToken() |
static void |
setDebugLevel(int debugLevel) |
boolean |
start() |
protected static int m_debugLevel
protected ILogger m_iLogger
protected IDataSource m_iDataSource
protected char m_firstChar
protected char[] m_crtLine
protected int m_lineIndex
protected int m_lineLen
protected int m_crtLineNumber
protected char[] m_buf
protected int m_maxBuf
public CXMLScanner(IDataSource iDataSource, ILogger iLogger)
iDataSource
- - Object implementing IDataSource interface - used
for getting characters one by oneiLogger
- - Object implementing ILogger interface - used for
logging errors, warnings, etc.public CXMLScanner(IDataSource iDataSource)
public static int getDebugLevel()
public final int getCurrentLine()
public static void setDebugLevel(int debugLevel)
public boolean start()
public CXMLToken nextToken()
protected void init(IDataSource iDataSource, ILogger iLogger)
protected void error(java.lang.String fName, java.lang.String msg)
protected void debug(java.lang.String fName, java.lang.String msg)