public class Base64 extends Object
Constructor and Description |
---|
Base64() |
Modifier and Type | Method and Description |
---|---|
static byte[] |
decode(char[] data)
Returns an array of bytes which were encoded in the passed
character array.
|
static String |
decode(String s)
Decodes a String that is encoded using Base64 encoding.
|
static char[] |
encode(byte[] data)
returns an array of base64-encoded characters to represent the
passed data array.
|
static String |
encode(String str)
Static method to encode a String using Base64.
|
static void |
main(String[] args) |
public static String encode(String str)
str
- string to encodedecode(java.lang.String)
public static char[] encode(byte[] data)
data
- the array of bytes to encodepublic static String decode(String s)
s
- is the encoded String that will be decoded.public static byte[] decode(char[] data)
data
- the array of base64-encoded characterspublic static void main(String[] args)
Copyright © 1999–2019 ViaOA. All rights reserved.