|
||||||||||
上一个类 下一个类 | 框架 无框架 | |||||||||
摘要: 嵌套 | 字段 | 构造方法 | 方法 | 详细信息: 字段 | 构造方法 | 方法 |
java.lang.Objectcom.baidu.sapi2.security.Base64
public class Base64
编码处理类
构造方法摘要 | |
---|---|
Base64()
|
方法摘要 | |
---|---|
static int |
decode(char c,
int key)
|
static byte[] |
decode(String s)
把一个进行base64编码的字符串进行解码还原成byte数组 |
static void |
decode(String s,
ByteArrayOutputStream bos)
|
static String |
encode(byte[] data)
把byte数组进行base64编码,变成字符串 |
static StringBuffer |
encode(byte[] data,
int start,
int len,
StringBuffer buf)
Encodes the part of the given byte array denoted by start and len to the Base64 format. |
static boolean |
needBase64(String s)
|
从类 java.lang.Object 继承的方法 |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
构造方法详细信息 |
---|
public Base64()
方法详细信息 |
---|
public static String encode(byte[] data)
data
- byte数组
public static StringBuffer encode(byte[] data, int start, int len, StringBuffer buf)
public static int decode(char c, int key)
public static byte[] decode(String s)
s
- 已经经过base64编码的字符串
public static void decode(String s, ByteArrayOutputStream bos)
public static boolean needBase64(String s)
|
||||||||||
上一个类 下一个类 | 框架 无框架 | |||||||||
摘要: 嵌套 | 字段 | 构造方法 | 方法 | 详细信息: 字段 | 构造方法 | 方法 |