|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.indexdata.torus2.util.EscapingStringTokenizer
public class EscapingStringTokenizer
Escaping/Quoting string tokenizer, based on the code from the Polyglot Project http://www.cs.cornell.edu/projects/polyglot/
Field Summary | |
---|---|
protected String |
delim
|
protected char |
escape
|
protected String |
escapedDelims
|
protected int |
len
|
protected int |
pos
|
protected String |
quotes
|
protected boolean |
returnDelims
|
protected String |
str
|
Constructor Summary | |
---|---|
EscapingStringTokenizer(String str)
Constructs a string tokenizer for the specified string. |
|
EscapingStringTokenizer(String str,
String delim)
Constructs a string tokenizer for the specified string. |
|
EscapingStringTokenizer(String str,
String delim,
String quotes,
char escape,
boolean returnDelims)
Constructs a string tokenizer for the specified string. |
|
EscapingStringTokenizer(String str,
String delim,
String quotes,
char escape,
boolean returnDelims,
String escapedDelims)
Constructs a string tokenizer for the specified string. |
Method Summary | |
---|---|
int |
countTokens()
Calculates the number of times that this tokenizer's nextToken method can be called before it generates an exception. |
boolean |
hasMoreElements()
Returns the same value as the hasMoreTokens method. |
boolean |
hasMoreTokens()
Tests if there are more tokens available from this tokenizer's string. |
String |
nextElement()
Returns the same value as the nextToken method, except that its declared return value is Object rather than String. |
String |
nextToken()
Returns the next token from this string tokenizer. |
String |
nextToken(String delim)
Returns the next token in this string tokenizer's string. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected final String str
protected String delim
protected final String quotes
protected final char escape
protected final boolean returnDelims
protected int pos
protected final int len
protected final String escapedDelims
Constructor Detail |
---|
public EscapingStringTokenizer(String str)
public EscapingStringTokenizer(String str, String delim)
public EscapingStringTokenizer(String str, String delim, String quotes, char escape, boolean returnDelims)
public EscapingStringTokenizer(String str, String delim, String quotes, char escape, boolean returnDelims, String escapedDelims)
Method Detail |
---|
public boolean hasMoreTokens()
public String nextToken()
public String nextToken(String delim)
public int countTokens()
public boolean hasMoreElements()
hasMoreElements
in interface Enumeration<String>
public String nextElement()
nextElement
in interface Enumeration<String>
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |