|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjava.util.StringTokenizer
public class StringTokenizer
This class has been developed to parse strings with delimiters
| Constructor Summary | |
|---|---|
StringTokenizer(String s)
Assigns the delimeter as ',' by default. |
|
StringTokenizer(String s,
String delimiter)
The constructor |
|
| Method Summary | |
|---|---|
int |
countTokens()
Calculates the number of times that this tokenizer's nextToken method can be called before it generates an exception. |
boolean |
hasMoreElements()
Method implemented by interface requirement |
boolean |
hasMoreTokens()
Method used to know if exists new tokens |
Object |
nextElement()
Method implemented by interface requirement |
String |
nextToken()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public StringTokenizer(String s)
s - String to be StringTokenizer
public StringTokenizer(String s,
String delimiter)
s - delimiter - | Method Detail |
|---|
public int countTokens()
public boolean hasMoreTokens()
public boolean hasMoreElements()
hasMoreElements in interface Enumeration
public String nextToken()
throws NoSuchElementException
NoSuchElementException - If there is no token leftpublic Object nextElement()
nextElement in interface Enumeration
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||