public final class Base64 extends Object
Constructor and Description |
---|
Base64() |
Modifier and Type | Method and Description |
---|---|
static byte[] |
decode(String encoded)
Decodes Base64 data into octects
|
static 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 String encode(byte[] binaryData)
binaryData
- Array containing binaryDatapublic static byte[] decode(String encoded)
encoded
- string containing Base64 dataprotected static int removeWhiteSpace(char[] data)
data
- the byte array of base64 data (with WS)Copyright © 2016 JBoss by Red Hat. All rights reserved.