public abstract class CSVDataWriter extends AbstractExtractDataWriter
Modifier and Type | Field and Description |
---|---|
protected java.util.List | iTokenNames
List consisting of the token names obtained from configuration file
|
Constructor and Description |
---|
CSVDataWriter() |
Modifier and Type | Method and Description |
---|---|
protected java.lang.String | encloseToken(java.lang.Object obj)
This method is used to enclose the value with double quote characters
|
void | format(java.lang.Object ohMap)
This method formats the data that is passed to it
|
protected java.lang.String | getColumnDelimiter()
This method gets column Delimiter Subclass may override it to use different delimiter.
|
protected abstract java.util.List | getFormattedData(java.util.HashMap hMap)
This method has to be implemented by the class extending this
|
protected java.util.List | getTokenPropertiesList()
Gets the token properties list
|
void | init()
This method initializes the data writer.
|
protected java.lang.String | obtainData(java.util.List aList)
This method obtains the data list and separates each column data with the column delimiter
|
protected void | processData(TableDataObject dataObject)
This method is not used
|
void | save(java.lang.Object obj)
This method is used to save the data to the output file.
|
protected java.util.List iTokenNames
public void init() throws DataLoadException
public void save(java.lang.Object obj) throws DataLoadException
protected java.lang.String obtainData(java.util.List aList)
protected void processData(TableDataObject dataObject) throws DataLoadException
public void format(java.lang.Object ohMap)
protected abstract java.util.List getFormattedData(java.util.HashMap hMap)
protected java.lang.String getColumnDelimiter()
protected java.util.List getTokenPropertiesList()
protected java.lang.String encloseToken(java.lang.Object obj)