Package com.nt.udc.io
Class COSARInput
java.lang.Object
com.nt.udc.io.COSARInput
- All Implemented Interfaces:
IAttrCallback
- Direct Known Subclasses:
CXML_OSARInput
This class is the base-class for all OSAR inputs.
This class also knows how to convert incoming OSAR records and send the result to the output.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected static int
protected COSARAttrFormatter
This member is used for converting OSAR attributes.protected ILogger
This member is used for logging errors and warnings.protected COSAR
This member is used for processing OSARs.protected IOSAROutput
This member is responsible for handling the outputting of converted OSAR records. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionThis is the IAttrCallback function.protected void
protected void
static int
boolean
protected void
boolean
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 outputstatic void
setDebugLevel
(int debugLevel) void
setOSARAttrFormatter
(COSARAttrFormatter formatter) void
setOSAROutput
(IOSAROutput iOutput)
-
Field Details
-
m_debugLevel
protected static int m_debugLevel -
m_iLogger
This member is used for logging errors and warnings. -
m_formatter
This member is used for converting OSAR attributes. -
m_iOutput
This member is responsible for handling the outputting of converted OSAR records. -
m_inputOsar
This member is used for processing OSARs.
-
-
Constructor Details
-
COSARInput
-
-
Method Details
-
getDebugLevel
public static int getDebugLevel() -
OSARAttrFormatter
-
OSAROutput
-
hasMoreData
public boolean hasMoreData()- Returns:
- true if more data is to be processed, false otherwise
-
setDebugLevel
public static void setDebugLevel(int debugLevel) -
setOSARAttrFormatter
-
setOSAROutput
-
processInput
public boolean processInput()This function is used to process OSARs in custom formats. -
processOSAR
This function is used to convert an incoming OSAR record and send the result to the output -
callback
This is the IAttrCallback function.- Specified by:
callback
in interfaceIAttrCallback
- Returns:
- An attribute value computed based on the specified function name and arguments.
-
error
-
info
-
debug
-