|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.gentics.portal.StringUtils
public class StringUtils
String Util Class.
![]() |
![]() |
| Field Summary | |
|---|---|
private static String |
HEXDIGITS
The Constant HEXDIGITS. |
| Constructor Summary | |
|---|---|
protected |
StringUtils()
Instantiates a new string utils. |
| Method Summary | |
|---|---|
static Boolean |
containsOneOf(List<Integer> list1,
List<Integer> list2)
Checks if one list contains one or more elements of the second list. |
static String |
encodeURL(String text,
String encoding)
Encode url. |
private static boolean |
isCharacterURLSafe(char c)
Check whether the given character is safe for being part of an url. |
private static void |
transformURL(StringBuffer buffer,
String toEncode,
String encoding)
Transform the given string into URL encoded String. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
private static final String HEXDIGITS
| Constructor Detail |
|---|
protected StringUtils()
| Method Detail |
|---|
public static String encodeURL(String text,
String encoding)
throws UnsupportedEncodingException
text - the textencoding - the encoding
UnsupportedEncodingException - the unsupported encoding exception
private static void transformURL(StringBuffer buffer,
String toEncode,
String encoding)
throws UnsupportedEncodingException
buffer - where to append the URL encoded StringtoEncode - to encodeencoding - used encoding
UnsupportedEncodingException - the unsupported encoding exceptionprivate static boolean isCharacterURLSafe(char c)
c - character to check
public static Boolean containsOneOf(List<Integer> list1,
List<Integer> list2)
list1 - the list1list2 - the list2
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||