public final class Base64
extends java.lang.Object
Constructor and Description |
---|
Base64() |
Modifier and Type | Method and Description |
---|---|
static byte[] |
decode(java.lang.String encoded)
Decodes Base64 data into octects
|
static java.lang.String |
encode(byte[] binaryData)
Encodes hex octects into Base64
|
protected static boolean |
isBase64(char octect) |
protected static boolean |
isData(char octect) |
protected static boolean |
isPad(char octect) |
protected static boolean |
isWhiteSpace(char octect) |
protected static int |
removeWhiteSpace(char[] data)
remove WhiteSpace from MIME containing encoded Base64 data.
|
protected static boolean isWhiteSpace(char octect)
protected static boolean isPad(char octect)
protected static boolean isData(char octect)
protected static boolean isBase64(char octect)
public static java.lang.String encode(byte[] binaryData)
binaryData
- Array containing binaryDatapublic static byte[] decode(java.lang.String encoded)
encoded
- string containing Base64 dataprotected static int removeWhiteSpace(char[] data)
data
- the byte array of base64 data (with WS)Copyright © 1999-2022 The Apache Software Foundation. All Rights Reserved.