public class CSVReaderDataPool extends FileReaderDataPool
Modifier and Type | Class and Description |
---|---|
class |
CSVReaderDataPool.CSVRowWrapper |
Modifier and Type | Field and Description |
---|---|
protected String |
delimiter |
protected AtomicBoolean |
hasChanges |
protected Vector<String> |
headers |
static org.slf4j.Logger |
logger |
protected File |
tempFile |
protected PrintWriter |
tempFileWriter |
closing, configuration, context, isRowCommitEnabled
Constructor and Description |
---|
CSVReaderDataPool(CSVDataPool configuration) |
Modifier and Type | Method and Description |
---|---|
void |
addRow(Object row) |
void |
close() |
void |
doFirst_() |
Vector<String> |
getHeaders(String readOneLine) |
void |
init() |
protected boolean |
isWriteQueueSupportEnabled() |
Object |
postProcess(String line) |
Vector<String> |
splitCSV(String readOneLine) |
void |
writeRow(DataPoolRow row) |
next_, readOneLine, reset
enableRowCommit, next, save, setContext
public static final org.slf4j.Logger logger
protected String delimiter
protected AtomicBoolean hasChanges
protected File tempFile
protected PrintWriter tempFileWriter
public CSVReaderDataPool(CSVDataPool configuration)
public void init()
init
in class FileReaderDataPool
public void close()
close
in class FileReaderDataPool
public void writeRow(DataPoolRow row) throws IOException
writeRow
in class DataSet<FileDataPool>
IOException
protected boolean isWriteQueueSupportEnabled()
isWriteQueueSupportEnabled
in class DataSet<FileDataPool>
public Object postProcess(String line)
postProcess
in class FileReaderDataPool
public void doFirst_()
doFirst_
in class FileReaderDataPool
public void addRow(Object row)
addRow
in class DataSet<FileDataPool>
Copyright © 2020. All rights reserved.