org.xnap.commons.util
Class QuotedStringTokenizer

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

public class QuotedStringTokenizer
extends Object

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


Field Summary
static String QUOTE
           
static char QUOTE_CHAR
           
 
Constructor Summary
QuotedStringTokenizer(String text)
          Constructs a QuotedStringTokenizer.
QuotedStringTokenizer(String text, String separators)
          Constructs a QuotedStringTokenizer.
QuotedStringTokenizer(String text, String separators, boolean returnSeparators)
          Constructs a QuotedStringTokenizer.
 
Method Summary
 int countTokens()
           
 boolean hasMoreTokens()
           
 String nextToken()
           
protected  org.xnap.commons.util.QuotedStringTokenizer.Token nextToken(int index)
           
 String nextToken(String separators)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

QUOTE

public static final String QUOTE
See Also:
Constant Field Values

QUOTE_CHAR

public static final char QUOTE_CHAR
See Also:
Constant Field Values
Constructor Detail

QuotedStringTokenizer

public QuotedStringTokenizer(String text,
                             String separators,
                             boolean returnSeparators)
Constructs a QuotedStringTokenizer.

See Also:
StringTokenizer

QuotedStringTokenizer

public QuotedStringTokenizer(String text,
                             String separators)
Constructs a QuotedStringTokenizer.

See Also:
StringTokenizer

QuotedStringTokenizer

public QuotedStringTokenizer(String text)
Constructs a QuotedStringTokenizer.

See Also:
StringTokenizer
Method Detail

countTokens

public int countTokens()

hasMoreTokens

public boolean hasMoreTokens()

nextToken

public String nextToken(String separators)

nextToken

public String nextToken()

nextToken

protected org.xnap.commons.util.QuotedStringTokenizer.Token nextToken(int index)


Copyright © 2004-2007 XNap Commons Team. All Rights Reserved.