public abstract class CSVResultHandler extends DefaultResultHandler
| Modifier and Type | Field and Description |
|---|---|
protected org.apache.commons.csv.CSVPrinter |
csvPrinter |
protected boolean |
isClosed |
protected ResultUtil |
util |
resultDir, resultFileDetails, resultFileName| Constructor and Description |
|---|
CSVResultHandler() |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
void |
flush() |
boolean |
isClosed() |
protected abstract void |
open(String header)
This method is meant to open the connection to the target CSV location
|
void |
write(Result result) |
getResultFileDetails, getResultFileName, setResultFileDetails, setResultFileNameclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitreadprotected final ResultUtil util
protected volatile org.apache.commons.csv.CSVPrinter csvPrinter
protected volatile boolean isClosed
public void write(Result result) throws IOException
IOExceptionpublic void flush()
throws IOException
IOExceptionpublic void close()
throws IOException
IOExceptionpublic boolean isClosed()
protected abstract void open(String header) throws IOException
header - String Comma separated list of header values for CSVIOExceptionCopyright © 2016 Apache Software Foundation. All Rights Reserved.