public class Base64 extends Object
Base64 class.
| Constructor and Description |
|---|
Base64() |
| Modifier and Type | Method and Description |
|---|---|
static byte[] |
decode(String base64)
decode.
|
static String |
encode(byte[] raw)
encode.
|
static String |
encode(byte[] raw,
int offset,
int length)
encode.
|
static String |
encode(String value)
encode.
|
protected static char[] |
encodeBlock(byte[] raw,
int offset,
int lastIndex)
encodeBlock.
|
protected static char |
getChar(int sixbit)
getChar.
|
protected static int |
getValue(char c)
getValue.
|
static String |
objectToString(Object o)
objectToString.
|
public static byte[] decode(String base64)
decode.
base64 - a String object.public static String encode(byte[] raw)
encode.
raw - an array of byte.String object.public static String encode(byte[] raw, int offset, int length)
encode.
raw - an array of byte.offset - a int.length - a int.String object.protected static char[] encodeBlock(byte[] raw,
int offset,
int lastIndex)
encodeBlock.
raw - an array of byte.offset - a int.lastIndex - a int.protected static char getChar(int sixbit)
getChar.
sixbit - a int.protected static int getValue(char c)
getValue.
c - a char.Copyright © 2016. All Rights Reserved.