|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.glassfish.jersey.internal.util.Tokenizer
public final class Tokenizer
A utility class providing methods capable of splitting String entries into an array of tokens based on either default or custom token delimiters.
Field Summary | |
---|---|
static String |
COMMON_DELIMITERS
Common Jersey delimiters used by various properties. |
Method Summary | |
---|---|
static String[] |
tokenize(String entry)
Get a canonical array of tokens from a String entry that may contain zero or more tokens separated by common delimiters " ,;\n" . |
static String[] |
tokenize(String[] entries)
Get a canonical array of tokens from an array of String entries where each entry may contain zero or more tokens separated by common delimiters " ,;\n" . |
static String[] |
tokenize(String[] entries,
String delimiters)
Get a canonical array of tokens from an array of String entries where each entry may contain zero or more tokens separated by characters in delimiters string. |
static String[] |
tokenize(String entry,
String delimiters)
Get a canonical array of tokens from a String entry that may contain zero or more tokens separated by characters in delimiters string. |
static String |
unqote(String entry)
Remove any beginning or trailing quotes from a trimmed entry and return the updated entry. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final String COMMON_DELIMITERS
Method Detail |
---|
public static String[] tokenize(String[] entries)
" ,;\n"
.
entries
- an array where each String entry may contain zero or more
common delimiters
separated tokens.
null
entries.public static String[] tokenize(String[] entries, String delimiters)
entries
- an array where each String entry may contain zero or more
delimiters separated tokens.delimiters
- string with delimiters, every character represents one
delimiter.
null
entries.public static String[] tokenize(String entry)
" ,;\n"
.
entry
- a String that may contain zero or more
common delimiters
separated tokens.
null
entries.public static String[] tokenize(String entry, String delimiters)
entry
- a String that may contain zero or more
delimiters separated tokens.delimiters
- string with delimiters, every character represents one
delimiter.
null
entries.public static String unqote(String entry)
entry
- a potentially quoted string entry.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |