public class CSVExport extends Object
Modifier and Type | Field and Description |
---|---|
protected Connection |
conn |
protected String |
separator |
Constructor and Description |
---|
CSVExport(Connection conn) |
Modifier and Type | Method and Description |
---|---|
protected String |
escape(String value) |
void |
exportCSV(Writer writer,
String table,
String[] columns) |
static void |
main(String[] argv) |
void |
setSeparator(String separator) |
protected static void |
usage() |
protected Connection conn
protected String separator
public CSVExport(Connection conn)
public void setSeparator(String separator)
public void exportCSV(Writer writer, String table, String[] columns) throws SQLException, IOException
SQLException
IOException
protected static void usage()