Throwables.propagate(ex);
}
StringWriter sw = new StringWriter(16384);
PrintWriter pw = new PrintWriter(sw,true);
CSVWriter csw = new CSVWriter(pw);
StringBuffer sb = sw.getBuffer();
stringValues = new String[columnCount];
try {
while (rslt.next()) {
long rownum = m_totalRowCount.incrementAndGet();
Arrays.fill(stringValues, "NULL");
columnValues = new Object[columnCount];
lineData = new RowWithMetaData(new String[1], rownum);
try {
for (int i = 0; i < columnCount; ++i) {
columnValues[i] = acceptors[i].convert();
stringValues[i] = acceptors[i].format(columnValues[i]);
}
csw.writeNext(stringValues);
((String[])lineData.rawLine)[0] = sb.toString();
sb.setLength(0);
m_loader.insertRow(lineData, columnValues);