PenProfile 2.x

com.livescribe.util
Class Tokenizer

java.lang.Object
  extended by com.livescribe.util.Tokenizer

public class Tokenizer
extends Object

Tokenizer allows to tokenize a String Takes a string as input and tokenizes it into an array of substrings using a specified delimiter character.


Constructor Summary
Tokenizer(String text, char delimiter)
          Constructs a string tokenizer for the specified string.
 
Method Summary
 boolean hasMoreTokens()
          Check if there are more tokens available from this tokenizer's string.
 String nextToken()
          Returns the next token from this string tokenizer.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Tokenizer

public Tokenizer(String text,
                 char delimiter)
Constructs a string tokenizer for the specified string.

Parameters:
text - - a string to be parsed
delimiter - - the delimiter to be used to parse the given String
Method Detail

hasMoreTokens

public boolean hasMoreTokens()
Check if there are more tokens available from this tokenizer's string.

Returns:
true if there are more tokens; false otherwise

nextToken

public String nextToken()
Returns the next token from this string tokenizer.

Returns:
the next token from this string tokenizer

PenProfile 2.x

Copyright © 2010 Livescribe Inc. All Rights Reserved.
Confidential and subject to NDA.