public final class Base64
extends java.lang.Object
This implementation does not encode/decode streaming data. You need the data that you will encode/decode already on a byte array.
This is the latest pre commons-codec version of Base64.
| Constructor and Description |
|---|
Base64() |
| Modifier and Type | Method and Description |
|---|---|
static byte[] |
decode(byte[] base64Data)
Decodes Base64 data into octects
|
static byte[] |
encode(byte[] binaryData)
Encodes hex octects into Base64
|
static int |
getDecodedDataLength(byte[] base64Data)
returns length of decoded data given an array containing encoded data.
|
static boolean |
isArrayByteBase64(byte[] arrayOctect) |
static boolean |
isBase64(byte octect) |
static boolean |
isBase64(java.lang.String isValidString) |
protected static boolean |
isData(byte octect) |
protected static boolean |
isPad(byte octect) |
protected static boolean |
isWhiteSpace(byte octect) |
static byte[] |
removeWhiteSpace(byte[] data)
remove WhiteSpace from MIME containing encoded Base64 data.
|
protected static boolean isWhiteSpace(byte octect)
protected static boolean isPad(byte octect)
protected static boolean isData(byte octect)
public static boolean isBase64(java.lang.String isValidString)
public static boolean isBase64(byte octect)
public static byte[] removeWhiteSpace(byte[] data)
data - public static boolean isArrayByteBase64(byte[] arrayOctect)
public static byte[] encode(byte[] binaryData)
binaryData - Array containing binaryDatapublic static byte[] decode(byte[] base64Data)
base64Data - Byte array containing Base64 datapublic static int getDecodedDataLength(byte[] base64Data)
base64Data -