程序包 cn.gybyt.util
类 Base64Util
- java.lang.Object
-
- cn.gybyt.util.Base64Util
-
public class Base64Util extends Object
Base64工具类
-
-
构造器概要
构造器 构造器 说明 Base64Util()
-
方法概要
所有方法 静态方法 具体方法 修饰符和类型 方法 说明 static byte[]base64DecodeByte(String base64)static Stringbase64DecodeStr(String base64)static byte[]encodeBase64Byte(byte[] content)static byte[]encodeBase64Byte(String content)static StringencodeBase64Str(byte[] content)static StringencodeBase64Str(String content)
-
-
-
方法详细资料
-
encodeBase64Str
public static String encodeBase64Str(String content)
- 参数:
content- 需要编码的字符串- 返回:
- 编码后的字符串
-
encodeBase64Byte
public static byte[] encodeBase64Byte(String content)
- 参数:
content- 需要编码的字符串- 返回:
- 编码后的字节数组
-
encodeBase64Str
public static String encodeBase64Str(byte[] content)
- 参数:
content- 需要编码的字节数组- 返回:
- 编码后的字符串
-
encodeBase64Byte
public static byte[] encodeBase64Byte(byte[] content)
- 参数:
content- 需要编码的字节数组- 返回:
- 编码后的字符串
-
base64DecodeStr
public static String base64DecodeStr(String base64)
- 参数:
base64- 需要解码的base64字符串- 返回:
- 解码后的字符串
-
base64DecodeByte
public static byte[] base64DecodeByte(String base64)
- 参数:
base64- 需要解码的base64字符串- 返回:
- 解码后的字节数组
-
-