com.alibaba.druid.util
类 Base64

java.lang.Object
  继承者 com.alibaba.druid.util.Base64

public class Base64
extends Object

Static methods for translating Base64 encoded strings to byte arrays and vice-versa.

从以下版本开始:
1.4
版本:
%I%, %G%
作者:
Josh Bloch
另请参见:
Preferences

构造方法摘要
Base64()
           
 
方法摘要
static byte[] altBase64ToByteArray(String s)
          Translates the specified "alternate representation" Base64 string into a byte array.
static byte[] base64ToByteArray(String s)
          Translates the specified Base64 string (as per Preferences.get(byte[])) into a byte array.
static String byteArrayToAltBase64(byte[] a)
          Translates the specified byte array into an "alternate representation" Base64 string.
static String byteArrayToBase64(byte[] a)
          Translates the specified byte array into a Base64 string as per Preferences.put(byte[]).
 
从类 java.lang.Object 继承的方法
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

构造方法详细信息

Base64

public Base64()
方法详细信息

byteArrayToBase64

public static String byteArrayToBase64(byte[] a)
Translates the specified byte array into a Base64 string as per Preferences.put(byte[]).


byteArrayToAltBase64

public static String byteArrayToAltBase64(byte[] a)
Translates the specified byte array into an "alternate representation" Base64 string. This non-standard variant uses an alphabet that does not contain the uppercase alphabetic characters, which makes it suitable for use in situations where case-folding occurs.


base64ToByteArray

public static byte[] base64ToByteArray(String s)
Translates the specified Base64 string (as per Preferences.get(byte[])) into a byte array.


altBase64ToByteArray

public static byte[] altBase64ToByteArray(String s)
Translates the specified "alternate representation" Base64 string into a byte array.



Copyright © 2013-2014 Alibaba Group. All Rights Reserved.