public class StringTokenizer extends ProjectComponent implements Tokenizer
Constructor and Description |
---|
StringTokenizer() |
Modifier and Type | Method and Description |
---|---|
String |
getPostToken()
return the string between tokens, after the
previous token.
|
String |
getToken(Reader in)
find and return the next token
|
void |
setDelims(String delims)
attribute delims - the delimiter characters
|
void |
setDelimsAreTokens(boolean delimsAreTokens)
attribute delimsaretokens - treat delimiters as
separate tokens.
|
void |
setIncludeDelims(boolean includeDelims)
attribute includedelims - treat delimiters as part
of the token.
|
void |
setSuppressDelims(boolean suppressDelims)
attribute suppressdelims - suppress delimiters.
|
clone, getDescription, getLocation, getProject, log, log, setDescription, setLocation, setProject
public String getPostToken()
Tokenizer
getPostToken
in interface Tokenizer
public String getToken(Reader in) throws IOException
getToken
in interface Tokenizer
in
- the input streamIOException
- if an error occurs readingpublic void setDelims(String delims)
delims
- a string containing the delimiter characterspublic void setDelimsAreTokens(boolean delimsAreTokens)
delimsAreTokens
- true if delimiters are to be separatepublic void setIncludeDelims(boolean includeDelims)
includeDelims
- if true add delimiters to the tokenpublic void setSuppressDelims(boolean suppressDelims)
suppressDelims
- if true do not report delimiters