public final class TableToCSV
extends java.lang.Object
Constructor and Description |
---|
TableToCSV(java.io.File file,
char separatorChar,
char quoteChar,
char commentChar,
java.lang.String encoding)
Constructor to convert an HTML table to CSV.
|
Modifier and Type | Method and Description |
---|---|
static void |
main(java.lang.String[] args)
Simple command line interface to TableToCSV.
|
public TableToCSV(java.io.File file, char separatorChar, char quoteChar, char commentChar, java.lang.String encoding) throws java.io.IOException
file
- CSV file to be packed to remove excess space and quotes.separatorChar
- field separator character, usually ',' in North America, ';' in Europe and sometimes '\t' for
tab for the output file. It is tab for the input file.
Note this is a 'char' not a "string".quoteChar
- character used to quote fields containing awkward chars.commentChar
- character to treat as comments.encoding
- encoding of the input and output file.java.io.IOException
- if problems reading/writing filepublic static void main(java.lang.String[] args)
args
- name of csv file to remove excess quotes and space