Package com.nt.udc.io

Class COSARInput

java.lang.Object
com.nt.udc.io.COSARInput
All Implemented Interfaces:
IAttrCallback
Direct Known Subclasses:
CXML_OSARInput

public class COSARInput extends Object implements IAttrCallback
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 Details

    • m_debugLevel

      protected static int m_debugLevel
    • m_iLogger

      protected ILogger m_iLogger
      This member is used for logging errors and warnings.
    • m_formatter

      protected COSARAttrFormatter m_formatter
      This member is used for converting OSAR attributes.
    • m_iOutput

      protected IOSAROutput m_iOutput
      This member is responsible for handling the outputting of converted OSAR records.
    • m_inputOsar

      protected COSAR m_inputOsar
      This member is used for processing OSARs.
  • Constructor Details

    • COSARInput

      public COSARInput(ILogger iLogger)
  • Method Details

    • getDebugLevel

      public static int getDebugLevel()
    • OSARAttrFormatter

      public COSARAttrFormatter OSARAttrFormatter()
    • OSAROutput

      public IOSAROutput OSAROutput()
    • hasMoreData

      public boolean hasMoreData()
      Returns:
      true if more data is to be processed, false otherwise
    • setDebugLevel

      public static void setDebugLevel(int debugLevel)
    • setOSARAttrFormatter

      public void setOSARAttrFormatter(COSARAttrFormatter formatter)
    • setOSAROutput

      public void setOSAROutput(IOSAROutput iOutput)
    • processInput

      public boolean processInput()
      This function is used to process OSARs in custom formats.
    • processOSAR

      public boolean processOSAR(OSAR osar)
      This function is used to convert an incoming OSAR record and send the result to the output
    • callback

      public COSARAttr callback(String funcName, COSAR osar, COSARAttr[] args)
      This is the IAttrCallback function.
      Specified by:
      callback in interface IAttrCallback
      Returns:
      An attribute value computed based on the specified function name and arguments.
    • error

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

      protected void info(String msg)
    • debug

      protected void debug(String fName, String msg)