public class EscapingStringTokenizer extends Object implements Enumeration<String>
Modifier and Type | Field and Description |
---|---|
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 and Description |
---|
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.
|
Modifier and Type | Method and Description |
---|---|
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.
|
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
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)
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>
Copyright © 2008-2015 Index Data. All Rights Reserved.