|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.sun.syndication.io.impl.Base64
public class Base64
Encodes/decodes byte arrays and Strings into/from a base 64 String.
Constructor Summary | |
---|---|
Base64()
|
Method Summary | |
---|---|
static byte[] |
decode(byte[] eData)
Dencodes a com.sun.syndication.io.impl.Base64 byte array. |
static String |
decode(String s)
Decodes a base 64 String into a String. |
static byte[] |
encode(byte[] dData)
Encodes a byte array into a base 64 byte array. |
static String |
encode(String s)
Encodes a String into a base 64 String. |
static void |
main(String[] args)
|
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 String encode(String s)
s
- String to encode.
public static String decode(String s) throws IllegalArgumentException
s
- String to decode.
IllegalArgumentException
- thrown if the given byte array was not valid com.sun.syndication.io.impl.Base64 encoding.public static byte[] encode(byte[] dData)
dData
- byte array to encode.
public static byte[] decode(byte[] eData)
eData
- byte array to decode.
IllegalArgumentException
- thrown if the given byte array was not valid com.sun.syndication.io.impl.Base64 encoding.public static void main(String[] args) throws Exception
Exception
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |