aicas logo Jamaica 3.4 release 8

com.aicas.jamaica.util
Class StringTokenizerWithQuotes

java.lang.Object
  extended by com.aicas.jamaica.util.StringTokenizerWithQuotes

public class StringTokenizerWithQuotes
extends Object


Constructor Summary
StringTokenizerWithQuotes(String string)
          Tokenizer that uses Spaces, Tabs, Newlines, Returns, and Form Feed as delimiters.
StringTokenizerWithQuotes(String string, String separators)
          Tokenizer that uses a user-defined set of delimiters.
 
Method Summary
 int countTokens()
           
 boolean hasMoreTokens()
           
 String nextToken()
          Find the next token in this string tokenizer.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

StringTokenizerWithQuotes

public StringTokenizerWithQuotes(String string)
                          throws TokenizerException
Tokenizer that uses Spaces, Tabs, Newlines, Returns, and Form Feed as delimiters. Never return delimiters as tokens.

Throws:
TokenizerException

StringTokenizerWithQuotes

public StringTokenizerWithQuotes(String string,
                                 String separators)
                          throws TokenizerException
Tokenizer that uses a user-defined set of delimiters. Never return delimiters as tokens.

Parameters:
separators - The delimiters to be used.
Throws:
TokenizerException
Method Detail

hasMoreTokens

public boolean hasMoreTokens()
Returns:
True, iff nextToken() will return another token. False, if nextToken() will throw a TokenizerException.

nextToken

public String nextToken()
                 throws TokenizerException
Find the next token in this string tokenizer. Quote symbols \" will not be stripped.

Returns:
The next token from this tokenizer.
Throws:
TokenizerException

countTokens

public int countTokens()

aicas logo Jamaica 3.4 release 8

aicas GmbH, Karlsruhe - Germany    www.aicas.com
Copyright 2001-2009 aicas GmbH. All Rights Reserved.