public final class CSVChangeCase
extends java.lang.Object
Constructor and Description |
---|
CSVChangeCase(java.io.File file,
int[] colsToConvert,
char[] typeOfConversionRequested,
char separatorChar,
char quoteChar,
char commentChar,
java.lang.String encoding)
Change Case of a CSV file, constructor.
|
Modifier and Type | Method and Description |
---|---|
static void |
main(java.lang.String[] args)
Simple command line interface to CSVChangeCase.
|
public CSVChangeCase(java.io.File file, int[] colsToConvert, char[] typeOfConversionRequested, 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.colsToConvert
- array of 0-based cols to sort on.typeOfConversionRequested
- array of chars with letters s i n x to tell how to sort each column.separatorChar
- field separator character, usually ',' in North America, ';' in Europe and sometimes '\t' for
tab.quoteChar
- char to use to enclose fields containing a separator, usually '\"'. Use (char)0 if
you don't want a quote character.commentChar
- char to use to introduce comments. Use (char) 0 if none. Only one character allowed.encoding
- encoding for input and output.java.io.IOException
- if problems reading/writing filepublic static void main(java.lang.String[] args)
args
- name of csv file to change case on