org.xnap.util
Class QuotedStringTokenizer

java.lang.Object
  extended by org.xnap.util.QuotedStringTokenizer

public class QuotedStringTokenizer
extends java.lang.Object

Provides a string tokenizer that respects quotes. If a separator is followed by a quote the next token will extent to the next quote even if there are separators in between.


Constructor Summary
QuotedStringTokenizer(java.lang.String s)
          Constructs a QuotedStringTokenizer.
QuotedStringTokenizer(java.lang.String s, java.lang.String separators)
          Constructs a QuotedStringTokenizer.
 
Method Summary
 java.lang.String allNextTokens()
          Return the remaining tokens.
 int countTokens()
           
 java.lang.String[] getTokens()
           
 boolean hasMoreTokens()
           
 java.lang.String nextToken()
           
protected  void parse(java.lang.String s, java.lang.String separators)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

QuotedStringTokenizer

public QuotedStringTokenizer(java.lang.String s,
                             java.lang.String separators)
Constructs a QuotedStringTokenizer.

See Also:
StringTokenizer

QuotedStringTokenizer

public QuotedStringTokenizer(java.lang.String s)
Constructs a QuotedStringTokenizer.

See Also:
StringTokenizer
Method Detail

allNextTokens

public java.lang.String allNextTokens()
Return the remaining tokens.


countTokens

public int countTokens()

hasMoreTokens

public boolean hasMoreTokens()

nextToken

public java.lang.String nextToken()

getTokens

public java.lang.String[] getTokens()

parse

protected void parse(java.lang.String s,
                     java.lang.String separators)


Copyright © 2001-2005 XNap Team. All Rights Reserved.