资源简介
代码片段和文件信息
/**
*
*/
package com.gootrip.util;
/*
* base64 encoding and decoding.
* Copyright (C) 2001-2004 Stephen Ostermiller
* http://ostermiller.org/contact.pl?regarding=Java+Utilities
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License or
* (at your option) any later version.
*
* This program 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 General Public License for more details.
*
* See COPYING.TXT for details.
*/
import java.io.*;
import gnu.getopt.*;
import java.text.MessageFormat;
import java.util.ResourceBundle;
import java.util.Locale;
/**
* Implements base64 encoding and decoding as defined by RFC 2045: “Multipurpose Internet
* Mail Extensions (MIME) Part One: Format of Internet Message Bodies“ page 23.
* More information about this class is available from * “http://ostermiller.org/utils/base64.html“>ostermiller.org.
*
*
* The base64 Content-Transfer-Encoding is designed to represent
* arbitrary sequences of octets in a form that need not be humanly
* readable. The encoding and decoding algorithms are simple but the
* encoded data are consistently only about 33 percent larger than the
* unencoded data. This encoding is virtually identical to the one used
* in Privacy Enhanced Mail (PEM) applications as defined in RFC 1421.
*
* A 65-character subset of US-ASCII is used enabling 6 bits to be
* represented per printable character. (The extra 65th character “=“
* is used to signify a special processing function.)
*
* NOTE: This subset has the important property that it is represented
* identically in all versions of ISO 646 including US-ASCII and all
* characters in the subset are also represented identically in all
* versions of EBCDIC. Other popular encodings such as the encoding
* used by the uuencode utility Macintosh binhex 4.0 [RFC-1741] and
* the base85 encoding specified as part of Level 2 Postscript do no
* share these properties and thus do not fulfill the portability
* requirements a binary transport encoding for mail must meet.
*
* The encoding process represents 24-bit groups of input bits as output
* strings of 4 encoded characters. Proceeding from left to right a
* 24-bit input group is formed by concatenating 3 8bit input groups.
* These 24 bits are then treated as 4 concatenated 6-bit groups each
* of which is translated into a single digit in the base64 alphabet.
* When encoding a bit stream via the base64 encoding the bit stream
* must be presumed to be ordered with the most-significant-bit first.
* That is the first bit in the stream will be
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
文件 57550 2007-03-19 16:05 Java常用工具类\27个java常用的工具类\ba
文件 1786 2007-03-20 16:45 Java常用工具类\27个java常用的工具类\ba
文件 1079 2007-03-09 15:33 Java常用工具类\27个java常用的工具类\CConst.java
文件 4529 2007-04-03 11:53 Java常用工具类\27个java常用的工具类\CharTools.java
文件 1161 2007-04-03 11:52 Java常用工具类\27个java常用的工具类\ConfigHelper.java
文件 1542 2007-03-26 17:11 Java常用工具类\27个java常用的工具类\Counter.java
文件 16320 2007-04-03 12:04 Java常用工具类\27个java常用的工具类\CTool.java
文件 10737 2007-03-21 14:06 Java常用工具类\27个java常用的工具类\DateHandler.java
文件 12252 2007-04-03 17:07 Java常用工具类\27个java常用的工具类\DateUtil.java
文件 6203 2007-03-26 17:12 Java常用工具类\27个java常用的工具类\DealString.java
文件 446 2006-12-18 13:37 Java常用工具类\27个java常用的工具类\DebugOut.java
文件 4611 2007-04-03 17:12 Java常用工具类\27个java常用的工具类\Dom4jHelper.java
文件 5754 2007-09-19 20:42 Java常用工具类\27个java常用的工具类\Escape.java
文件 13936 2007-03-19 10:48 Java常用工具类\27个java常用的工具类\ExecHelper.java
文件 4246 2007-03-20 16:54 Java常用工具类\27个java常用的工具类\FileHelper.java
文件 8434 2007-03-15 17:18 Java常用工具类\27个java常用的工具类\FileUploadUtil.java
文件 20165 2007-03-15 17:12 Java常用工具类\27个java常用的工具类\FileUtil.java
文件 2685 2013-05-18 12:51 Java常用工具类\27个java常用的工具类\ftp二进制与ascii传输方式区别.txt
文件 2239 2007-03-19 16:24 Java常用工具类\27个java常用的工具类\IPDeal.java
文件 15198 2007-03-09 15:45 Java常用工具类\27个java常用的工具类\Md5.java
文件 1711 2007-03-09 13:55 Java常用工具类\27个java常用的工具类\MD5Encrypt.java
文件 2877 2007-03-12 10:12 Java常用工具类\27个java常用的工具类\MyFileFilter.java
文件 2492 2007-04-03 12:20 Java常用工具类\27个java常用的工具类\PropsUtil.java
文件 4940 2007-04-03 14:15 Java常用工具类\27个java常用的工具类\RegExUtil.java
文件 1700 2007-03-21 14:05 Java常用工具类\27个java常用的工具类\SimpleConfig.java
文件 56840 2007-04-03 13:45 Java常用工具类\27个java常用的工具类\StringHelper.java
文件 1790 2007-03-22 17:32 Java常用工具类\27个java常用的工具类\ThumbnailGenerator.java
文件 5436 2007-03-22 17:31 Java常用工具类\27个java常用的工具类\UploadHelper.java
文件 2612 2008-07-19 09:13 Java常用工具类\databa
文件 12709 2013-05-20 08:27 Java常用工具类\Datetime\DateTools.java
............此处省略500个文件信息
- 上一篇:一款天气预报源码
- 下一篇:Android应用源码之智能农业
相关资源
- Professional Java Development with the Spring
- JAVA编写的医疗管理系统
- JavaEE struts2综合小案例
- javaweb大型项目——交易撮合系统
- 基于Java web开发的图书管理系统
- 纯Java编写的双色球分析选号软件
- swt人事管理系统.zip
- 基于Java的医院住院管理系统
- 基于JavaWeb的作业管理系统
- JAVA仿QQ聊天71357
- java毕业设计:简单Java教务管理系统
- java版植物资源管理系统
- Java最强混淆放破解利器Zelix KlassMast
- java swing中文帮助文档
- 点数据的核密度分析
- 摄影平台系统 java毕业设计
- Java讲义4thcodes.rar
- Java面试宝典2018-最全面试资料
- javaweb项目+设计模式单例模式,工厂模
- 网上招聘系统
- JavaWeb网上书城项目 界面简洁漂亮 功
- java实现QQ项目
- mysql-connector-java-8.0.17.zip
- java socket即时聊天工具 可发文件 实现
- 大学生就业系统-论文-文档
- 基于java的学生管理系统源码
- JavaWeb客户管理系统
- mysql-connector-java-8.0.11
- jsp的网上购物商城
- JspLibrary.zip
评论
共有 条评论