public class CSVImport extends Object
Modifier and Type | Field and Description |
---|---|
protected boolean |
cleartable |
protected String[] |
columns |
protected Connection |
conn |
protected boolean |
ignorecolumns |
protected int |
ignorelines |
protected Project |
project |
protected String |
separator |
protected boolean |
stripquotes |
protected String |
table |
Constructor and Description |
---|
CSVImport(Project project,
Connection conn) |
Modifier and Type | Method and Description |
---|---|
Project |
getProject() |
void |
importCSV(InputStream csvfile) |
static void |
main(String[] argv) |
void |
setClearTable(boolean cleartable) |
void |
setColumns(String[] columns) |
void |
setIgnoreColumns(boolean ignorecolumns) |
void |
setIgnoreLines(int ignorelines) |
void |
setSeparator(String separator) |
void |
setStripQuotes(boolean stripquotes) |
void |
setTable(String table) |
protected static void |
usage() |
protected Project project
protected Connection conn
protected String table
protected String[] columns
protected String separator
protected boolean cleartable
protected boolean stripquotes
protected boolean ignorecolumns
protected int ignorelines
public CSVImport(Project project, Connection conn)
public Project getProject()
public void setTable(String table)
public void setColumns(String[] columns)
public void setSeparator(String separator)
public void setClearTable(boolean cleartable)
public void setStripQuotes(boolean stripquotes)
public void setIgnoreColumns(boolean ignorecolumns)
public void setIgnoreLines(int ignorelines)
public void importCSV(InputStream csvfile) throws Exception
Exception
protected static void usage()