Class CsvSplitter

All Implemented Interfaces:
Configurable<CsvSplitterConfig>, ConfigurableDocHandler<CsvSplitterConfig>, DocHandler

public class CsvSplitter extends AbstractDocumentSplitter<CsvSplitterConfig>

Split files with Coma-Separated values (or any other characters, like tab) into one document per line.

Can be used both as a pre-parse (text documents) or post-parse handler documents.

Given this sample CSV file content...

 'clientId','clientName','clientOrg','orgDesc'
 '123','Joe Dalton','ACME Inc.','Organization\'s description'
 '345','Avrel Dalton','Daisy Town','Another one'
 

... the above example will split the file into two documents (one for each row after the header row):

See Also: