public final class Base64CodecUtil extends Object
| Constructor and Description |
|---|
Base64CodecUtil() |
| Modifier and Type | Method and Description |
|---|---|
static ByteBuffer |
decode(ByteBuffer byteBuffer)
Decodes data from the input
ByteBuffer into using the encoding scheme. |
static byte[] |
decode(String encodedString)
Decodes data from the input string into using the encoding scheme.
|
static String |
encode(byte[] data)
Encodes all bytes from the specified byte array into String using StandardCharsets.UTF_8.
|
public static byte[] decode(String encodedString)
encodedString - - Base64 encoded string to decodepublic static ByteBuffer decode(ByteBuffer byteBuffer)
ByteBuffer into using the encoding scheme.byteBuffer - input data in byte buffer to be decoded.ByteBuffer containing the decoded bytes.public static String encode(byte[] data)
data - byte[] source dataCopyright © 2024 The Apache Software Foundation. All rights reserved.