public class Base64 extends Object
Encodes and decodes to and from Base64 notation.
Constructor and Description |
---|
Base64() |
Modifier and Type | Method and Description |
---|---|
static byte[] |
decode(CharSequence s)
Decodes data from Base64 notation.
|
static byte[] |
decodeUrlSafe(CharSequence data) |
static String |
encodeBytes(byte[] source)
Encodes a byte array into Base64 notation.
|
static String |
encodeUrlSafe(byte[] data) |
public static String encodeBytes(byte[] source)
source
- The data to convertpublic static byte[] decode(CharSequence s)
s
- the string to decodepublic static String encodeUrlSafe(byte[] data)
public static byte[] decodeUrlSafe(CharSequence data)
Copyright © 2020. All rights reserved.