资源简介
discuz_ucenter java版的api 含详细用法,并且已解决中文名字注册乱码的问题
代码片段和文件信息
/* ========================================================================
* JCommon : a free general purpose class library for the Java(tm) platform
* ========================================================================
*
* (C) Copyright 2000-2004 by object Refinery Limited and Contributors.
*
* Project Info: http://www.jfree.org/jcommon/index.html
*
* This library is free software; you can redistribute it and/or modify it under the terms
* of the GNU Lesser General Public License as published by the Free Software Foundation;
* either version 2.1 of the License or (at your option) any later version.
*
* This library is distributed in the hope that it will be useful but WITHOUT ANY WARRANTY;
* without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
* See the GNU Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public License along with this
* library; if not write to the Free Software Foundation Inc. 59 Temple Place Suite 330
* Boston MA 02111-1307 USA.
*
* [Java is a trademark or registered trademark of Sun Microsystems Inc.
* in the United States and other countries.]
*
* -------------------------------------
* AbstractElementDefinitionHandler.java
* -------------------------------------
* (C)opyright 2003 by Thomas Morgner and Contributors.
*
* Original Author: Kevin Kelley -
* 30718 Rd. 28 La Junta CO 81050 USA. //
*
* $Id: base64.javav 1.5 2004/01/01 23:59:29 mungady Exp $
*
* Changes
* -------------------------
* 23.09.2003 : Initial version
*
*/
package api.ucenter;
import java.io.BufferedInputStream;
import java.io.BufferedOutputStream;
import java.io.BufferedReader;
import java.io.BufferedWriter;
import java.io.ByteArrayOutputStream;
import java.io.CharArrayWriter;
import java.io.File;
import java.io.FileInputStream;
import java.io.FileOutputStream;
import java.io.FileReader;
import java.io.FileWriter;
import java.io.InputStream;
import java.io.OutputStream;
import java.io.Reader;
import java.io.Writer;
/**
* Provides encoding of raw bytes to base64-encoded characters and
* decoding of base64 characters to raw bytes.
* date: 06 August 1998
* modified: 14 February 2000
* modified: 22 September 2000
*
* @author Kevin Kelley (kelley@ruralnet.net)
* @version 1.3
*/
public class base64 {
/**
* returns an array of base64-encoded characters to represent the
* passed data array.
*
* @param data the array of bytes to encode
* @return base64-coded character array.
*/
public static char[] encode(byte[] data) {
char[] out = new char[((data.length + 2) / 3) * 4];
//
// 3 bytes encode to 4 chars. Output is always an even
// multiple of 4 char
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
目录 0 2014-01-27 10:44 discuz_ucenter_java\
目录 0 2014-01-27 10:42 discuz_ucenter_java\WebRoot\
目录 0 2014-01-27 10:42 discuz_ucenter_java\WebRoot\WEB-INF\
文件 738 2013-06-28 14:40 discuz_ucenter_java\WebRoot\WEB-INF\web.xm
文件 4218 2014-01-27 10:44 discuz_ucenter_java\readme.txt
目录 0 2014-01-27 10:42 discuz_ucenter_java\src\
目录 0 2014-01-27 10:42 discuz_ucenter_java\src\api\
目录 0 2014-01-27 11:00 discuz_ucenter_java\src\api\ucenter\
文件 11153 2013-06-28 11:33 discuz_ucenter_java\src\api\ucenter\ba
文件 18085 2014-01-27 10:57 discuz_ucenter_java\src\api\ucenter\Client.java
文件 1632 2014-01-27 11:00 discuz_ucenter_java\src\api\ucenter\MessageDigestTest.java
文件 2825 2014-01-27 10:57 discuz_ucenter_java\src\api\ucenter\PHPFunctions.java
文件 3787 2014-01-27 11:04 discuz_ucenter_java\src\api\ucenter\Test.java
文件 6198 2014-01-27 10:55 discuz_ucenter_java\src\api\ucenter\UC.java
文件 994 2014-01-27 10:59 discuz_ucenter_java\src\api\ucenter\xm
文件 221 2013-06-28 15:54 discuz_ucenter_java\src\config.properties
评论
共有 条评论