类 Base64

java.lang.Object
com.sh.javax.util.Base64

public class Base64 extends Object
A utility class to convert to and from base 64 encoding.
  • 构造器详细资料

    • Base64

      public Base64()
  • 方法详细资料

    • encode2

      public static String encode2(byte[] bytec)
    • encode2

      public static String encode2(String source)
    • encode2

      public static String encode2(String source, String charset)
    • encode

      public static String encode(byte[] bytec)
    • encode

      public static String encode(String source, String charset)
    • encode

      public static String encode(String source)
      Returns the base 64 encoded equivalent of a supplied string.
      参数:
      source - the string to encode
      返回:
      String
    • decode2

      public static String decode2(String str)
    • decode2

      public static String decode2(String str, String charset)
    • decode

      public static String decode(String source)
    • decode

      public static String decode(String source, String charset)
      Returns the plaintext equivalent of a base 64-encoded string.
      参数:
      source - a base 64 string (which must have a multiple of 4 characters)
      charset - String
      返回:
      String
    • main

      public static void main(String[] args)