public class Base64 extends Object
| Constructor and Description |
|---|
Base64() |
| Modifier and Type | Method and Description |
|---|---|
static int |
base64Decode(byte[] data,
int offset,
int datalen) |
static int |
base64Encode(byte[] data,
int offset,
int len) |
static String |
encode(byte[] data)
Get the encoded base 64 string from the given byte array.
|
static String |
encode(byte[] data,
int offset,
int len)
Get the encoded base 64 string from the given byte array.
|
static byte[] |
getEncodedBytes(byte[] data)
Encode the given byte array
|
static byte[] |
getEncodedBytes(byte[] data,
int offset,
int len)
Encode the given byte array
|
public static int base64Decode(byte[] data,
int offset,
int datalen)
public static int base64Encode(byte[] data,
int offset,
int len)
public static String encode(byte[] data)
data - byte array to be encodedpublic static String encode(byte[] data, int offset, int len)
data - byte array to be encodedoffset - starting index of the byte array to be encodedlen - length of the byte array to be encoded.public static byte[] getEncodedBytes(byte[] data,
int offset,
int len)
data - byte array to be encodedoffset - starting index of the byte array to be encodedlen - length of the byte array to be encoded.public static byte[] getEncodedBytes(byte[] data)
data - @param data byte array to be encodedCopyright © 2023. All rights reserved.