edu.mssm.crover.tables.readers
Class TabTokenizer
java.lang.Object
|
+--edu.mssm.crover.tables.readers.TabTokenizer
- public class TabTokenizer
- extends java.lang.Object
Splits strings in tab-separated tokens.
The empty string has no tokens, two consecutive tabs are interpreted as
two empty tokens.
"a\t\tb" has three tokens: "a", "", "b".
"\t\t" has two tokens: "", "".
|
Method Summary |
boolean |
hasMoreTokens()
Are there more tokens in the string? |
java.lang.String |
nextToken()
Returns the next token. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
TabTokenizer
public TabTokenizer(java.lang.String line)
nextToken
public java.lang.String nextToken()
- Returns the next token.
- Returns:
- a token.
hasMoreTokens
public boolean hasMoreTokens()
- Are there more tokens in the string?
- Returns:
- True if there is one more token to read. False otherwise
Copyright @ 2003 Mount Sinai School of Medicine. All Rights Reserved.