|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.tools.ant.ProjectComponent org.apache.tools.ant.util.StringTokenizer
public class StringTokenizer
Class to tokenize the input as areas separated by white space, or by a specified list of delim characters. Behaves like java.util.StringTokenizer. If the stream starts with delim characters, the first token will be an empty string (unless the treat delims as tokens flag is set).
Field Summary |
---|
Fields inherited from class org.apache.tools.ant.ProjectComponent |
---|
description, location, project |
Constructor Summary | |
---|---|
StringTokenizer()
|
Method Summary | |
---|---|
java.lang.String |
getPostToken()
return the string between tokens, after the previous token. |
java.lang.String |
getToken(java.io.Reader in)
find and return the next token |
void |
setDelims(java.lang.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. |
Methods inherited from class org.apache.tools.ant.ProjectComponent |
---|
clone, getDescription, getLocation, getProject, log, log, setDescription, setLocation, setProject |
Methods inherited from class java.lang.Object |
---|
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public StringTokenizer()
Method Detail |
---|
public void setDelims(java.lang.String delims)
delims
- a string containing the delimiter characterspublic void setDelimsAreTokens(boolean delimsAreTokens)
delimsAreTokens
- true if delimiters are to be separatepublic void setSuppressDelims(boolean suppressDelims)
suppressDelims
- if true do not report delimiterspublic void setIncludeDelims(boolean includeDelims)
includeDelims
- if true add delimiters to the tokenpublic java.lang.String getToken(java.io.Reader in) throws java.io.IOException
getToken
in interface Tokenizer
in
- the input stream
java.io.IOException
- if an error occurs readingpublic java.lang.String getPostToken()
Tokenizer
getPostToken
in interface Tokenizer
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |