public final class Base64 extends Object
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(String isValidString)
Tests a string to see if it is valid Base64
|
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(String isValidString)
public static boolean isBase64(byte octect)
public static byte[] removeWhiteSpace(byte[] data)
data
- MIME containing encoded Base64 datapublic 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
- an array containing encoded dataCopyright © 2018 Hazelcast, Inc.. All rights reserved.