public class StrTokenizer extends Object implements Enumeration
Constructor and Description |
---|
StrTokenizer(String str,
String[] delim)
Creates new StrTokenizer
|
StrTokenizer(String str,
String[] delim,
boolean returnTags)
Creates a new StrTokenizer, optionally return the tags as tokens
|
StrTokenizer(String str,
String[] delim,
boolean returnTags,
boolean caseSensitive)
creates a new StrTokenizer, optionally return the tags and letting you
specify case sensitivity
|
StrTokenizer(String str,
String[] delim,
boolean returnTags,
boolean caseSensitive,
boolean emptyValues)
creates a new StrTokenizer, optionally return the tags and letting you
specify case sensitivity
|
Modifier and Type | Method and Description |
---|---|
int |
countTokens()
How many tokens there are in the string.
|
boolean |
hasMoreElements()
Whether there are more Elements to return.
|
boolean |
hasMoreTokens()
Whether there are more tokens to return.
|
Object |
nextElement()
Get the next Element
|
String |
nextToken()
Get the next token.
|
public StrTokenizer(String str, String[] delim)
str
- What to break updelim
- The items to tokenize on.public StrTokenizer(String str, String[] delim, boolean returnTags)
str
- What to break up.delim
- The tags to tokenize onreturnTags
- Return the tage as strings.public StrTokenizer(String str, String[] delim, boolean returnTags, boolean caseSensitive)
str
- What to break updelim
- The tags to tokenize onreturnTags
- Return the tags as tokenscaseSensitive
- Should the tokenization be case sensitive.public StrTokenizer(String str, String[] delim, boolean returnTags, boolean caseSensitive, boolean emptyValues)
str
- What to break updelim
- The tags to tokenize onreturnTags
- Return the tags as tokenscaseSensitive
- if true then the tokenization wiil be case sensitive.emptyValues
- if true then the empty values will be considerer.public int countTokens()
public boolean hasMoreElements()
hasMoreElements
in interface Enumeration
public boolean hasMoreTokens()
public String nextToken()
public Object nextElement()
nextElement
in interface Enumeration
Access Rights |
---|
SC | DC | Public Part | ACH |
---|---|---|---|
[sap.com] KMC-CM
|
[sap.com] tc/km/frwk
|
api
|
EP-KM-CM
|
[sap.com] KMC-WPC
|
[sap.com] tc/kmc/wpc/wpcfacade
|
api
|
EP-PIN-WPC-WCM
|
Copyright 2018 SAP AG Complete Copyright Notice