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: "", "".


Constructor Summary
TabTokenizer(java.lang.String line)
           
 
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
 

Constructor Detail

TabTokenizer

public TabTokenizer(java.lang.String line)
Method Detail

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.