public class Base64Utils extends Object
Modifier and Type | Method and Description |
---|---|
static byte[] |
decode(byte[] bytes)
Decodes base64 encoded bytes.
|
static byte[] |
decode(String string)
Decodes a base64 encoded string.
|
static String |
encode(byte[] bytes)
Base64 encodes the bytes with the URL-safe table.
|
static byte[] |
encodeToBytes(byte[] bytes)
Base64 encodes the bytes with the URL-safe table.
|
public static byte[] decode(byte[] bytes)
bytes
- encoded bytespublic static byte[] decode(String string)
string
- encoded stringpublic static String encode(byte[] bytes)
bytes
- bytes to encodepublic static byte[] encodeToBytes(byte[] bytes)
bytes
- bytes to encodeCopyright © 2019 Communote team. All rights reserved.