|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.util.StringTokenizer
au.gov.tas.dpiwe.mr.util.CSVLineTokenizer
public class CSVLineTokenizer
Tokenizes lines of a CSV (comma-separated value) file.
| Constructor Summary | |
|---|---|
CSVLineTokenizer(String line)
Construct a new CSVLineTokenizer. |
|
| Method Summary | |
|---|---|
int |
countTokens()
This operation is not supported. |
boolean |
hasMoreElements()
Returns true if there are more comma-separated values on the line. |
boolean |
hasMoreTokens()
Returns true if there are more comma-separated values on the line. |
Object |
nextElement()
Returns the next comma-separated value on the line. |
String |
nextToken()
Returns the next comma-separated value on the line. |
String |
nextToken(String delim)
This operation is not supported. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public CSVLineTokenizer(String line)
line - the line of comma-separated values to be tokenized.| Method Detail |
|---|
public String nextToken()
Numbers are unparsed. Strings in CSV may be quoted using double quotes- these are removed and any commas in the string passed through untouched. Double quote images are returned as double quotes.
nextToken in class StringTokenizerNoSuchElementException - if there are no more values
on the line.public String nextToken(String delim)
nextToken in class StringTokenizerUnsupportedOperationException - always.public boolean hasMoreTokens()
hasMoreTokens in class StringTokenizerpublic Object nextElement()
Numbers are unparsed. Strings in CSV may be quoted using double quotes- these are removed and any commas in the string passed through untouched. Double quote images are returned as double quotes.
nextElement in interface EnumerationnextElement in class StringTokenizerNoSuchElementException - if there are no more values
on the line.public boolean hasMoreElements()
hasMoreElements in interface EnumerationhasMoreElements in class StringTokenizerpublic int countTokens()
countTokens in class StringTokenizerUnsupportedOperationException - always.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||