public class Base64Encoder
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
static java.nio.charset.Charset |
base64CharSet |
| Modifier and Type | Method and Description |
|---|---|
static byte[] |
decode(byte[] eData)
Dencodes a com.sun.syndication.io.impl.Base64 byte array.
|
static java.lang.String |
decode(java.lang.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 java.lang.String |
encode(java.lang.String s)
Encodes a String into a base 64 String.
|
static void |
main(java.lang.String[] args) |
public static java.lang.String encode(java.lang.String s)
s - String to encode.public static java.lang.String decode(java.lang.String s)
throws java.lang.IllegalArgumentException
s - String to decode.java.lang.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.java.lang.IllegalArgumentException - thrown if the given byte array was not valid com.sun.syndication.io.impl.Base64 encoding.public static void main(java.lang.String[] args)
throws java.lang.Exception
java.lang.ExceptionCopyright © 2014 Red Hat. All Rights Reserved.