程序包 cn.gybyt.util

类 Base64Util


  • public class Base64Util
    extends Object
    Base64工具类
    • 构造器详细资料

      • Base64Util

        public Base64Util()
    • 方法详细资料

      • 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字符串
        返回:
        解码后的字节数组