|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.filenet.wcm.toolkit.util.WcmEncodingUtil
Utility class designed to handle various encoding tasks. This class cannot be instantiated.
Method Summary | |
static java.lang.String |
decodeBase64(java.util.Locale locale,
java.lang.String str)
Explicitly decodes text from base64. |
static java.lang.String |
decodeBase64(java.lang.String str)
Explicitly decodes text from base64. |
static java.lang.String |
decodeHTML(java.lang.String source)
|
static java.lang.String |
decodeLabel(java.lang.String str)
Decodes a String generated by encodeLabel() method |
static java.lang.String |
decodePath(java.lang.String str)
Decodes a String generated by encodePath() method |
static java.lang.String |
decodeUTF8URL(java.lang.String s)
Decodes UTF-8 encoded URL parameter. |
static java.lang.String |
encodeBase64(java.lang.String str)
Explicitly encodes text to base64. |
static java.lang.String |
encodeHTML(java.lang.String source)
Encodes the source string into HTML. |
static java.lang.String |
encodeLabel(java.lang.String str)
Encodes any String object so it can be used as a part of a URL |
static java.lang.String |
encodePath(java.lang.String str)
Encodes any String object so it can be used as a path in a URL * (asteric) is used as an escape character. |
static java.lang.String |
encodeURL(java.lang.String str)
URL-encodes the string. |
static java.lang.String |
encodeUTF8URL(java.lang.String s)
URL-encodes the string in UTF 8. |
static java.lang.String |
getRandomNumber()
creates a random number as a string |
static java.lang.String |
translateHTML(java.lang.String source)
Translates special characters into HTML sequences. |
static java.lang.String |
unescapeXml(java.lang.String source)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
public static java.lang.String encodeHTML(java.lang.String source)
If you wish to translate and encode a string, you must perform the encoding before the translation. If you don't, the translated characters will be encoded.
source
- The String to be encoded.
public static java.lang.String decodeHTML(java.lang.String source)
public static java.lang.String unescapeXml(java.lang.String source)
public static java.lang.String translateHTML(java.lang.String source)
The only characters translated are newline (\n) and tab (\t).
If you wish to translate and encode a string, you must perform the encoding before the translation. If you don't, the translated characters will be encoded.
source
- The String to be translated.
public static java.lang.String encodeURL(java.lang.String str)
str
- String to be encoded
public static java.lang.String decodeBase64(java.util.Locale locale, java.lang.String str) throws java.lang.Exception
locale
- the client localestr
- string to be decoded
java.lang.Exception
public static java.lang.String decodeBase64(java.lang.String str) throws java.lang.Exception
str
- string to be decoded
java.lang.Exception
public static java.lang.String encodeBase64(java.lang.String str) throws java.lang.Exception
str
- String to be encoded
java.lang.Exception
public static java.lang.String encodeLabel(java.lang.String str)
str
- string to be encoded
public static java.lang.String decodeLabel(java.lang.String str)
str
- String to be decoded
public static java.lang.String encodePath(java.lang.String str)
str
- string to be encoded
public static java.lang.String decodePath(java.lang.String str)
str
- String to be decoded
public static java.lang.String getRandomNumber()
public static java.lang.String encodeUTF8URL(java.lang.String s)
s
- String to be encoded
public static java.lang.String decodeUTF8URL(java.lang.String s)
s
- the String
to decode
String
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |