com.ibm.commerce.foundation.dataload.datawriter

Class CSVDataWriter

  • All Implemented Interfaces:
    DataWriter
    Direct Known Subclasses:
    CMDataWriter


    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
        Overrides:
        init in class AbstractExtractDataWriter
        Throws:
        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
        Parameters:
        ohMap - The object to be formatted