com.mindprod.csv
Class CSV2SRS

java.lang.Object
  extended by com.mindprod.csv.CSV2SRS

public final class CSV2SRS
extends java.lang.Object

Converts a 2-column CSV file to a guts of a Funduc Search Replace SRS Script.

Use: java.exe com.mindprod.CSV2SRS pairs.csv

Since:
2008-05-28
Version:
3.4 2010-12-03 - add CSV2SRS.
Author:
Roedy Green, Canadian Mind Products

Constructor Summary
CSV2SRS(java.io.File file, char separatorChar, char quoteChar, java.lang.String commentChars)
          Constructor also does work of converting
 
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

CSV2SRS

public CSV2SRS(java.io.File file,
               char separatorChar,
               char quoteChar,
               java.lang.String commentChars)
        throws java.io.IOException
Constructor also does work of converting

Parameters:
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 -
Throws:
java.io.IOException - if problems reading/writing file
Method Detail

main

public static void main(java.lang.String[] args)
Simple command line interface to CSVPack. Packs one csv file whose name is on the command line. Must have extension .csv
Use java com.mindprod.CSVPack somefile.csv . You can use CVTab2Comm constructor in your own programs.

Parameters:
args - name of csv file to remove excess quotes and space