Package step.datapool.file
Class CSVReaderDataPool
java.lang.Object
step.datapool.DataSet<FileDataPool>
step.datapool.file.FileReaderDataPool
step.datapool.file.CSVReaderDataPool
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected String
protected AtomicBoolean
static final org.slf4j.Logger
protected File
protected PrintWriter
Fields inherited from class step.datapool.DataSet
closing, configuration, context, isRowCommitEnabled
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
void
close()
void
doFirst_()
getHeaders
(String readOneLine) void
init()
protected boolean
postProcess
(String line) void
writeRow
(DataPoolRow row) Methods inherited from class step.datapool.file.FileReaderDataPool
next_, readOneLine, reset
Methods inherited from class step.datapool.DataSet
enableRowCommit, next, save, setContext
-
Field Details
-
logger
public static final org.slf4j.Logger logger -
headers
-
delimiter
-
hasChanges
-
tempFile
-
tempFileWriter
-
-
Constructor Details
-
CSVReaderDataPool
-
-
Method Details
-
init
public void init()- Overrides:
init
in classFileReaderDataPool
-
close
public void close()- Overrides:
close
in classFileReaderDataPool
-
writeRow
- Overrides:
writeRow
in classDataSet<FileDataPool>
- Throws:
IOException
-
isWriteQueueSupportEnabled
protected boolean isWriteQueueSupportEnabled()- Overrides:
isWriteQueueSupportEnabled
in classDataSet<FileDataPool>
-
postProcess
- Specified by:
postProcess
in classFileReaderDataPool
-
getHeaders
-
splitCSV
-
doFirst_
public void doFirst_()- Specified by:
doFirst_
in classFileReaderDataPool
-
addRow
- Specified by:
addRow
in classDataSet<FileDataPool>
-