类 Base64Utils

java.lang.Object
gu.sql2java.store.Base64Utils

public class Base64Utils extends Object
copy from org.apache.axiom.util.base64.Base64Utils(axiom-api-1.2.13.jar)
  • 构造器概要

    构造器
    构造器
    说明
     
  • 方法概要

    修饰符和类型
    方法
    说明
    static byte[]
    decode(char[] data, int off, int len)
     
    static void
    decode(char[] data, int off, int len, OutputStream ostream)
     
    static byte[]
    decode(String data)
     
    static void
    decode(String data, OutputStream ostream)
     
    static String
    encode(byte[] data)
    Returns base64 representation of specified byte array.
    static String
    encode(byte[] data, int off, int len)
    Returns base64 representation of specified byte array.
    static void
    encode(byte[] data, int off, int len, OutputStream ostream)
    Outputs base64 representation of the specified byte array to a byte stream.
    static void
    encode(byte[] data, int off, int len, Writer writer)
    Outputs base64 representation of the specified byte array to a character stream.
    static void
    encode(byte[] data, int off, int len, StringBuffer buffer)
    Outputs base64 representation of the specified byte array to the specified String Buffer
    static boolean
    checks input string for invalid Base64 characters

    从类继承的方法 java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • 构造器详细资料

    • Base64Utils

      public Base64Utils()
  • 方法详细资料

    • decode

      public static byte[] decode(char[] data, int off, int len)
    • decode

      public static byte[] decode(String data)
    • isValidBase64Encoding

      public static boolean isValidBase64Encoding(String data)
      checks input string for invalid Base64 characters
      参数:
      data -
      返回:
      true, if String contains only valid Base64 characters. false, otherwise
    • decode

      public static void decode(char[] data, int off, int len, OutputStream ostream) throws IOException
      抛出:
      IOException
    • decode

      public static void decode(String data, OutputStream ostream) throws IOException
      抛出:
      IOException
    • encode

      public static String encode(byte[] data)
      Returns base64 representation of specified byte array.
    • encode

      public static String encode(byte[] data, int off, int len)
      Returns base64 representation of specified byte array.
    • encode

      public static void encode(byte[] data, int off, int len, StringBuffer buffer)
      Outputs base64 representation of the specified byte array to the specified String Buffer
    • encode

      public static void encode(byte[] data, int off, int len, OutputStream ostream) throws IOException
      Outputs base64 representation of the specified byte array to a byte stream.
      抛出:
      IOException
    • encode

      public static void encode(byte[] data, int off, int len, Writer writer) throws IOException
      Outputs base64 representation of the specified byte array to a character stream.
      抛出:
      IOException