资源简介
fastdfs_client.zip
代码片段和文件信息
package org.csource.common;
import java.io.IOException;
/**
* Freeware from:
* Roedy Green
* Canadian Mind Products
* #327 - 964 Heywood Avenue
* Victoria BC Canada V8V 2Y5
* tel:(250) 361-9093
* mailto:roedy@mindprod.com
*/
/**
* Encode arbitrary binary into printable ASCII using base64 encoding.
* very loosely based on the base64 Reader by
* Dr. Mark Thornton
* Optrak Distribution Software Ltd.
* http://www.optrak.co.uk
* and Kevin Kelley‘s http://www.ruralnet.net/~kelley/java/base64.java
*
* base64 is a way of encoding 8-bit characters using only ASCII printable
* characters similar to UUENCODE. UUENCODE includes a filename where base64 does not.
* The spec is described in RFC 2045. base64 is a scheme where
* 3 bytes are concatenated then split to form 4 groups of 6-bits each; and
* each 6-bits gets translated to an encoded printable ASCII character via a
* table lookup. An encoded string is therefore longer than the original by
* about 1/3. The “=“ character is used to pad the end. base64 is used
* among other things to encode the user:password string in an
* Authorization: header for HTTP. Don‘t confuse base64 with
* x-www-form-urlencoded which is handled by
* Java.net.URLEncoder.encode/decode
* If you don‘t like this code there is another implementation at http://www.ruffboy.com/download.htm
* Sun has an undocumented method called sun.misc.base64Encoder.encode.
* You could use hex simpler to code but not as compact.
*
* If you wanted to encode a giant file you could do it in large chunks that
* are even multiples of 3 bytes except for the last chunk and append the outputs.
*
* To encode a string rather than binary data java.net.URLEncoder may be better. See
* printable characters in the Java glossary for a discussion of the differences.
*
* version 1.4 2002 February 15 -- correct bugs with uneven line lengths
* allow you to configure line separator.
* now need base64 object and instance methods.
* new mailing address.
* version 1.3 2000 September 12 -- fix problems with estimating output length in encode
* version 1.2 2000 September 09 -- now handles decode as well.
* version 1.1 1999 December 04 -- more symmetrical encoding algorithm.
* more accurate StringBuffer allocation size.
* version 1.0 1999 December 03 -- posted in comp.lang.java.programmer.
* Futures Streams or files.
*/
public class base64
{
/**
* how we separate lines e.g. \n \r\n \r etc.
*/
private String lineSeparator = System.getProperty( “line.separator“ );
/**
* max chars per line excluding lineSeparator. A multiple of 4.
*/
private int lineLength = 72;
private char[] valueToChar = new char[64];
/**
* binary value encoded by a given letter of the alphabet 0..
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
目录 0 2017-07-22 16:56 fastdfs_client\
文件 1431 2017-07-22 16:56 fastdfs_client\.classpath
文件 566 2017-07-22 16:56 fastdfs_client\.project
目录 0 2017-07-22 16:56 fastdfs_client\.settings\
文件 243 2017-07-22 16:56 fastdfs_client\.settings\org.eclipse.jdt.core.prefs
文件 90 2017-07-22 16:56 fastdfs_client\.settings\org.eclipse.m2e.core.prefs
文件 361 2017-07-22 16:56 fastdfs_client\pom.xm
目录 0 2017-07-22 16:56 fastdfs_client\src\
目录 0 2017-07-22 16:56 fastdfs_client\src\main\
目录 0 2017-07-22 16:56 fastdfs_client\src\main\java\
目录 0 2017-07-22 16:56 fastdfs_client\src\main\java\org\
目录 0 2017-07-22 16:56 fastdfs_client\src\main\java\org\csource\
目录 0 2017-07-22 16:57 fastdfs_client\src\main\java\org\csource\common\
文件 16789 2017-07-22 16:57 fastdfs_client\src\main\java\org\csource\common\ba
文件 3721 2017-07-22 16:57 fastdfs_client\src\main\java\org\csource\common\IniFileReader.java
文件 502 2017-07-22 16:57 fastdfs_client\src\main\java\org\csource\common\MyException.java
文件 972 2017-07-22 16:57 fastdfs_client\src\main\java\org\csource\common\NameValuePair.java
目录 0 2017-07-22 16:57 fastdfs_client\src\main\java\org\csource\fastdfs\
文件 5122 2017-07-22 16:57 fastdfs_client\src\main\java\org\csource\fastdfs\ClientGlobal.java
文件 784 2017-07-22 16:56 fastdfs_client\src\main\java\org\csource\fastdfs\DownloadCallback.java
文件 1039 2017-07-22 16:56 fastdfs_client\src\main\java\org\csource\fastdfs\DownloadStream.java
文件 2649 2017-07-22 16:56 fastdfs_client\src\main\java\org\csource\fastdfs\FileInfo.java
文件 17377 2017-07-22 16:56 fastdfs_client\src\main\java\org\csource\fastdfs\ProtoCommon.java
文件 1135 2017-07-22 16:56 fastdfs_client\src\main\java\org\csource\fastdfs\ProtoStructDecoder.java
文件 1273 2017-07-22 16:56 fastdfs_client\src\main\java\org\csource\fastdfs\ServerInfo.java
文件 65791 2017-07-22 16:57 fastdfs_client\src\main\java\org\csource\fastdfs\StorageClient.java
文件 25319 2017-07-22 16:56 fastdfs_client\src\main\java\org\csource\fastdfs\StorageClient1.java
文件 1532 2017-07-22 16:56 fastdfs_client\src\main\java\org\csource\fastdfs\StorageServer.java
文件 1947 2017-07-22 16:56 fastdfs_client\src\main\java\org\csource\fastdfs\Structba
文件 7466 2017-07-22 16:56 fastdfs_client\src\main\java\org\csource\fastdfs\StructGroupStat.java
文件 34331 2017-07-22 16:56 fastdfs_client\src\main\java\org\csource\fastdfs\StructStorageStat.java
............此处省略82个文件信息
相关资源
- understand_scitools.txt
- numpymkl-1.12.1-py35-win_amd64百度网盘地址
- 354USB3.txt
- Halcon18软件链接;内附推荐的Halcon学习
- 上海理工大学《数据结构》期末试题
- 新版交易猫源码.zip
- BMS.zip
- 广工人工智能——决策树实验报告.
- zw_abc3240666-3453652-MyQQ_lide.zip
- 尚硅谷运维学科全套视频.txt
- 2019年西门子杯全国大学生工程设计文
- zw_xinhuojianke-10555810-PSO工具箱.zip
- zw_u013257257-9329537-工资系统.zip
- zw_shiyideliutang-10418313-v_f_control_system1
- zw_qq_26496915-8797777-acllib.zip
- zw_pixiuli-9947751-SLEP_package_4.1.zip
- zw_piaoen2-10978481-6a931d790e1e449e86a9e30086
- zw_liuqiwuhan-10171406-aaa.zip
- zw_wangjunfeibj-4044319-wyLogistics.zip
- zw_vnsoft-10755608-vnsoft_select_disabled.zip
- zw_u014306011-8895689-8533c095993c002f890bc45c
- zw_readhere-10496792-5G入门指南.zip
-
zw_qq_43189738-10871297-unti
tled5.zip - zw_qq_40428630-10566924-仿真K热电偶改变抬
- zw_qq_36868319-10764167-寻迹传感器模块T
- zw_qq_15051671-7285975-VVVF.zip
- zw_gohay1-940263-Bus.zip
- zw_weixin_44605584-10980840-RSFCL.zip
- zw_w1152715961-10124916-trac_light.zip
- zw_shelden_-11057537-geebinfmodifiedbyzz.zip
评论
共有 条评论