public final class Base64 extends Object
Base64 encoder and decoder.
This class provides encoding/decoding methods for the Base64 encoding as defined by RFC 2045, N. Freed and N. Borenstein. RFC 2045: Multipurpose Internet Mail Extensions (MIME) Part One: Format of Internet Message Bodies. Reference 1996. Available at: http://www.ietf.org/rfc/rfc2045.txtConstructor 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 boolean |
isBase64(String isValidString) |
public static boolean isBase64(String isValidString)
public static byte[] encode(byte[] binaryData)
binaryData
- Array containing binaryDatapublic static byte[] decode(byte[] base64Data)
base64Data
- Byte array containing Base64 dataCopyright © 2016. All Rights Reserved.