|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.server.servlets.CsvLineParser
public class CsvLineParser
The CsvLineParser class is a utility class which enables extraction of values from a comma separated value, or CSV, file.
Constructor Summary | |
---|---|
CsvLineParser()
This is the default constructor for the CsvLineParser class. |
Method Summary | |
---|---|
int |
getTokenCount(java.lang.StringBuffer sb)
This function calculates the number of values in the comma separated value string which is passed in as a parameter in the form of a StringBuffer object. |
java.lang.String[] |
getTokens(java.lang.String csvString)
This function takes the unparsed comma separated value string as an argument. |
java.lang.String[] |
getValues(java.lang.String s,
int[] plays)
This method takes the unparsed comma separated value string and an array of integers representing the indices of the strings to extract from the CSV string as arguments. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public CsvLineParser()
Method Detail |
---|
public java.lang.String[] getValues(java.lang.String s, int[] plays)
public java.lang.String[] getTokens(java.lang.String csvString)
public int getTokenCount(java.lang.StringBuffer sb)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |