|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.mindprod.csv.CSVTab2Comma
public final class CSVTab2Comma
Converts tab-separated CSV file to a comma-separated CSV file.
Use: java.exe com.mindprod.CSVTab2Comma somefile.csv
Constructor Summary | |
---|---|
CSVTab2Comma(java.io.File file,
char separatorChar,
char quoteChar,
char commentChar)
pack a CSV file, constructor. |
Method Summary | |
---|---|
static void |
main(java.lang.String[] args)
Simple command line interface to CSVPack. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public CSVTab2Comma(java.io.File file, char separatorChar, char quoteChar, char commentChar) 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
- char to use to introduce comments. Use (char) 0 if none. Only one character allowed.
Note this is a 'char' not a "string". For output file. No comment presumed in input file.
java.io.IOException
- if problems reading/writing fileMethod Detail |
---|
public static void main(java.lang.String[] args)
args
- name of csv file to remove excess quotes and space
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |