Class CSVDataWriter

  • All Implemented Interfaces:
    Direct Known Subclasses:

    public abstract class CSVDataWriter
    extends AbstractExtractDataWriter
    The data writer class which is responsible for writing out the data to the output file specified in the configuration file. It obtains the data passed over to it and writes it in an order specified in the configuration file.
    • Constructor Detail

      • CSVDataWriter

        public CSVDataWriter()
    • Method Detail

      • init

        public void init()
                  throws DataLoadException
        This method initializes the data writer. It obtains the data writer configuration information from the configuration file, which is used to write the obtained data to the output file
        Specified by:
        init in interface DataWriter
        init in class AbstractExtractDataWriter
        DataLoadException - This exception is thrown when an error occurs during initialization
      • format

        public void format(java.lang.Object ohMap)
        This method formats the data that is passed to it
        ohMap - The object to be formatted