|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.wewebu.ow.server.util.OwEscapedStringTokenizer
public class OwEscapedStringTokenizer
Utility class to tokenize strings with escape characters.
Alfresco Workdesk
Copyright (c) Alfresco Software, Inc.
All rights reserved.
For licensing information read the license.txt file or
go to: http://wiki.alfresco.com
Field Summary | |
---|---|
static char |
STANDARD_DELIMITER
the standard delimiter character to be used |
static char |
STANDARD_ESCAPE
the standard escape character to be used |
Constructor Summary | |
---|---|
OwEscapedStringTokenizer(String text_p)
|
|
OwEscapedStringTokenizer(String text_p,
char delimiter_p,
char escapechar_p)
|
Method Summary | |
---|---|
protected static void |
appendEscapedToken(StringBuffer buf_p,
String token_p,
char delimiter_p,
char escape_p)
append the given token converting it with given escapes |
static String |
createDelimitedString(Collection tokens_p)
create a delimited string out of the given string collection that can later be tokenized |
static String |
createDelimitedString(Collection tokens_p,
char delimiter_p,
char escape_p)
create a delimited string out of the given string collection that can later be tokenized |
boolean |
hasNext()
|
String |
next()
get next token |
Collection |
toCollection()
convert the tokenizer into a collection |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final char STANDARD_DELIMITER
public static final char STANDARD_ESCAPE
Constructor Detail |
---|
public OwEscapedStringTokenizer(String text_p, char delimiter_p, char escapechar_p)
text_p
- delimiter_p
- escapechar_p
- public OwEscapedStringTokenizer(String text_p)
text_p
- Method Detail |
---|
public boolean hasNext()
public String next()
public Collection toCollection()
public static String createDelimitedString(Collection tokens_p)
tokens_p
- public static String createDelimitedString(Collection tokens_p, char delimiter_p, char escape_p)
tokens_p
- delimiter_p
- escape_p
- protected static void appendEscapedToken(StringBuffer buf_p, String token_p, char delimiter_p, char escape_p)
buf_p
- token_p
- delimiter_p
- escape_p
-
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |