Class FlatFileEIProcessor

All Implemented Interfaces:
DataProviderIfc, DCTransport, FileDataProviderIfc, Runnable

public class FlatFileEIProcessor extends GenericFlatFileProcessor
  • Field Details

  • Constructor Details

    • FlatFileEIProcessor

      public FlatFileEIProcessor(EINode node, File localdir, String suffix, com.nt.common.util.SMGLock lock) throws NodeStartException
      Use this constructor when the accounting files are pushed to a local directory by an outside source.
      Parameters:
      node - The EI node which is using this class.
      localdir - The local directory where the target files can be found
      suffix - The file suffix used to identify the files that need to be processed (can be null if you want to process all files in the directory)
      Throws:
      NodeStartException - Used to signal the EI Node that there was a problem getting things going
    • FlatFileEIProcessor

      public FlatFileEIProcessor(EINode node, SynchronizedDirectory sd, String suffix, com.nt.common.util.SMGLock lock) throws NodeStartException
      Use this constructor when using FTP to retrieve the accounting files that need to be processed.
      Parameters:
      node - The EI node which is using this class.
      sd - The representation of the local directory where the target files can be found
      suffix - The file suffix used to identify the files that need to be processed (can be null if you want to process all files in the directory)
      Throws:
      NodeStartException - Used to signal the EI Node that there was a problem getting things going
  • Method Details

    • processTheRecord

      protected void processTheRecord(String rawRecord)
      Description copied from class: GenericFlatFileProcessor
      This call process the record. Classes derived from this type should override this method to use there own record processing class.
      Specified by:
      processTheRecord in class GenericFlatFileProcessor
    • setRecordType

      protected void setRecordType(GenericFlatFileRecord ffRecord)
      This sets up the record type which in turn controls how each of the flat file records are processed. Not all flat file records required delimeters. In those cases the delimeter is ignored.
    • getHeader

      protected void getHeader(String text)
      Parses a line of text (the file header) for the field names.
      Overrides:
      getHeader in class GenericFlatFileProcessor