程序包 dev.utils.common

类 EncodeUtils

java.lang.Object
dev.utils.common.EncodeUtils

public final class EncodeUtils extends Object
detail: 编码工具类
  • 方法详细资料

    • base64Encode

      public static byte[] base64Encode(String input)
      Base64 编码
      参数:
      input - 待处理数据
      返回:
      Base64 编码后的 byte[]
    • base64Encode

      public static byte[] base64Encode(String input, int flags)
      Base64 编码
      参数:
      input - 待处理数据
      flags - Base64 编解码 flags
      返回:
      Base64 编码后的 byte[]
    • base64Encode

      public static byte[] base64Encode(byte[] input)
      Base64 编码
      参数:
      input - 待处理数据
      返回:
      Base64 编码后的 byte[]
    • base64Encode

      public static byte[] base64Encode(byte[] input, int flags)
      Base64 编码
      参数:
      input - 待处理数据
      flags - Base64 编解码 flags
      返回:
      Base64 编码后的 byte[]
    • base64EncodeToString

      public static String base64EncodeToString(String input)
      Base64 编码
      参数:
      input - 待处理数据
      返回:
      Base64 编码后的 byte[] 转 String
    • base64EncodeToString

      public static String base64EncodeToString(String input, int flags)
      Base64 编码
      参数:
      input - 待处理数据
      flags - Base64 编解码 flags
      返回:
      Base64 编码后的 byte[] 转 String
    • base64EncodeToString

      public static String base64EncodeToString(byte[] input)
      Base64 编码
      参数:
      input - 待处理数据
      返回:
      Base64 编码后的 byte[] 转 String
    • base64EncodeToString

      public static String base64EncodeToString(byte[] input, int flags)
      Base64 编码
      参数:
      input - 待处理数据
      flags - Base64 编解码 flags
      返回:
      Base64 编码后的 byte[] 转 String
    • base64Decode

      public static byte[] base64Decode(String input)
      Base64 解码
      参数:
      input - 待处理数据
      返回:
      Base64 解码后的 byte[]
    • base64Decode

      public static byte[] base64Decode(String input, int flags)
      Base64 解码
      参数:
      input - 待处理数据
      flags - Base64 编解码 flags
      返回:
      Base64 解码后的 byte[]
    • base64Decode

      public static byte[] base64Decode(byte[] input)
      Base64 解码
      参数:
      input - 待处理数据
      返回:
      Base64 解码后的 byte[]
    • base64Decode

      public static byte[] base64Decode(byte[] input, int flags)
      Base64 解码
      参数:
      input - 待处理数据
      flags - Base64 编解码 flags
      返回:
      Base64 解码后的 byte[]
    • base64DecodeToString

      public static String base64DecodeToString(String input)
      Base64 解码
      参数:
      input - 待处理数据
      返回:
      Base64 解码后的 byte[] 转 String
    • base64DecodeToString

      public static String base64DecodeToString(String input, int flags)
      Base64 解码
      参数:
      input - 待处理数据
      flags - Base64 编解码 flags
      返回:
      Base64 解码后的 byte[] 转 String
    • base64DecodeToString

      public static String base64DecodeToString(byte[] input)
      Base64 解码
      参数:
      input - 待处理数据
      返回:
      Base64 解码后的 byte[] 转 String
    • base64DecodeToString

      public static String base64DecodeToString(byte[] input, int flags)
      Base64 解码
      参数:
      input - 待处理数据
      flags - Base64 编解码 flags
      返回:
      Base64 解码后的 byte[] 转 String
    • htmlEncode

      public static String htmlEncode(CharSequence input)
      Html 字符串编码
      参数:
      input - 待处理数据
      返回:
      Html 编码后的数据