public class Wrapper extends Object
Constructor and Description |
---|
Wrapper(String wrapperAlias,
String workFolder,
String wrapperFolder,
IWrapperProcessor processor)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
String |
getWrapperFolder()
The wrapper folder
|
void |
process()
Execute the
IWrapperProcessor implementation and pass the input CSV line by line (with header) to it. |
void |
save()
Save the output data.
|
public Wrapper(String wrapperAlias, String workFolder, String wrapperFolder, IWrapperProcessor processor) throws Exception
IWrapperProcessor
.
processLine() will be called line by line when you call process()Exception
public String getWrapperFolder()
public void process() throws Exception
IWrapperProcessor
implementation and pass the input CSV line by line (with header) to it.
To get some data, use:
String myData = record.get("your_column_name");
Don't forget to save your output data to the output List.
Your processor MUST implement a ListException
Copyright © 2015 Carlos Magno Oliveira de Abreu. All rights reserved.