|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.partnersoft.v3x.text.CSVUtils
public class CSVUtils
parse CSV this class parses a CSV strings and files and does things with them it is tryin' to be a static method havin' utility class
| Constructor Summary | |
|---|---|
CSVUtils()
|
|
| Method Summary | |
|---|---|
static int |
countLines(java.io.File filet)
Counts the lines in a file. |
static int |
countLines(java.io.Reader source)
Counts the lines in a CSV stream. |
static void |
main(java.lang.String[] argv)
|
static java.util.ArrayList |
parseCSV(java.lang.String s)
this will parse a comma delimited string and return a vector full of its values |
static void |
parseCSV(java.lang.String s,
java.util.ArrayList v)
Recycling is good for you. |
static java.util.Map |
parseCSVIntoMap(java.lang.String s,
java.util.ArrayList keys)
This parses a comma-delimited string and returns a Map where the values are keyed to the values in the keyArrayList parameter, in the same order. |
static java.util.ArrayList |
parseListOfLists(java.lang.String string)
This is a little weird; it parses a list of csv lists; each list is surrounded by parens. |
static void |
writeCSV(java.io.PrintWriter outie,
java.util.Collection collection)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public CSVUtils()
| Method Detail |
|---|
public static void main(java.lang.String[] argv)
public static java.util.ArrayList parseCSV(java.lang.String s)
public static java.util.ArrayList parseListOfLists(java.lang.String string)
public static void parseCSV(java.lang.String s,
java.util.ArrayList v)
public static java.util.Map parseCSVIntoMap(java.lang.String s,
java.util.ArrayList keys)
public static int countLines(java.io.File filet)
throws java.io.IOException
java.io.IOException
public static int countLines(java.io.Reader source)
throws java.io.IOException
java.io.IOException
public static void writeCSV(java.io.PrintWriter outie,
java.util.Collection collection)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||