public class Base64Utils extends Object
| Constructor and Description |
|---|
Base64Utils() |
| Modifier and Type | Method and Description |
|---|---|
static byte[] |
decode(char[] in)
Decodes Base64 data.
|
static String |
decode(String s)
Decodes a Base64 string.
|
static char[] |
encode(byte[] in)
Encodes a byte array into Base64 format.
|
static String |
encode(String s)
Encodes a string into Base64 format.
|
public static String encode(String s)
s - a String to be encoded.public static char[] encode(byte[] in)
in - an array containing the data bytes to be encoded.public static String decode(String s)
s - a Base64 String to be decoded.IllegalArgumentException - if the input is not valid Base64 encoded data.public static byte[] decode(char[] in)
in - a character array containing the Base64 encoded data.IllegalArgumentException - if the input is not valid Base64 encoded data.Copyright © 2016 Imatia Innovation S.L.. All rights reserved.