public class COSARInput extends java.lang.Object implements IAttrCallback
This class also knows how to convert incoming OSAR records and send the result to the output.
Modifier and Type | Field and Description |
---|---|
protected static int |
m_debugLevel |
protected COSARAttrFormatter |
m_formatter
This member is used for converting OSAR attributes.
|
protected ILogger |
m_iLogger
This member is used for logging errors and warnings.
|
protected COSAR |
m_inputOsar
This member is used for processing OSARs.
|
protected IOSAROutput |
m_iOutput
This member is responsible for handling the outputting
of converted OSAR records.
|
Constructor and Description |
---|
COSARInput(ILogger iLogger) |
Modifier and Type | Method and Description |
---|---|
COSARAttr |
callback(java.lang.String funcName,
COSAR osar,
COSARAttr[] args)
This is the IAttrCallback function.
|
protected void |
debug(java.lang.String fName,
java.lang.String msg) |
protected void |
error(java.lang.String fName,
java.lang.String msg) |
static int |
getDebugLevel() |
boolean |
hasMoreData() |
protected void |
info(java.lang.String msg) |
COSARAttrFormatter |
OSARAttrFormatter() |
IOSAROutput |
OSAROutput() |
boolean |
processInput()
This function is used to process OSARs in custom formats.
|
boolean |
processOSAR(OSAR osar)
This function is used to convert an incoming OSAR record and
send the result to the output
|
static void |
setDebugLevel(int debugLevel) |
void |
setOSARAttrFormatter(COSARAttrFormatter formatter) |
void |
setOSAROutput(IOSAROutput iOutput) |
protected static int m_debugLevel
protected ILogger m_iLogger
protected COSARAttrFormatter m_formatter
protected IOSAROutput m_iOutput
protected COSAR m_inputOsar
public COSARInput(ILogger iLogger)
public static int getDebugLevel()
public COSARAttrFormatter OSARAttrFormatter()
public IOSAROutput OSAROutput()
public boolean hasMoreData()
public static void setDebugLevel(int debugLevel)
public void setOSARAttrFormatter(COSARAttrFormatter formatter)
public void setOSAROutput(IOSAROutput iOutput)
public boolean processInput()
public boolean processOSAR(OSAR osar)
public COSARAttr callback(java.lang.String funcName, COSAR osar, COSARAttr[] args)
callback
in interface IAttrCallback
protected void error(java.lang.String fName, java.lang.String msg)
protected void info(java.lang.String msg)
protected void debug(java.lang.String fName, java.lang.String msg)