|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.equanda.util.StringSplitter
public class StringSplitter
This is a variant of the StringTokenizer classes as provided by the JDK. However, this version allows zero length tokens and does not group seperators.
Constructor Summary | |
---|---|
StringSplitter(char[] string,
char sep)
|
|
StringSplitter(String string,
char sep)
|
Method Summary | |
---|---|
boolean |
hasNext()
Is there another token ? |
StringSplitter |
iterator()
|
String |
next()
Get the next token |
void |
remove()
Remove does not work, only provide to be a complete @class{java.util.Iterator}. |
String |
rest()
Returns all the following parts, including delimiters. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public StringSplitter(String string, char sep)
public StringSplitter(char[] string, char sep)
Method Detail |
---|
public StringSplitter iterator()
iterator
in interface Iterable<String>
public boolean hasNext()
hasNext
in interface Iterator<String>
public String next() throws NoSuchElementException
next
in interface Iterator<String>
NoSuchElementException
public String rest() throws NoSuchElementException
NoSuchElementException
public void remove()
remove
in interface Iterator<String>
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |