@Deprecated public class Base64 extends Object
| Modifier and Type | Method and Description |
|---|---|
static byte[] |
decodeBase64(byte[] base64Data)
Deprecated.
Decodes Base64 data into octets.
|
static byte[] |
decodeBase64(String base64String)
Deprecated.
Decodes a Base64 String into octets.
|
static byte[] |
encodeBase64(byte[] binaryData)
Deprecated.
Encodes binary data using the base64 algorithm but does not chunk the output.
|
static String |
encodeBase64String(byte[] binaryData)
Deprecated.
Encodes binary data using the base64 algorithm but does not chunk the output.
|
static byte[] |
encodeBase64URLSafe(byte[] binaryData)
Deprecated.
Encodes binary data using a URL-safe variation of the base64 algorithm but does not chunk the
output.
|
static String |
encodeBase64URLSafeString(byte[] binaryData)
Deprecated.
Encodes binary data using a URL-safe variation of the base64 algorithm but does not chunk the
output.
|
public static byte[] encodeBase64(byte[] binaryData)
binaryData - binary data to encode or null for null resultnull for
null inputpublic static String encodeBase64String(byte[] binaryData)
binaryData - binary data to encode or null for null resultnull for null inputpublic static byte[] encodeBase64URLSafe(byte[] binaryData)
binaryData - binary data to encode or null for null resultnull for
null inputpublic static String encodeBase64URLSafeString(byte[] binaryData)
binaryData - binary data to encode or null for null resultnull for null inputpublic static byte[] decodeBase64(byte[] base64Data)
base64Data - Byte array containing Base64 data or null for null resultnull for null inputpublic static byte[] decodeBase64(String base64String)
For the compatibility with the old version that used Apache Commons Coded's decodeBase64, this method discards new line characters and trailing whitespaces.
base64String - String containing Base64 data or null for null resultnull for null inputCopyright © 2011–2025 Google. All rights reserved.