public final class Base64 extends Object
| Modifier and Type | Field and Description |
|---|---|
private static char[] |
ALPHABET
code characters for values 0..63
|
private static byte[] |
CODES
lookup table for converting base64 characters to value in range 0..63
|
| Modifier | Constructor and Description |
|---|---|
private |
Base64()
Private constructor.
|
| Modifier and Type | Method and Description |
|---|---|
static byte[] |
decode(char[] data)
Decodes a BASE-64 encoded stream to recover the original data.
|
static char[] |
encode(byte[] data)
Encodes binary data to a Base64 encoded characters.
|
private static final char[] ALPHABET
private static final byte[] CODES
public static char[] encode(byte[] data)
data - the array of bytes to encodepublic static byte[] decode(char[] data)
data - data to decode.Copyright © 2003–2019 The Apache Software Foundation. All rights reserved.