public final class CSVToSRS
extends java.lang.Object
Constructor and Description |
---|
CSVToSRS(java.io.File file,
char separatorChar,
char quoteChar,
java.lang.String commentChars,
java.lang.String encoding)
Constructor to preapare a Funduc SRS search/replace script from a CSV file.
|
Modifier and Type | Method and Description |
---|---|
static void |
main(java.lang.String[] args)
Simple command line interface to CSVToSRS.
|
public CSVToSRS(java.io.File file, char separatorChar, char quoteChar, java.lang.String commentChars, 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.commentChars
- chars to treat at comment lead-ins.encoding
- encoding of input and output.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