ist.palcom.services.location.compass.tokenizer
Class Tokenizer

java.lang.Object
  extended by ist.palcom.services.location.compass.tokenizer.Tokenizer

public class Tokenizer
extends java.lang.Object

Tokenizer used in Parser. (We should perhaps deprecate this Tokenizer and change the Parser to use Java String.split instead, but the .split is not working on JVM runing on the PDA, due to version compa.)


Constructor Summary
Tokenizer(java.lang.String s)
          Constructs a new tokenizer for the given string.
 
Method Summary
 boolean hasNext()
           
 java.lang.String next()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Tokenizer

public Tokenizer(java.lang.String s)
Constructs a new tokenizer for the given string.

Parameters:
s - String to be tokenized
Method Detail

hasNext

public boolean hasNext()

next

public java.lang.String next()
                      throws java.util.NoSuchElementException
Returns:
Next token
Throws:
java.util.NoSuchElementException - If there is no token left