|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||

java.lang.Objectorg.melati.util.CSVStringEnumeration
public class CSVStringEnumeration
A utility for tokenising a string made up of comma-separated variables. Unlike Tim's effort, it handles quoted variables as well.
foo, bar om,,"baz, ,oof",xyz, ->
"foo", " bar om", "", "baz, , oof", "xyz", ""
| Constructor Summary | |
|---|---|
CSVStringEnumeration()
|
|
| Method Summary | |
|---|---|
boolean |
hasMoreElements()
Are there any more tokens to come? |
String |
nextElement()
Return the next token as an Object. |
String |
nextToken()
|
void |
reset(String lineP)
Look at a new string. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public CSVStringEnumeration()
| Method Detail |
|---|
public void reset(String lineP)
public boolean hasMoreElements()
hasMoreElements in interface Enumeration<String>Enumeration.hasMoreElements()public final String nextElement()
nextElement in interface Enumeration<String>Enumeration.nextElement()public String nextToken()
|
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||