public final class Base64
extends java.lang.Object
Constructor and Description |
---|
Base64() |
Modifier and Type | Method and Description |
---|---|
static java.lang.String |
base64Decode(java.lang.String orig) |
static byte[] |
decode(byte[] base64Data)
Decodes Base64 data into octects
|
static byte[] |
decode(java.lang.String data)
Decodes a string containing Base64 data
|
static byte[] |
encode(byte[] binaryData)
Encodes hex octects into Base64.
|
static byte[] |
encode(java.lang.String data)
Encodes hex octets of a UTF-8 encoded String into Base64
|
static boolean |
isArrayByteBase64(byte[] arrayOctect) |
static boolean |
isBase64(byte octet) |
static boolean |
isBase64(java.lang.String isValidString) |
public static boolean isBase64(java.lang.String isValidString)
public static boolean isBase64(byte octet)
public static boolean isArrayByteBase64(byte[] arrayOctect)
public static byte[] encode(byte[] binaryData)
binaryData
- Array containing binary data to encode.public static byte[] decode(byte[] base64Data)
base64Data
- Byte array containing Base64 datapublic static byte[] encode(java.lang.String data)
data
- the String to encode.public static byte[] decode(java.lang.String data)
data
- the String to decode.public static java.lang.String base64Decode(java.lang.String orig)
Copyright © 2016 Oracle Corporation. All Rights Reserved.