public class Base64Coder extends Object
Constructor and Description |
---|
Base64Coder() |
Modifier and Type | Method and Description |
---|---|
static byte[] |
decode(char[] in)
Decodes Base64 data.
|
static byte[] |
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 byte[] 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 © 2005–2020 jthink.net. All rights reserved.