|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.sun.syndication.io.impl.Base64
Encodes/decodes String values into/from a base 64 String.
It uses Jakarta commons codec Base64 class.
Constructor Summary | |
Base64()
|
Method Summary | |
static java.lang.String |
decode(java.lang.String s,
java.lang.String encoding)
Decodes a base 64 String into a String. |
static java.lang.String |
encode(java.lang.String s,
java.lang.String encoding)
Encodes a String into a base 64 String. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public Base64()
Method Detail |
public static java.lang.String encode(java.lang.String s, java.lang.String encoding) throws java.io.UnsupportedEncodingException
s
- String to encode.encoding
- the encoding of the original String, null indicates platform's default.
java.io.UnsupportedEncodingException
- thrown if the given encoding is not supported.public static java.lang.String decode(java.lang.String s, java.lang.String encoding) throws java.io.UnsupportedEncodingException
s
- String to decode.encoding
- the encoding of the String being decoded, null indicates platform's default.
java.io.UnsupportedEncodingException
- thrown if the given encoding is not supported.
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |