﻿<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:trackback="http://madskills.com/public/xml/rss/module/trackback/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/"><channel><title>BlogJava-CrackRen-随笔分类-Java</title><link>http://www.blogjava.net/CrackRen/category/49911.html</link><description /><language>zh-cn</language><lastBuildDate>Sat, 20 Oct 2012 20:37:06 GMT</lastBuildDate><pubDate>Sat, 20 Oct 2012 20:37:06 GMT</pubDate><ttl>60</ttl><item><title>Commons-IO 功能简介</title><link>http://www.blogjava.net/CrackRen/archive/2012/10/20/389912.html</link><dc:creator>CrackRen</dc:creator><author>CrackRen</author><pubDate>Sat, 20 Oct 2012 04:06:00 GMT</pubDate><guid>http://www.blogjava.net/CrackRen/archive/2012/10/20/389912.html</guid><wfw:comment>http://www.blogjava.net/CrackRen/comments/389912.html</wfw:comment><comments>http://www.blogjava.net/CrackRen/archive/2012/10/20/389912.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.blogjava.net/CrackRen/comments/commentRss/389912.html</wfw:commentRss><trackback:ping>http://www.blogjava.net/CrackRen/services/trackbacks/389912.html</trackback:ping><description><![CDATA[<br /> <div id="xunlei_com_thunder_helper_plugin_d462f475-c18e-46be-bd10-327458d045bd"></div><div id="blog_content" class="blog_content">
    <p><span style="color: #383838; font-size: 14px; line-height: 24px; text-align: left;">Class FileUtils</span><br style="padding: 0px; margin: 0px; color: #383838; font-size: 14px; line-height: 24px; text-align: left;" /><span style="color: #383838; font-size: 14px; line-height: 24px; text-align: left;">此类包含了一般的通用文件操作工具。</span><br style="padding: 0px; margin: 0px; color: #383838; font-size: 14px; line-height: 24px; text-align: left;" /><span style="color: #383838; font-size: 14px; line-height: 24px; text-align: left;">&nbsp;&nbsp;&nbsp; &#9679; 读、写文件</span><br style="padding: 0px; margin: 0px; color: #383838; font-size: 14px; line-height: 24px; text-align: left;" /><span style="color: #383838; font-size: 14px; line-height: 24px; text-align: left;">&nbsp;&nbsp;&nbsp; &#9679; 创建一个目录，如果其上级的各级父目录不存在，也会创建它们</span><br style="padding: 0px; margin: 0px; color: #383838; font-size: 14px; line-height: 24px; text-align: left;" /><span style="color: #383838; font-size: 14px; line-height: 24px; text-align: left;">&nbsp;&nbsp;&nbsp; &#9679; 拷贝文件和目录</span><br style="padding: 0px; margin: 0px; color: #383838; font-size: 14px; line-height: 24px; text-align: left;" /><span style="color: #383838; font-size: 14px; line-height: 24px; text-align: left;">&nbsp;&nbsp;&nbsp; &#9679; 删除文件和目录</span><br style="padding: 0px; margin: 0px; color: #383838; font-size: 14px; line-height: 24px; text-align: left;" /><span style="color: #383838; font-size: 14px; line-height: 24px; text-align: left;">&nbsp;&nbsp;&nbsp; &#9679; 将URL转换成文件</span><br style="padding: 0px; margin: 0px; color: #383838; font-size: 14px; line-height: 24px; text-align: left;" /><span style="color: #383838; font-size: 14px; line-height: 24px; text-align: left;">&nbsp;&nbsp;&nbsp; &#9679; 通过过滤器或者扩展名列出文件</span><br style="padding: 0px; margin: 0px; color: #383838; font-size: 14px; line-height: 24px; text-align: left;" /><span style="color: #383838; font-size: 14px; line-height: 24px; text-align: left;">&nbsp;&nbsp;&nbsp; &#9679; 比较文件内容</span><br style="padding: 0px; margin: 0px; color: #383838; font-size: 14px; line-height: 24px; text-align: left;" /><span style="color: #383838; font-size: 14px; line-height: 24px; text-align: left;">&nbsp;&nbsp;&nbsp; &#9679; 修改文件最后修改日期</span><br style="padding: 0px; margin: 0px; color: #383838; font-size: 14px; line-height: 24px; text-align: left;" /><span style="color: #383838; font-size: 14px; line-height: 24px; text-align: left;">&nbsp;&nbsp;&nbsp; &#9679; 计算校验和</span><br style="padding: 0px; margin: 0px; color: #383838; font-size: 14px; line-height: 24px; text-align: left;" /><span style="color: #383838; font-size: 14px; line-height: 24px; text-align: left;">累了，去读意优休息一下下,QQ空间，美文，非主流，网络日记，搞笑短信，祝福短信，热门短信，有意思啊&nbsp;&nbsp;&nbsp;</span><br style="padding: 0px; margin: 0px; color: #383838; font-size: 14px; line-height: 24px; text-align: left;" /><span style="color: #383838; font-size: 14px; line-height: 24px; text-align: left;">Class IOUtils</span><br style="padding: 0px; margin: 0px; color: #383838; font-size: 14px; line-height: 24px; text-align: left;" /><span style="color: #383838; font-size: 14px; line-height: 24px; text-align: left;">此类包含了一般的IO流操作工具。</span><br style="padding: 0px; margin: 0px; color: #383838; font-size: 14px; line-height: 24px; text-align: left;" /><br style="padding: 0px; margin: 0px; color: #383838; font-size: 14px; line-height: 24px; text-align: left;" /><span style="color: #383838; font-size: 14px; line-height: 24px; text-align: left;">&nbsp;&nbsp;&nbsp; &#9679; closeQuietly &#8211; 忽略 nulls和错误而关闭一个流</span><br style="padding: 0px; margin: 0px; color: #383838; font-size: 14px; line-height: 24px; text-align: left;" /><span style="color: #383838; font-size: 14px; line-height: 24px; text-align: left;">&nbsp;&nbsp;&nbsp; &#9679; toXxx/read &#8211; 这些类从一个流读取数据</span><br style="padding: 0px; margin: 0px; color: #383838; font-size: 14px; line-height: 24px; text-align: left;" /><span style="color: #383838; font-size: 14px; line-height: 24px; text-align: left;">&nbsp;&nbsp;&nbsp; &#9679; write &#8211; 这些方法写数据到一个流</span><br style="padding: 0px; margin: 0px; color: #383838; font-size: 14px; line-height: 24px; text-align: left;" /><span style="color: #383838; font-size: 14px; line-height: 24px; text-align: left;">&nbsp;&nbsp;&nbsp; &#9679; copy &#8211; 这些方法从一个流到另一个流拷贝数据</span><br style="padding: 0px; margin: 0px; color: #383838; font-size: 14px; line-height: 24px; text-align: left;" /><span style="color: #383838; font-size: 14px; line-height: 24px; text-align: left;">&nbsp;&nbsp;&nbsp; &#9679; contentEquals &#8211; 这些方法比较两个流的数据</span><br style="padding: 0px; margin: 0px; color: #383838; font-size: 14px; line-height: 24px; text-align: left;" /><br style="padding: 0px; margin: 0px; color: #383838; font-size: 14px; line-height: 24px; text-align: left;" /><span style="color: #383838; font-size: 14px; line-height: 24px; text-align: left;">Class FilenameUtils</span><br style="padding: 0px; margin: 0px; color: #383838; font-size: 14px; line-height: 24px; text-align: left;" /><span style="color: #383838; font-size: 14px; line-height: 24px; text-align: left;">此类包含了文件和路径的操作工具。</span><br style="padding: 0px; margin: 0px; color: #383838; font-size: 14px; line-height: 24px; text-align: left;" /><br style="padding: 0px; margin: 0px; color: #383838; font-size: 14px; line-height: 24px; text-align: left;" /><span style="color: #383838; font-size: 14px; line-height: 24px; text-align: left;">当你将在Windows下开发的Java程序转移到Unix系统时，你可能遇到文件路径的问题，这个类的目标帮你解决这个问题。注意: 你完全可以不用这个类，而使用JDK提供的两个构造参数的File类，File(File,String)。</span><br style="padding: 0px; margin: 0px; color: #383838; font-size: 14px; line-height: 24px; text-align: left;" /><br style="padding: 0px; margin: 0px; color: #383838; font-size: 14px; line-height: 24px; text-align: left;" /><span style="color: #383838; font-size: 14px; line-height: 24px; text-align: left;">大多数方法识别两个分隔符(/ 和 \), 和两个前缀集合。</span><br style="padding: 0px; margin: 0px; color: #383838; font-size: 14px; line-height: 24px; text-align: left;" /><br style="padding: 0px; margin: 0px; color: #383838; font-size: 14px; line-height: 24px; text-align: left;" /><span style="color: #383838; font-size: 14px; line-height: 24px; text-align: left;">这个类奖一个文件名称定义成六部分(例如 C:\dev\project\file.txt):</span><br style="padding: 0px; margin: 0px; color: #383838; font-size: 14px; line-height: 24px; text-align: left;" /><br style="padding: 0px; margin: 0px; color: #383838; font-size: 14px; line-height: 24px; text-align: left;" /><span style="color: #383838; font-size: 14px; line-height: 24px; text-align: left;">&nbsp;&nbsp;&nbsp; &#9679; 前缀 &#8211; C:\</span><br style="padding: 0px; margin: 0px; color: #383838; font-size: 14px; line-height: 24px; text-align: left;" /><span style="color: #383838; font-size: 14px; line-height: 24px; text-align: left;">&nbsp;&nbsp;&nbsp; &#9679; 路径 &#8211; dev\project\</span><br style="padding: 0px; margin: 0px; color: #383838; font-size: 14px; line-height: 24px; text-align: left;" /><span style="color: #383838; font-size: 14px; line-height: 24px; text-align: left;">&nbsp;&nbsp;&nbsp; &#9679; 全路径 &#8211; C:\dev\project\</span><br style="padding: 0px; margin: 0px; color: #383838; font-size: 14px; line-height: 24px; text-align: left;" /><span style="color: #383838; font-size: 14px; line-height: 24px; text-align: left;">&nbsp;&nbsp;&nbsp; &#9679; 文件名称 &#8211; file.txt</span><br style="padding: 0px; margin: 0px; color: #383838; font-size: 14px; line-height: 24px; text-align: left;" /><span style="color: #383838; font-size: 14px; line-height: 24px; text-align: left;">&nbsp;&nbsp;&nbsp; &#9679; 基本名称 &#8211; file</span><br style="padding: 0px; margin: 0px; color: #383838; font-size: 14px; line-height: 24px; text-align: left;" /><span style="color: #383838; font-size: 14px; line-height: 24px; text-align: left;">&nbsp;&nbsp;&nbsp; &#9679; 扩展名 &#8211; txt</span><br style="padding: 0px; margin: 0px; color: #383838; font-size: 14px; line-height: 24px; text-align: left;" /><br style="padding: 0px; margin: 0px; color: #383838; font-size: 14px; line-height: 24px; text-align: left;" /><span style="color: #383838; font-size: 14px; line-height: 24px; text-align: left;">这个类能够处理以分隔符结尾的目录文件。如果你忽略了最后一个分隔符，它也能识别其是文件还是目录。这个类仅支持UNIX和Windows样式的名称，前缀匹配方式如下：</span><br style="padding: 0px; margin: 0px; color: #383838; font-size: 14px; line-height: 24px; text-align: left;" /><br style="padding: 0px; margin: 0px; color: #383838; font-size: 14px; line-height: 24px; text-align: left;" /><span style="color: #383838; font-size: 14px; line-height: 24px; text-align: left;">Windows:</span><br style="padding: 0px; margin: 0px; color: #383838; font-size: 14px; line-height: 24px; text-align: left;" /><span style="color: #383838; font-size: 14px; line-height: 24px; text-align: left;">a\b\c.txt&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &#8211;&gt; ""&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &#8211;&gt; 相对</span><br style="padding: 0px; margin: 0px; color: #383838; font-size: 14px; line-height: 24px; text-align: left;" /><span style="color: #383838; font-size: 14px; line-height: 24px; text-align: left;">\a\b\c.txt&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &#8211;&gt; "\"&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &#8211;&gt; 当前的绝对驱动器</span><br style="padding: 0px; margin: 0px; color: #383838; font-size: 14px; line-height: 24px; text-align: left;" /><span style="color: #383838; font-size: 14px; line-height: 24px; text-align: left;">C:a\b\c.txt&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &#8211;&gt; "C:"&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &#8211;&gt; 相对的驱动器</span><br style="padding: 0px; margin: 0px; color: #383838; font-size: 14px; line-height: 24px; text-align: left;" /><span style="color: #383838; font-size: 14px; line-height: 24px; text-align: left;">C:\a\b\c.txt&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &#8211;&gt; "C:\"&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &#8211;&gt; 绝对</span><br style="padding: 0px; margin: 0px; color: #383838; font-size: 14px; line-height: 24px; text-align: left;" /><span style="color: #383838; font-size: 14px; line-height: 24px; text-align: left;">\\server\a\b\c.txt&nbsp; &#8211;&gt; "\\server\" &#8211;&gt; UNC</span><br style="padding: 0px; margin: 0px; color: #383838; font-size: 14px; line-height: 24px; text-align: left;" /><br style="padding: 0px; margin: 0px; color: #383838; font-size: 14px; line-height: 24px; text-align: left;" /><span style="color: #383838; font-size: 14px; line-height: 24px; text-align: left;">Unix:</span><br style="padding: 0px; margin: 0px; color: #383838; font-size: 14px; line-height: 24px; text-align: left;" /><span style="color: #383838; font-size: 14px; line-height: 24px; text-align: left;">a/b/c.txt&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &#8211;&gt; ""&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &#8211;&gt; 相对</span><br style="padding: 0px; margin: 0px; color: #383838; font-size: 14px; line-height: 24px; text-align: left;" /><span style="color: #383838; font-size: 14px; line-height: 24px; text-align: left;">/a/b/c.txt&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &#8211;&gt; "/"&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &#8211;&gt; 绝对</span><br style="padding: 0px; margin: 0px; color: #383838; font-size: 14px; line-height: 24px; text-align: left;" /><span style="color: #383838; font-size: 14px; line-height: 24px; text-align: left;">~/a/b/c.txt&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &#8211;&gt; "~/"&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &#8211;&gt; 当前用户</span><br style="padding: 0px; margin: 0px; color: #383838; font-size: 14px; line-height: 24px; text-align: left;" /><span style="color: #383838; font-size: 14px; line-height: 24px; text-align: left;">~&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &#8211;&gt; "~/"&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &#8211;&gt; 当前用户 (slash added)</span><br style="padding: 0px; margin: 0px; color: #383838; font-size: 14px; line-height: 24px; text-align: left;" /><span style="color: #383838; font-size: 14px; line-height: 24px; text-align: left;">~user/a/b/c.txt&nbsp;&nbsp;&nbsp;&nbsp; &#8211;&gt; "~user/"&nbsp;&nbsp;&nbsp; &#8211;&gt; 命名用户</span><br style="padding: 0px; margin: 0px; color: #383838; font-size: 14px; line-height: 24px; text-align: left;" /><span style="color: #383838; font-size: 14px; line-height: 24px; text-align: left;">~user&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &#8211;&gt; "~user/"&nbsp;&nbsp;&nbsp; &#8211;&gt; 命名用户 (slash added)</span><br style="padding: 0px; margin: 0px; color: #383838; font-size: 14px; line-height: 24px; text-align: left;" /><span style="color: #383838; font-size: 14px; line-height: 24px; text-align: left;">&nbsp;&nbsp;&nbsp;</span><br style="padding: 0px; margin: 0px; color: #383838; font-size: 14px; line-height: 24px; text-align: left;" /><span style="color: #383838; font-size: 14px; line-height: 24px; text-align: left;">org.apache.commons.io.filefilter&nbsp;</span><br style="padding: 0px; margin: 0px; color: #383838; font-size: 14px; line-height: 24px; text-align: left;" /><span style="color: #383838; font-size: 14px; line-height: 24px; text-align: left;">此包中包含了大量的文件名称过滤器。</span><br style="padding: 0px; margin: 0px; color: #383838; font-size: 14px; line-height: 24px; text-align: left;" /><span style="color: #383838; font-size: 14px; line-height: 24px; text-align: left;">DirectoryFilter&nbsp; 仅接受目录</span><br style="padding: 0px; margin: 0px; color: #383838; font-size: 14px; line-height: 24px; text-align: left;" /><span style="color: #383838; font-size: 14px; line-height: 24px; text-align: left;">PrefixFileFilter 基于前缀</span><br style="padding: 0px; margin: 0px; color: #383838; font-size: 14px; line-height: 24px; text-align: left;" /><span style="color: #383838; font-size: 14px; line-height: 24px; text-align: left;">SuffixFileFilter 基于后缀</span><br style="padding: 0px; margin: 0px; color: #383838; font-size: 14px; line-height: 24px; text-align: left;" /><span style="color: #383838; font-size: 14px; line-height: 24px; text-align: left;">NameFileFilter 基于文件名称</span><br style="padding: 0px; margin: 0px; color: #383838; font-size: 14px; line-height: 24px; text-align: left;" /><span style="color: #383838; font-size: 14px; line-height: 24px; text-align: left;">WildcardFileFilter 基于通配符</span><br style="padding: 0px; margin: 0px; color: #383838; font-size: 14px; line-height: 24px; text-align: left;" /><span style="color: #383838; font-size: 14px; line-height: 24px; text-align: left;">AgeFileFilter 基于最后修改时间</span><br style="padding: 0px; margin: 0px; color: #383838; font-size: 14px; line-height: 24px; text-align: left;" /><span style="color: #383838; font-size: 14px; line-height: 24px; text-align: left;">SizeFileFilter 基于文件尺寸</span></p>
<p>&nbsp;</p>
<p>下载地址：</p>
<p><a href="http://commons.apache.org/io/">http://commons.apache.org/io/</a>
</p>
  </div><img src ="http://www.blogjava.net/CrackRen/aggbug/389912.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.blogjava.net/CrackRen/" target="_blank">CrackRen</a> 2012-10-20 12:06 <a href="http://www.blogjava.net/CrackRen/archive/2012/10/20/389912.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>JSplitPane 默认展开/折叠分隔条 </title><link>http://www.blogjava.net/CrackRen/archive/2011/11/24/364716.html</link><dc:creator>CrackRen</dc:creator><author>CrackRen</author><pubDate>Thu, 24 Nov 2011 04:02:00 GMT</pubDate><guid>http://www.blogjava.net/CrackRen/archive/2011/11/24/364716.html</guid><wfw:comment>http://www.blogjava.net/CrackRen/comments/364716.html</wfw:comment><comments>http://www.blogjava.net/CrackRen/archive/2011/11/24/364716.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.blogjava.net/CrackRen/comments/commentRss/364716.html</wfw:commentRss><trackback:ping>http://www.blogjava.net/CrackRen/services/trackbacks/364716.html</trackback:ping><description><![CDATA[<div><p style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; font-family: Helvetica, Tahoma, Arial, sans-serif; line-height: 25px; text-align: left; background-color: #ffffff; "><span style="font-size: 14pt; font-family: Verdana; ">当使用JSplitpane分隔面板时</span></p><p style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; font-family: Helvetica, Tahoma, Arial, sans-serif; line-height: 25px; text-align: left; background-color: #ffffff; "><span style="font-size: 14pt; font-family: Verdana; ">可以通过 splitPaneMain.setOneTouchExpandable(true);<br /></span></p><div><span style="font-size: 14pt; font-family: Verdana; ">设置&nbsp;oneTouchExpandable&nbsp;属性的值，要使&nbsp;JSplitPane&nbsp;在分隔条上提供一个 UI 小部件来快速展开/折叠分隔条</span></div><p>&nbsp;</p><p style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; font-family: Helvetica, Tahoma, Arial, sans-serif; line-height: 25px; text-align: left; background-color: #ffffff; "></p><p style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; font-family: Helvetica, Tahoma, Arial, sans-serif; line-height: 25px; text-align: left; background-color: #ffffff; "><div><span style="line-height: normal; font-family: Arial; font-size: 14pt; ">但是如果要初始化时默认就折叠一边的话 网上搜索添加下面几句就可以了，但是验证了下只有在一边没加控件时才行</span></div></p><p style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; font-family: Helvetica, Tahoma, Arial, sans-serif; line-height: 25px; text-align: left; background-color: #ffffff; "></p><pre prettyprint"="" style="line-height: 25px; text-align: left; background-color: #ffffff; "><code style="font-family: Consolas, Menlo, Monaco, 'Lucida Console', 'Liberation Mono', 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Courier New', monospace, serif; font-size: 1em; vertical-align: baseline; background-color: #eeeeee; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><span style="font-size: small; "><span style="vertical-align: baseline; background-color: transparent; color: gray; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font-family: 'Comic Sans MS'; font-size: 14pt; ">// Hide left or top</span><span style="vertical-align: baseline; background-color: transparent; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "> <br /></span></span><span style="line-height: normal; white-space: normal; background-color: #ffffff; font-family: 'Comic Sans MS'; font-size: 14pt; ">splitPaneMain</span><span style="font-size: small; "><span style="vertical-align: baseline; background-color: transparent; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font-family: 'Comic Sans MS'; font-size: 14pt; ">.</span><span style="vertical-align: baseline; background-color: transparent; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font-family: 'Comic Sans MS'; font-size: 14pt; ">getLeftComponent</span><span style="vertical-align: baseline; background-color: transparent; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font-family: 'Comic Sans MS'; font-size: 14pt; ">().</span><span style="vertical-align: baseline; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font-family: 'Comic Sans MS'; font-size: 14pt; background-color: transparent; ">setMinimumSize</span><span style="vertical-align: baseline; background-color: transparent; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font-family: 'Comic Sans MS'; font-size: 14pt; ">(</span><span style="vertical-align: baseline; background-color: transparent; color: #00008b; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font-family: 'Comic Sans MS'; font-size: 14pt; ">new</span> <span style="vertical-align: baseline; background-color: transparent; color: #2b91af; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font-family: 'Comic Sans MS'; font-size: 14pt; ">Dimension</span><span style="vertical-align: baseline; background-color: transparent; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font-family: 'Comic Sans MS'; font-size: 14pt; ">());</span><span style="vertical-align: baseline; background-color: transparent; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "> <br /></span></span><span style="line-height: normal; white-space: normal; background-color: #ffffff; font-family: 'Comic Sans MS'; font-size: 14pt; ">splitPaneMain</span><span style="font-size: small; "><span style="vertical-align: baseline; background-color: transparent; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font-family: 'Comic Sans MS'; font-size: 14pt; ">.</span><span style="vertical-align: baseline; background-color: transparent; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font-family: 'Comic Sans MS'; font-size: 14pt; ">setDividerLocation</span><span style="vertical-align: baseline; background-color: transparent; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font-family: 'Comic Sans MS'; font-size: 14pt; ">(</span><span style="vertical-align: baseline; background-color: transparent; color: #800000; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font-family: 'Comic Sans MS'; font-size: 14pt; ">0.0d</span><span style="vertical-align: baseline; background-color: transparent; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font-family: 'Comic Sans MS'; font-size: 14pt; ">);</span><span style="vertical-align: baseline; background-color: transparent; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">  <br /><br /></span><span style="vertical-align: baseline; background-color: transparent; color: gray; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font-family: 'Comic Sans MS'; font-size: 14pt; ">// Hide right or bottom</span><span style="vertical-align: baseline; background-color: transparent; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "> <br /></span></span><span style="line-height: normal; white-space: normal; background-color: #ffffff; font-family: 'Comic Sans MS'; font-size: 14pt; ">splitPaneMain</span><span style="font-size: small; "><span style="vertical-align: baseline; background-color: transparent; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font-family: 'Comic Sans MS'; font-size: 14pt; ">.</span><span style="vertical-align: baseline; background-color: transparent; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font-family: 'Comic Sans MS'; font-size: 14pt; ">getRightComponent</span><span style="vertical-align: baseline; background-color: transparent; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font-family: 'Comic Sans MS'; font-size: 14pt; ">().</span><span style="vertical-align: baseline; background-color: transparent; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font-family: 'Comic Sans MS'; font-size: 14pt; ">setMinimumSize</span><span style="vertical-align: baseline; background-color: transparent; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font-family: 'Comic Sans MS'; font-size: 14pt; ">(</span><span style="vertical-align: baseline; background-color: transparent; color: #00008b; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font-family: 'Comic Sans MS'; font-size: 14pt; ">new</span> <span style="vertical-align: baseline; background-color: transparent; color: #2b91af; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font-family: 'Comic Sans MS'; font-size: 14pt; ">Dimension</span><span style="vertical-align: baseline; background-color: transparent; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font-family: 'Comic Sans MS'; font-size: 14pt; ">());</span><span style="vertical-align: baseline; background-color: transparent; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "> <br /></span></span><span style="line-height: normal; white-space: normal; background-color: #ffffff; font-family: 'Comic Sans MS'; font-size: 14pt; ">splitPaneMain</span><span style="font-size: small; "><span style="vertical-align: baseline; background-color: transparent; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font-family: 'Comic Sans MS'; font-size: 14pt; ">.</span><span style="vertical-align: baseline; background-color: transparent; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font-family: 'Comic Sans MS'; font-size: 14pt; ">setDividerLocation</span><span style="vertical-align: baseline; background-color: transparent; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font-family: 'Comic Sans MS'; font-size: 14pt; ">(</span><span style="vertical-align: baseline; background-color: transparent; color: #800000; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font-family: 'Comic Sans MS'; font-size: 14pt; ">1.0d</span><span style="vertical-align: baseline; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; background-color: transparent; font-family: 'Comic Sans MS'; font-size: 14pt; ">);</span></span></code></pre></div><img src ="http://www.blogjava.net/CrackRen/aggbug/364716.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.blogjava.net/CrackRen/" target="_blank">CrackRen</a> 2011-11-24 12:02 <a href="http://www.blogjava.net/CrackRen/archive/2011/11/24/364716.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>MD5的使用</title><link>http://www.blogjava.net/CrackRen/archive/2011/10/25/362032.html</link><dc:creator>CrackRen</dc:creator><author>CrackRen</author><pubDate>Tue, 25 Oct 2011 09:37:00 GMT</pubDate><guid>http://www.blogjava.net/CrackRen/archive/2011/10/25/362032.html</guid><wfw:comment>http://www.blogjava.net/CrackRen/comments/362032.html</wfw:comment><comments>http://www.blogjava.net/CrackRen/archive/2011/10/25/362032.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.blogjava.net/CrackRen/comments/commentRss/362032.html</wfw:commentRss><trackback:ping>http://www.blogjava.net/CrackRen/services/trackbacks/362032.html</trackback:ping><description><![CDATA[写个工具把不同文件夹下的文件拷贝到一个文件夹下去，碰到格问题，需要考虑到生成唯一文件名，想来想去还是使用MD5计算吧<br /><br /><div><span style="font-size: 13px; background-color: #eeeeee; color: #0000ff; ">import</span><span style="font-size: 13px; background-color: #eeeeee; ">&nbsp;java.security.MessageDigest;<br /><br /></span><span style="font-size: 13px; background-color: #eeeeee; color: #008000; ">/**</span><span style="font-size: 13px; background-color: #eeeeee; color: #008000; "><br />&nbsp;*<br />&nbsp;*&nbsp;</span><span style="font-size: 13px; background-color: #eeeeee; color: #808080; ">@author</span><span style="font-size: 13px; background-color: #eeeeee; color: #008000; ">&nbsp;apple<br />&nbsp;</span><span style="font-size: 13px; background-color: #eeeeee; color: #008000; ">*/</span><span style="font-size: 13px; background-color: #eeeeee; "><br /></span><span style="font-size: 13px; background-color: #eeeeee; color: #0000ff; ">public</span>&nbsp;<span style="font-size: 13px; background-color: #eeeeee; color: #0000ff; ">class</span><span style="font-size: 13px; background-color: #eeeeee; ">&nbsp;xMD5&nbsp;{<br />&nbsp;&nbsp;&nbsp;&nbsp;<br />&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="font-size: 13px; background-color: #eeeeee; color: #0000ff; ">public</span>&nbsp;<span style="font-size: 13px; background-color: #eeeeee; color: #0000ff; ">final</span>&nbsp;<span style="font-size: 13px; background-color: #eeeeee; color: #0000ff; ">static</span><span style="font-size: 13px; background-color: #eeeeee; ">&nbsp;String&nbsp;MD5(String&nbsp;s)&nbsp;{<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="font-size: 13px; background-color: #eeeeee; color: #0000ff; ">char</span><span style="font-size: 13px; background-color: #eeeeee; ">&nbsp;hexDigits[]&nbsp;</span><span style="font-size: 13px; background-color: #eeeeee; ">=</span><span style="font-size: 13px; background-color: #eeeeee; ">&nbsp;{</span><span style="font-size: 13px; background-color: #eeeeee; ">'</span><span style="font-size: 13px; background-color: #eeeeee; ">0</span><span style="font-size: 13px; background-color: #eeeeee; ">'</span><span style="font-size: 13px; background-color: #eeeeee; ">,&nbsp;</span><span style="font-size: 13px; background-color: #eeeeee; ">'</span><span style="font-size: 13px; background-color: #eeeeee; ">1</span><span style="font-size: 13px; background-color: #eeeeee; ">'</span><span style="font-size: 13px; background-color: #eeeeee; ">,&nbsp;</span><span style="font-size: 13px; background-color: #eeeeee; ">'</span><span style="font-size: 13px; background-color: #eeeeee; ">2</span><span style="font-size: 13px; background-color: #eeeeee; ">'</span><span style="font-size: 13px; background-color: #eeeeee; ">,&nbsp;</span><span style="font-size: 13px; background-color: #eeeeee; ">'</span><span style="font-size: 13px; background-color: #eeeeee; ">3</span><span style="font-size: 13px; background-color: #eeeeee; ">'</span><span style="font-size: 13px; background-color: #eeeeee; ">,&nbsp;</span><span style="font-size: 13px; background-color: #eeeeee; ">'</span><span style="font-size: 13px; background-color: #eeeeee; ">4</span><span style="font-size: 13px; background-color: #eeeeee; ">'</span><span style="font-size: 13px; background-color: #eeeeee; ">,&nbsp;</span><span style="font-size: 13px; background-color: #eeeeee; ">'</span><span style="font-size: 13px; background-color: #eeeeee; ">5</span><span style="font-size: 13px; background-color: #eeeeee; ">'</span><span style="font-size: 13px; background-color: #eeeeee; ">,&nbsp;</span><span style="font-size: 13px; background-color: #eeeeee; ">'</span><span style="font-size: 13px; background-color: #eeeeee; ">6</span><span style="font-size: 13px; background-color: #eeeeee; ">'</span><span style="font-size: 13px; background-color: #eeeeee; ">,&nbsp;</span><span style="font-size: 13px; background-color: #eeeeee; ">'</span><span style="font-size: 13px; background-color: #eeeeee; ">7</span><span style="font-size: 13px; background-color: #eeeeee; ">'</span><span style="font-size: 13px; background-color: #eeeeee; ">,&nbsp;</span><span style="font-size: 13px; background-color: #eeeeee; ">'</span><span style="font-size: 13px; background-color: #eeeeee; ">8</span><span style="font-size: 13px; background-color: #eeeeee; ">'</span><span style="font-size: 13px; background-color: #eeeeee; ">,&nbsp;</span><span style="font-size: 13px; background-color: #eeeeee; ">'</span><span style="font-size: 13px; background-color: #eeeeee; ">9</span><span style="font-size: 13px; background-color: #eeeeee; ">'</span><span style="font-size: 13px; background-color: #eeeeee; ">,<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="font-size: 13px; background-color: #eeeeee; ">'</span><span style="font-size: 13px; background-color: #eeeeee; ">A</span><span style="font-size: 13px; background-color: #eeeeee; ">'</span><span style="font-size: 13px; background-color: #eeeeee; ">,&nbsp;</span><span style="font-size: 13px; background-color: #eeeeee; ">'</span><span style="font-size: 13px; background-color: #eeeeee; ">B</span><span style="font-size: 13px; background-color: #eeeeee; ">'</span><span style="font-size: 13px; background-color: #eeeeee; ">,&nbsp;</span><span style="font-size: 13px; background-color: #eeeeee; ">'</span><span style="font-size: 13px; background-color: #eeeeee; ">C</span><span style="font-size: 13px; background-color: #eeeeee; ">'</span><span style="font-size: 13px; background-color: #eeeeee; ">,&nbsp;</span><span style="font-size: 13px; background-color: #eeeeee; ">'</span><span style="font-size: 13px; background-color: #eeeeee; ">D</span><span style="font-size: 13px; background-color: #eeeeee; ">'</span><span style="font-size: 13px; background-color: #eeeeee; ">,&nbsp;</span><span style="font-size: 13px; background-color: #eeeeee; ">'</span><span style="font-size: 13px; background-color: #eeeeee; ">E</span><span style="font-size: 13px; background-color: #eeeeee; ">'</span><span style="font-size: 13px; background-color: #eeeeee; ">,&nbsp;</span><span style="font-size: 13px; background-color: #eeeeee; ">'</span><span style="font-size: 13px; background-color: #eeeeee; ">F</span><span style="font-size: 13px; background-color: #eeeeee; ">'</span><span style="font-size: 13px; background-color: #eeeeee; ">};<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="font-size: 13px; background-color: #eeeeee; color: #0000ff; ">try</span><span style="font-size: 13px; background-color: #eeeeee; ">&nbsp;{<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="font-size: 13px; background-color: #eeeeee; color: #0000ff; ">byte</span><span style="font-size: 13px; background-color: #eeeeee; ">[]&nbsp;strTemp&nbsp;</span><span style="font-size: 13px; background-color: #eeeeee; ">=</span><span style="font-size: 13px; background-color: #eeeeee; ">&nbsp;s.getBytes();<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="font-size: 13px; background-color: #eeeeee; color: #008000; ">//</span><span style="font-size: 13px; background-color: #eeeeee; color: #008000; ">使用MD5创建MessageDigest对象</span><span style="font-size: 13px; background-color: #eeeeee; color: #008000; "><br /></span><span style="font-size: 13px; background-color: #eeeeee; ">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;MessageDigest&nbsp;mdTemp&nbsp;</span><span style="font-size: 13px; background-color: #eeeeee; ">=</span><span style="font-size: 13px; background-color: #eeeeee; ">&nbsp;MessageDigest.getInstance(</span><span style="font-size: 13px; background-color: #eeeeee; ">"</span><span style="font-size: 13px; background-color: #eeeeee; ">MD5</span><span style="font-size: 13px; background-color: #eeeeee; ">"</span><span style="font-size: 13px; background-color: #eeeeee; ">);<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;mdTemp.update(strTemp);<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="font-size: 13px; background-color: #eeeeee; color: #0000ff; ">byte</span><span style="font-size: 13px; background-color: #eeeeee; ">[]&nbsp;md&nbsp;</span><span style="font-size: 13px; background-color: #eeeeee; ">=</span><span style="font-size: 13px; background-color: #eeeeee; ">&nbsp;mdTemp.digest();<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="font-size: 13px; background-color: #eeeeee; color: #0000ff; ">int</span><span style="font-size: 13px; background-color: #eeeeee; ">&nbsp;j&nbsp;</span><span style="font-size: 13px; background-color: #eeeeee; ">=</span><span style="font-size: 13px; background-color: #eeeeee; ">&nbsp;md.length;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="font-size: 13px; background-color: #eeeeee; color: #0000ff; ">char</span><span style="font-size: 13px; background-color: #eeeeee; ">&nbsp;str[]&nbsp;</span><span style="font-size: 13px; background-color: #eeeeee; ">=</span>&nbsp;<span style="font-size: 13px; background-color: #eeeeee; color: #0000ff; ">new</span>&nbsp;<span style="font-size: 13px; background-color: #eeeeee; color: #0000ff; ">char</span><span style="font-size: 13px; background-color: #eeeeee; ">[j&nbsp;</span><span style="font-size: 13px; background-color: #eeeeee; ">*</span>&nbsp;<span style="font-size: 13px; background-color: #eeeeee; ">2</span><span style="font-size: 13px; background-color: #eeeeee; ">];<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="font-size: 13px; background-color: #eeeeee; color: #0000ff; ">int</span><span style="font-size: 13px; background-color: #eeeeee; ">&nbsp;k&nbsp;</span><span style="font-size: 13px; background-color: #eeeeee; ">=</span>&nbsp;<span style="font-size: 13px; background-color: #eeeeee; ">0</span><span style="font-size: 13px; background-color: #eeeeee; ">;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="font-size: 13px; background-color: #eeeeee; color: #0000ff; ">for</span><span style="font-size: 13px; background-color: #eeeeee; ">&nbsp;(</span><span style="font-size: 13px; background-color: #eeeeee; color: #0000ff; ">int</span><span style="font-size: 13px; background-color: #eeeeee; ">&nbsp;i&nbsp;</span><span style="font-size: 13px; background-color: #eeeeee; ">=</span>&nbsp;<span style="font-size: 13px; background-color: #eeeeee; ">0</span><span style="font-size: 13px; background-color: #eeeeee; ">;&nbsp;i&nbsp;</span><span style="font-size: 13px; background-color: #eeeeee; ">&lt;</span><span style="font-size: 13px; background-color: #eeeeee; ">&nbsp;j;&nbsp;i</span><span style="font-size: 13px; background-color: #eeeeee; ">++</span><span style="font-size: 13px; background-color: #eeeeee; ">)&nbsp;{<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="font-size: 13px; background-color: #eeeeee; color: #0000ff; ">byte</span><span style="font-size: 13px; background-color: #eeeeee; ">&nbsp;b&nbsp;</span><span style="font-size: 13px; background-color: #eeeeee; ">=</span><span style="font-size: 13px; background-color: #eeeeee; ">&nbsp;md[i];<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="font-size: 13px; background-color: #eeeeee; color: #008000; ">//</span><span style="font-size: 13px; background-color: #eeeeee; color: #008000; ">将没个数(int)b进行双字节加密</span><span style="font-size: 13px; background-color: #eeeeee; color: #008000; "><br /></span><span style="font-size: 13px; background-color: #eeeeee; ">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;str[k</span><span style="font-size: 13px; background-color: #eeeeee; ">++</span><span style="font-size: 13px; background-color: #eeeeee; ">]&nbsp;</span><span style="font-size: 13px; background-color: #eeeeee; ">=</span><span style="font-size: 13px; background-color: #eeeeee; ">&nbsp;hexDigits[b&nbsp;</span><span style="font-size: 13px; background-color: #eeeeee; ">&gt;&gt;</span>&nbsp;<span style="font-size: 13px; background-color: #eeeeee; ">4</span>&nbsp;<span style="font-size: 13px; background-color: #eeeeee; ">&amp;</span>&nbsp;<span style="font-size: 13px; background-color: #eeeeee; ">0xf</span><span style="font-size: 13px; background-color: #eeeeee; ">];<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;str[k</span><span style="font-size: 13px; background-color: #eeeeee; ">++</span><span style="font-size: 13px; background-color: #eeeeee; ">]&nbsp;</span><span style="font-size: 13px; background-color: #eeeeee; ">=</span><span style="font-size: 13px; background-color: #eeeeee; ">&nbsp;hexDigits[b&nbsp;</span><span style="font-size: 13px; background-color: #eeeeee; ">&amp;</span>&nbsp;<span style="font-size: 13px; background-color: #eeeeee; ">0xf</span><span style="font-size: 13px; background-color: #eeeeee; ">];<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="font-size: 13px; background-color: #eeeeee; color: #0000ff; ">return</span>&nbsp;<span style="font-size: 13px; background-color: #eeeeee; color: #0000ff; ">new</span><span style="font-size: 13px; background-color: #eeeeee; ">&nbsp;String(str);<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}&nbsp;</span><span style="font-size: 13px; background-color: #eeeeee; color: #0000ff; ">catch</span><span style="font-size: 13px; background-color: #eeeeee; ">&nbsp;(Exception&nbsp;e)&nbsp;{<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="font-size: 13px; background-color: #eeeeee; color: #0000ff; ">return</span>&nbsp;<span style="font-size: 13px; background-color: #eeeeee; color: #0000ff; ">null</span><span style="font-size: 13px; background-color: #eeeeee; ">;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}<br />&nbsp;&nbsp;&nbsp;&nbsp;}<br />&nbsp;&nbsp;<br />}</span></div><img src ="http://www.blogjava.net/CrackRen/aggbug/362032.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.blogjava.net/CrackRen/" target="_blank">CrackRen</a> 2011-10-25 17:37 <a href="http://www.blogjava.net/CrackRen/archive/2011/10/25/362032.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item></channel></rss>