|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.springframework.extensions.surf.util.EncodingUtil
public class EncodingUtil
Provides helper methods for encoding and decoding strings into a given encoding scheme.
Field Summary | |
---|---|
static String |
DEFAULT_ENCODING
The DEFAULT encoding. |
Constructor Summary | |
---|---|
EncodingUtil()
|
Method Summary | |
---|---|
static String |
decode(String input)
Decode. |
static String |
decode(String input,
String encoding)
Decode. |
static String |
encode(String input)
Encodes the given String into the default encoding. |
static String |
encode(String input,
String encoding)
Encodes the given String into the given encoding. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final String DEFAULT_ENCODING
Constructor Detail |
---|
public EncodingUtil()
Method Detail |
---|
public static String encode(String input)
input
- The String to be encoded
public static String encode(String input, String encoding)
input
- The String to be encodedencoding
- The encoding to be used
public static String decode(String input)
input
- the input
public static String decode(String input, String encoding)
input
- the inputencoding
- the encoding
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |