org.jiucai.appframework.common.encode
类 Base64

java.lang.Object
  继承者 org.jiucai.appframework.common.encode.Base64

public final class Base64
extends Object

Base64 编码解码类

 
 Copyright: Ma Bingyao 
 Version: 3.0.2
 LastModified: Apr 12, 2010
 This library is free.  You can redistribute it and/or modify it under GPL.
 
 完整的base64定义可见 RFC1421和 RFC2045。编码后的数据比原始数据略长,为原来的4/3。
 
 

作者:
Ma Bingyao

方法摘要
static byte[] decode(String str)
          已经编码的Base64字符串进行解码
static String encode(byte[] data)
          对字节数组进行编码
 
从类 java.lang.Object 继承的方法
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

方法详细信息

encode

public static final String encode(byte[] data)
对字节数组进行编码

参数:
data - 要编码的字节数组
返回:
编码后的字符串

decode

public static final byte[] decode(String str)
已经编码的Base64字符串进行解码

参数:
str - 已经编码的Base64字符串
返回:
解码后的字节数组


Copyright © 2013. All Rights Reserved.