org.logicalcobwebs.xxtea
类 Base64

java.lang.Object
  继承者 org.logicalcobwebs.xxtea.Base64

public final class Base64
extends Object


构造方法摘要
Base64()
           
 
方法摘要
static byte[] Base64ToByte(String str)
          将base64编码的数据解码成原始数据
static boolean Base64ToFile(File file, String data)
           
static String Base64ToString(String str)
           
static String ByteToBase64(byte[] data)
           
static String FileToBase64(File file)
           
static String FileToBase64(String path)
           
static String StringToBase64(String data)
           
 
从类 java.lang.Object 继承的方法
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

构造方法详细信息

Base64

public Base64()
方法详细信息

StringToBase64

public static String StringToBase64(String data)

FileToBase64

public static String FileToBase64(String path)

Base64ToFile

public static boolean Base64ToFile(File file,
                                   String data)

FileToBase64

public static String FileToBase64(File file)

ByteToBase64

public static String ByteToBase64(byte[] data)

Base64ToString

public static String Base64ToString(String str)
                             throws Exception
抛出:
Exception

Base64ToByte

public static byte[] Base64ToByte(String str)
                           throws Exception
将base64编码的数据解码成原始数据

抛出:
Exception


Copyright © 2014. All rights reserved.