if (printColumns) { logger.debug(""); StringBuffer buf = new StringBuffer(); for (int i = 0; i < columns.size(); i++) { String s = (String) columns.get(i); if (i > 0) { buf.append(","); } buf.append(s); } logger.debug(buf.toString()); printColumns = false;
if (lastHeader == null || !header.toString().equals(lastHeader.toString())) { logger.debug("\r\n" + header);
        public static void newRow() {            if (row.length() == 0) {                return; // nothing to print            }            if (printColumns) {                logger.debug("");                StringBuffer buf = new StringBuffer();                for (int i = 0; i < columns.size(); i++) {                    String s = (String) columns.get(i);                    if (i > 0) {                        buf.append(",");                    }                    buf.append(s);                }                logger.debug(buf.toString());                printColumns = false;            }            logger.debug(row.toString());            row = new StringBuffer();            currentCol = 0;        }