|
Copyright © 2006 BEA Systems, Inc. All Rights Reserved | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.util.StringTokenizer
com.compoze.collab.util.QuotedStringTokenizer
public class QuotedStringTokenizer
This class implements a StringTokenizer that handles quotes.
Constructor Summary | |
---|---|
QuotedStringTokenizer(String str)
Constructor. |
|
QuotedStringTokenizer(String str,
String delim)
Constructor. |
|
QuotedStringTokenizer(String str,
String delim,
boolean returnTokens)
Constructor. |
|
QuotedStringTokenizer(String str,
String delim,
boolean returnTokens,
boolean returnQuotes)
Constructor. |
Method Summary | |
---|---|
int |
countTokens()
Gets the count of tokens. |
boolean |
hasMoreElements()
Determines if there are more elements. |
boolean |
hasMoreTokens()
Determines if there are more tokens. |
Object |
nextElement()
Gets the next element. |
String |
nextToken()
Gets the next token. |
String |
nextToken(String delim)
Gets the next token using the specified delimiter. |
static void |
quote(StringBuffer buf,
String s)
Quotes a string. |
static String |
quote(String s,
String delim)
Quotes a string. |
static String |
unquote(String s)
Unquotes a string. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public QuotedStringTokenizer(String str, String delim, boolean returnTokens, boolean returnQuotes)
public QuotedStringTokenizer(String str, String delim, boolean returnTokens)
public QuotedStringTokenizer(String str, String delim)
public QuotedStringTokenizer(String str)
Method Detail |
---|
public boolean hasMoreTokens()
hasMoreTokens
in class StringTokenizer
true
if there are more tokenspublic String nextToken() throws NoSuchElementException
nextToken
in class StringTokenizer
NoSuchElementException
public String nextToken(String delim) throws NoSuchElementException
nextToken
in class StringTokenizer
NoSuchElementException
public boolean hasMoreElements()
hasMoreElements
in interface Enumeration<Object>
hasMoreElements
in class StringTokenizer
true
if there are more elementspublic Object nextElement() throws NoSuchElementException
nextElement
in interface Enumeration<Object>
nextElement
in class StringTokenizer
NoSuchElementException
public int countTokens()
countTokens
in class StringTokenizer
public static String quote(String s, String delim)
s
- the string to quotedelim
- the delimiter
public static void quote(StringBuffer buf, String s)
buf
- the buffer to write tos
- the string to quotepublic static String unquote(String s)
s
- the string to unquote
|
Copyright © 2006 BEA Systems, Inc. All Rights Reserved | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |