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 intprotected COSARAttrFormatterThis member is used for converting OSAR attributes.protected ILoggerThis member is used for logging errors and warnings.protected COSARThis member is used for processing OSARs.protected IOSAROutputThis member is responsible for handling the outputting of converted OSAR records. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionThis is the IAttrCallback function.protected voidprotected voidstatic intbooleanprotected voidbooleanThis function is used to process OSARs in custom formats.booleanprocessOSAR(OSAR osar) This function is used to convert an incoming OSAR record and send the result to the outputstatic voidsetDebugLevel(int debugLevel) voidsetOSARAttrFormatter(COSARAttrFormatter formatter) voidsetOSAROutput(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:
callbackin interfaceIAttrCallback- Returns:
- An attribute value computed based on the specified function name and arguments.
-
error
-
info
-
debug
-