public final class CSVAlign
extends java.lang.Object
Constructor and Description |
---|
CSVAlign(java.io.File file,
char separator,
char quote,
char commentChar,
boolean verbose,
java.lang.String encoding)
align a CSV file, constructor.
|
Modifier and Type | Method and Description |
---|---|
static void |
main(java.lang.String[] args)
Simple command line interface to CSVAlign one file whose name is on the command line.
|
(package private) java.lang.String |
rebuildLabelComment(java.lang.String comment)
comment has two lead comment chars, one stripped off, and are used to label the fields.
|
public CSVAlign(java.io.File file, char separator, char quote, char commentChar, boolean verbose, java.lang.String encoding) throws java.io.IOException
file
- CSV file to be aligned in columns.separator
- field separator character, usually ',' in North America, ';' in Europe and sometimes '\t' for
tab.quote
- 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.verbose
- true if want extra status listing.encoding
- encoding of input and output.java.io.IOException
- if problems reading/writing filejava.lang.String rebuildLabelComment(java.lang.String comment)
comment
- field names separated by commas, with lead comment char.public static void main(java.lang.String[] args)
args
- name of csv file to align in columns.