Class NAROIFormatter

java.lang.Object
com.nt.udc.ndk.node.OIFileFormatter
com.nt.udc.oi.node.nar.NAROIFormatter

public class NAROIFormatter extends OIFileFormatter
This class is responsible for properly formatting the output files of the NAR OI node. NARs are written as an array of bytes.
  • Constructor Details

    • NAROIFormatter

      public NAROIFormatter(LoggerIfc logger, OIFileWriter oiFileWriter)
      Constructor
      Parameters:
      logger - LoggerIfc() object providing access to the node's log file
      oiFileWriter - OIFileWriter() object responsible for file output and managing the output files.
  • Method Details

    • writeToFile

      public void writeToFile(DCFieldContainer record) throws IOException
      This method will write the NAR (as an array of bytes) to the output file.
      Specified by:
      writeToFile in class OIFileFormatter
      Throws:
      IOException
    • setNARSPerFile

      public void setNARSPerFile(int numNARs)
      This method sets the maximum number of NARs to be written to each file.