<?xml version="1.0" encoding="utf-8"?><?xml-stylesheet href='http://feeds.feedsky.com/styles/temp01.xsl' type='text/xsl' ?><!--这是一个由Feedsy提供技术支持的Feed，为了提高读者阅读的体验，以及满足用户美化自己Feed的需要，我们设计了多种精美的Feed模板，提供给大家选择，所有最终呈现出来的样式，皆由用户自愿选择使用，未经许可，任何团体和个人，请不要擅自修改样式或者盗用，这是对于用户选择权的尊重。--><rss xmlns:atom="http://www.w3.org/2005/Atom" xmlns:fs="http://www.feedsky.com/namespace/feed" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:trackback="http://madskills.com/public/xml/rss/module/trackback/" xmlns:dc="http://purl.org/dc/elements/1.1/" version="2.0"><channel><atom:link href="http://feeds.feedsky.com/csdn.net/leeshaoqun" type="application/rss+xml" rel="self"></atom:link><fs:self_link href="http://feeds.feedsky.com/csdn.net/leeshaoqun" type="application/rss+xml"></fs:self_link><lastBuildDate>Sun, 31 May 2009 10:10:00 GMT</lastBuildDate><title>Allin's blog</title><description>Knol</description><link>http://blog.csdn.net/leeshaoqun/</link><item><title>一些高效的Linux命令行操作</title><link>http://blog.csdn.net/leeshaoqun/archive/2009/05/31/4227391.aspx</link><wfw:comment>http://blog.csdn.net/leeshaoqun/comments/4227391.aspx</wfw:comment><slash:comments>0</slash:comments><wfw:commentRss>http://blog.csdn.net/leeshaoqun/comments/commentRss/4227391.aspx</wfw:commentRss><trackback:ping>http://tb.blog.csdn.net/TrackBack.aspx?PostId=4227391</trackback:ping><description>&lt;br /&gt;1. 查找Java项目中，main方法定义在哪个文件里.&lt;br /&gt;
    切换到你要查找项目的目录下执行
&lt;br /&gt;
   grep -rlI '\&lt;br /&gt;
  如果你觉得自己打字快，不怕麻烦执行如下命令也可以找到该文件
&lt;br /&gt;
  find -type f -name *.java  -exec grep -l '\&lt;br /&gt;&lt;br /&gt;2  快速的建立一个文件，并输入一些内容&lt;br /&gt;
   cat &gt;&gt; filename ，输入一些内容然后按Ctrl-d结束输入。
&lt;br /&gt;
  注意：如果filename已经存在则内容将被清空
&lt;br /&gt;&lt;br /&gt; 3 将文本文件中DOS换行符号转化为UNIX的换行符号&lt;br /&gt;
   tr -s &quot;\r&quot;  &quot;\n&quot;  &lt;br /&gt;
   如果你要将结果保存到outputfile文件
&lt;br /&gt;
   tr -s &quot;\r&quot;  &quot;\n&quot;  outputfile
&lt;br /&gt;&lt;img src =&quot;http://blog.csdn.net/leeshaoqun/aggbug/4227391.aspx&quot; width = &quot;1&quot; height = &quot;1&quot; /&gt;&lt;img src=&quot;http://www1.feedsky.com/t1/225449191/leeshaoqun/csdn.net/s.gif?r=http://blog.csdn.net/leeshaoqun/archive/2009/05/31/4227391.aspx&quot; border=&quot;0&quot; height=&quot;0&quot; width=&quot;0&quot; style=&quot;position:absolute&quot; /&gt;&lt;p class=&quot;fswww1&quot;&gt;&lt;a href=&quot;http://www1.feedsky.com/r/l/csdn.net/leeshaoqun/225449191/art01.html&quot; target=&quot;_blank&quot;&gt;&lt;img border=&quot;0&quot; ismap=&quot;ismap&quot; src=&quot;http://www1.feedsky.com/r/i/csdn.net/leeshaoqun/225449191/art01.gif&quot; onerror=&quot;this.style.display='none'&quot; /&gt;&lt;/a&gt;&lt;/p&gt;</description><pubDate>Sun, 31 May 2009 18:10:00 +0800</pubDate><author>allin</author><comments>http://blog.csdn.net/leeshaoqun/archive/2009/05/31/4227391.aspx#Feedback</comments><guid isPermaLink="false">http://blog.csdn.net/leeshaoqun/archive/2009/05/31/4227391.aspx</guid><dc:creator>allin</dc:creator><fs:srclink>http://blog.csdn.net/leeshaoqun/archive/2009/05/31/4227391.aspx</fs:srclink><fs:srcfeed>http://blog.csdn.net/leeshaoqun/feed.aspx</fs:srcfeed><fs:itemid>csdn.net/leeshaoqun/~1132933/225449191/1132926</fs:itemid></item><item><title>Jquery插件开发</title><link>http://blog.csdn.net/leeshaoqun/archive/2009/03/05/3961220.aspx</link><wfw:comment>http://blog.csdn.net/leeshaoqun/comments/3961220.aspx</wfw:comment><slash:comments>0</slash:comments><wfw:commentRss>http://blog.csdn.net/leeshaoqun/comments/commentRss/3961220.aspx</wfw:commentRss><trackback:ping>http://tb.blog.csdn.net/TrackBack.aspx?PostId=3961220</trackback:ping><description>使用jquery也有一段时间了，以前写的都比较零散，要不就是使用别人开发的jquery插件。开发第三方插件是我们提高JQuery代码经验的不错的选择，当我们的代码想要重用的时候，我们总是习惯把这些代码封装成一个插件，幸运的是在JQuery中这并不比写代码复杂多少。JQuery的全局函数也就是属于JQuery命名空间的函数，典型的例子就是$.AJAX()这个函数。将函数定义于Jquery的命名空间，我们只需要担心，它是否与其他函数存在冲突。添加一个全局函数，我们只需如下定义：jQuery.foo = function() {         alert('This is a test. This is only a test.'); };    调用的时候可以这样写：jQuery.foo(); 也可以这样写：$.foo(); &lt;img src =&quot;http://blog.csdn.net/leeshaoqun/aggbug/3961220.aspx&quot; width = &quot;1&quot; height = &quot;1&quot; /&gt;&lt;p class=&quot;fswww1&quot;&gt;&lt;a href=&quot;http://www1.feedsky.com/r/l/csdn.net/leeshaoqun/225449195/art01.html&quot; target=&quot;_blank&quot;&gt;&lt;img border=&quot;0&quot; ismap=&quot;ismap&quot; src=&quot;http://www1.feedsky.com/r/i/csdn.net/leeshaoqun/225449195/art01.gif&quot; onerror=&quot;this.style.display='none'&quot; /&gt;&lt;/a&gt;&lt;/p&gt;</description><pubDate>Fri, 06 Mar 2009 06:34:00 +0800</pubDate><author>allin</author><comments>http://blog.csdn.net/leeshaoqun/archive/2009/03/05/3961220.aspx#Feedback</comments><guid isPermaLink="false">http://blog.csdn.net/leeshaoqun/archive/2009/03/05/3961220.aspx</guid><dc:creator>allin</dc:creator><fs:srclink>http://blog.csdn.net/leeshaoqun/archive/2009/03/05/3961220.aspx</fs:srclink><fs:srcfeed>http://blog.csdn.net/leeshaoqun/feed.aspx</fs:srcfeed><fs:itemid>csdn.net/leeshaoqun/~1132933/225449195/1132926</fs:itemid></item><item><title>ajax文件上传应用</title><link>http://blog.csdn.net/leeshaoqun/archive/2009/03/03/3953732.aspx</link><wfw:comment>http://blog.csdn.net/leeshaoqun/comments/3953732.aspx</wfw:comment><slash:comments>0</slash:comments><wfw:commentRss>http://blog.csdn.net/leeshaoqun/comments/commentRss/3953732.aspx</wfw:commentRss><trackback:ping>http://tb.blog.csdn.net/TrackBack.aspx?PostId=3953732</trackback:ping><description>今天看到一个jquery插件jquery.fileupload.v.1.5.0，自己试着结合java做了一个ajax的文件上传小应用这个插件支持多个文件选取功能，很不错，而且代码简单&lt;img src =&quot;http://blog.csdn.net/leeshaoqun/aggbug/3953732.aspx&quot; width = &quot;1&quot; height = &quot;1&quot; /&gt;&lt;p class=&quot;fswww1&quot;&gt;&lt;a href=&quot;http://www1.feedsky.com/r/l/csdn.net/leeshaoqun/225449198/art01.html&quot; target=&quot;_blank&quot;&gt;&lt;img border=&quot;0&quot; ismap=&quot;ismap&quot; src=&quot;http://www1.feedsky.com/r/i/csdn.net/leeshaoqun/225449198/art01.gif&quot; onerror=&quot;this.style.display='none'&quot; /&gt;&lt;/a&gt;&lt;/p&gt;</description><pubDate>Wed, 04 Mar 2009 01:52:00 +0800</pubDate><author>allin</author><comments>http://blog.csdn.net/leeshaoqun/archive/2009/03/03/3953732.aspx#Feedback</comments><guid isPermaLink="false">http://blog.csdn.net/leeshaoqun/archive/2009/03/03/3953732.aspx</guid><dc:creator>allin</dc:creator><fs:srclink>http://blog.csdn.net/leeshaoqun/archive/2009/03/03/3953732.aspx</fs:srclink><fs:srcfeed>http://blog.csdn.net/leeshaoqun/feed.aspx</fs:srcfeed><fs:itemid>csdn.net/leeshaoqun/~1132933/225449198/1132926</fs:itemid></item><item><title>jquery小应用</title><link>http://blog.csdn.net/leeshaoqun/archive/2009/02/27/3942547.aspx</link><wfw:comment>http://blog.csdn.net/leeshaoqun/comments/3942547.aspx</wfw:comment><slash:comments>0</slash:comments><wfw:commentRss>http://blog.csdn.net/leeshaoqun/comments/commentRss/3942547.aspx</wfw:commentRss><trackback:ping>http://tb.blog.csdn.net/TrackBack.aspx?PostId=3942547</trackback:ping><description>本应用有点类似google联系人选择的那种小应用。使用jquery的弹出窗口，动态加载后台数据到窗口的上部（非共享区），下部（共享区）。可以从点击上部的数据添加到下部的共享区中&lt;img src =&quot;http://blog.csdn.net/leeshaoqun/aggbug/3942547.aspx&quot; width = &quot;1&quot; height = &quot;1&quot; /&gt;&lt;p class=&quot;fswww1&quot;&gt;&lt;a href=&quot;http://www1.feedsky.com/r/l/csdn.net/leeshaoqun/225449199/art01.html&quot; target=&quot;_blank&quot;&gt;&lt;img border=&quot;0&quot; ismap=&quot;ismap&quot; src=&quot;http://www1.feedsky.com/r/i/csdn.net/leeshaoqun/225449199/art01.gif&quot; onerror=&quot;this.style.display='none'&quot; /&gt;&lt;/a&gt;&lt;/p&gt;</description><pubDate>Fri, 27 Feb 2009 22:07:00 +0800</pubDate><author>allin</author><comments>http://blog.csdn.net/leeshaoqun/archive/2009/02/27/3942547.aspx#Feedback</comments><guid isPermaLink="false">http://blog.csdn.net/leeshaoqun/archive/2009/02/27/3942547.aspx</guid><dc:creator>allin</dc:creator><fs:srclink>http://blog.csdn.net/leeshaoqun/archive/2009/02/27/3942547.aspx</fs:srclink><fs:srcfeed>http://blog.csdn.net/leeshaoqun/feed.aspx</fs:srcfeed><fs:itemid>csdn.net/leeshaoqun/~1132933/225449199/1132926</fs:itemid></item><item><title>java内存模型详解</title><link>http://blog.csdn.net/leeshaoqun/archive/2009/02/19/3910022.aspx</link><wfw:comment>http://blog.csdn.net/leeshaoqun/comments/3910022.aspx</wfw:comment><slash:comments>0</slash:comments><wfw:commentRss>http://blog.csdn.net/leeshaoqun/comments/commentRss/3910022.aspx</wfw:commentRss><trackback:ping>http://tb.blog.csdn.net/TrackBack.aspx?PostId=3910022</trackback:ping><description>&lt;br /&gt;内存模型 (memory model)&lt;br /&gt;
 内存模型描述的是程序中各变量（实例域、静态域和数组元素）之间的关系，以及在实际计算机系统中将变量存储到内存和从内存取出变量这样的低层细节.&lt;br /&gt;&lt;br /&gt;
不同平台间的处理器架构将直接影响内存模型的结构.&lt;br /&gt;&lt;br /&gt;
在C或C++中, 可以利用不同操作平台下的内存模型来编写并发程序. 但是, 这带给开发人员的是, 更高的学习成本.&lt;br /&gt;
相比之下, java利用了自身虚拟机的优势, 使内存模型不束缚于具体的处理器架构, 真正实现了跨平台.&lt;br /&gt;
(针对hotspot jvm, jrockit等不同的jvm, 内存模型也会不相同)&lt;br /&gt;&lt;br /&gt;内存模型的特征:&lt;br /&gt;
a, Visibility 可视性 (多核,多线程间数据的共享)&lt;br /&gt;
b, Ordering 有序性 (对内存进行的操作应该是有序的)&lt;br /&gt;&lt;br /&gt;java 内存模型 (java memory model)&lt;br /&gt;
根据Java Language Specification中&lt;img src =&quot;http://blog.csdn.net/leeshaoqun/aggbug/3910022.aspx&quot; width = &quot;1&quot; height = &quot;1&quot; /&gt;&lt;p class=&quot;fswww1&quot;&gt;&lt;a href=&quot;http://www1.feedsky.com/r/l/csdn.net/leeshaoqun/225449202/art01.html&quot; target=&quot;_blank&quot;&gt;&lt;img border=&quot;0&quot; ismap=&quot;ismap&quot; src=&quot;http://www1.feedsky.com/r/i/csdn.net/leeshaoqun/225449202/art01.gif&quot; onerror=&quot;this.style.display='none'&quot; /&gt;&lt;/a&gt;&lt;/p&gt;</description><pubDate>Thu, 19 Feb 2009 22:14:00 +0800</pubDate><author>allin</author><comments>http://blog.csdn.net/leeshaoqun/archive/2009/02/19/3910022.aspx#Feedback</comments><guid isPermaLink="false">http://blog.csdn.net/leeshaoqun/archive/2009/02/19/3910022.aspx</guid><dc:creator>allin</dc:creator><fs:srclink>http://blog.csdn.net/leeshaoqun/archive/2009/02/19/3910022.aspx</fs:srclink><fs:srcfeed>http://blog.csdn.net/leeshaoqun/feed.aspx</fs:srcfeed><fs:itemid>csdn.net/leeshaoqun/~1132933/225449202/1132926</fs:itemid></item><item><title>javascript面向对象技术基础</title><link>http://blog.csdn.net/leeshaoqun/archive/2009/01/07/3725328.aspx</link><wfw:comment>http://blog.csdn.net/leeshaoqun/comments/3725328.aspx</wfw:comment><slash:comments>0</slash:comments><wfw:commentRss>http://blog.csdn.net/leeshaoqun/comments/commentRss/3725328.aspx</wfw:commentRss><trackback:ping>http://tb.blog.csdn.net/TrackBack.aspx?PostId=3725328</trackback:ping><description>看了很多介绍javascript面向对象技术的文章,很晕.为什么?不是因为写得不好,而是因为太深奥.javascript中的对象还没解释清楚怎么回事,一上来就直奔主题,类/继承/原型/私有变量....结果呢,看了大半天,有了一个大概的了解,细细一回味,好像什么都没懂...这篇文章是参考&gt;第7,8,9章而写成的,我也会尽量按照原书的结构来说明javascript的面向对象技术(对象/数组-&gt;函数--&gt;类/构造函数/原型).对一些我自己也拿捏不准的地方,我会附上原文的英文语句,供大家参考.如果不做说明,则文中出现的所有英文语句(程序体除外)都是引自&gt;.-------------------------&lt;img src =&quot;http://blog.csdn.net/leeshaoqun/aggbug/3725328.aspx&quot; width = &quot;1&quot; height = &quot;1&quot; /&gt;&lt;p class=&quot;fswww1&quot;&gt;&lt;a href=&quot;http://www1.feedsky.com/r/l/csdn.net/leeshaoqun/225449205/art01.html&quot; target=&quot;_blank&quot;&gt;&lt;img border=&quot;0&quot; ismap=&quot;ismap&quot; src=&quot;http://www1.feedsky.com/r/i/csdn.net/leeshaoqun/225449205/art01.gif&quot; onerror=&quot;this.style.display='none'&quot; /&gt;&lt;/a&gt;&lt;/p&gt;</description><pubDate>Wed, 07 Jan 2009 18:00:00 +0800</pubDate><author>allin</author><comments>http://blog.csdn.net/leeshaoqun/archive/2009/01/07/3725328.aspx#Feedback</comments><guid isPermaLink="false">http://blog.csdn.net/leeshaoqun/archive/2009/01/07/3725328.aspx</guid><dc:creator>allin</dc:creator><fs:srclink>http://blog.csdn.net/leeshaoqun/archive/2009/01/07/3725328.aspx</fs:srclink><fs:srcfeed>http://blog.csdn.net/leeshaoqun/feed.aspx</fs:srcfeed><fs:itemid>csdn.net/leeshaoqun/~1132933/225449205/1132926</fs:itemid></item><item><title>JNI技术小试</title><link>http://blog.csdn.net/leeshaoqun/archive/2009/01/04/3702254.aspx</link><wfw:comment>http://blog.csdn.net/leeshaoqun/comments/3702254.aspx</wfw:comment><slash:comments>0</slash:comments><wfw:commentRss>http://blog.csdn.net/leeshaoqun/comments/commentRss/3702254.aspx</wfw:commentRss><trackback:ping>http://tb.blog.csdn.net/TrackBack.aspx?PostId=3702254</trackback:ping><description>目前java与dll交互的技术主要有3种：jni，jawin和jacob。Jni（Java Native Interface）是sun提供的java与系统中的原生方法交互的技术（在windows\linux系统中，实现java与native method互调）。目前只能由c/c++实现。后两个都是sourceforge上的开源项目，同时也都是基于jni技术的windows系统上的一个应用库。Jacob（Java-Com Bridge）提供了java程序调用microsoft的com对象中的方法的能力。而除了com对象外，jawin（Java/Win32 integration project）还可以win32-dll动态链接库中的方法。&lt;img src =&quot;http://blog.csdn.net/leeshaoqun/aggbug/3702254.aspx&quot; width = &quot;1&quot; height = &quot;1&quot; /&gt;&lt;p class=&quot;fswww1&quot;&gt;&lt;a href=&quot;http://www1.feedsky.com/r/l/csdn.net/leeshaoqun/225449208/art01.html&quot; target=&quot;_blank&quot;&gt;&lt;img border=&quot;0&quot; ismap=&quot;ismap&quot; src=&quot;http://www1.feedsky.com/r/i/csdn.net/leeshaoqun/225449208/art01.gif&quot; onerror=&quot;this.style.display='none'&quot; /&gt;&lt;/a&gt;&lt;/p&gt;</description><pubDate>Sun, 04 Jan 2009 18:58:00 +0800</pubDate><author>allin</author><comments>http://blog.csdn.net/leeshaoqun/archive/2009/01/04/3702254.aspx#Feedback</comments><guid isPermaLink="false">http://blog.csdn.net/leeshaoqun/archive/2009/01/04/3702254.aspx</guid><dc:creator>allin</dc:creator><fs:srclink>http://blog.csdn.net/leeshaoqun/archive/2009/01/04/3702254.aspx</fs:srclink><fs:srcfeed>http://blog.csdn.net/leeshaoqun/feed.aspx</fs:srcfeed><fs:itemid>csdn.net/leeshaoqun/~1132933/225449208/1132926</fs:itemid></item><item><title>分层和层间数据传递</title><link>http://blog.csdn.net/leeshaoqun/archive/2008/12/19/3554024.aspx</link><wfw:comment>http://blog.csdn.net/leeshaoqun/comments/3554024.aspx</wfw:comment><slash:comments>0</slash:comments><wfw:commentRss>http://blog.csdn.net/leeshaoqun/comments/commentRss/3554024.aspx</wfw:commentRss><trackback:ping>http://tb.blog.csdn.net/TrackBack.aspx?PostId=3554024</trackback:ping><description>&lt;br /&gt;还记得97年左右开始的胖客户机和瘦客户机之争吗？之后又是CS和BS之争，然后又是两层和
多层之争...，十年之后的今天我们再回过头看这些争论，一切似乎看起来都那么理所应当：程序怎么能不分层啊？可是再想一下，原来我们用了整整十年的时间
才达成了一个程序架构要多层的共识（效率多低啊）！&lt;br /&gt;要分层，当然基本就是三层了，其实多层的基础也是三层：界面层、业务逻辑层、存储层。多层只不过在三层的基础上把每一层或多或少再拆分出一些来而已，总的来说没有什么大的变化。本系列文章中讨论都以三层为基本概念。&lt;br /&gt;本文着重讨论的不是如何分层和层的定义，而是在分层情况下，讨论层与层之间的数据传递问题。
现在的程序很少仔细地去分析层与层之间的数据传递问题，通常都是一个对象从界面生成开始一路穿过，直接保存到数据库（最显著的标志当然就是xxxID
了）。这样的做法对程序伤害很大。&lt;br /&gt;首先我们从一个简单的例子开始：应用程序的添加用户功能。界面很简单，如下：添加用户登录名 

&lt;br /&gt;密码&lt;br /&gt;添加用户&lt;br /&gt;要为这个界面设计数据结构通常也很简单，class Lo&lt;img src =&quot;http://blog.csdn.net/leeshaoqun/aggbug/3554024.aspx&quot; width = &quot;1&quot; height = &quot;1&quot; /&gt;&lt;p class=&quot;fswww1&quot;&gt;&lt;a href=&quot;http://www1.feedsky.com/r/l/csdn.net/leeshaoqun/225449213/art01.html&quot; target=&quot;_blank&quot;&gt;&lt;img border=&quot;0&quot; ismap=&quot;ismap&quot; src=&quot;http://www1.feedsky.com/r/i/csdn.net/leeshaoqun/225449213/art01.gif&quot; onerror=&quot;this.style.display='none'&quot; /&gt;&lt;/a&gt;&lt;/p&gt;</description><pubDate>Fri, 19 Dec 2008 08:00:00 +0800</pubDate><author>allin</author><comments>http://blog.csdn.net/leeshaoqun/archive/2008/12/19/3554024.aspx#Feedback</comments><guid isPermaLink="false">http://blog.csdn.net/leeshaoqun/archive/2008/12/19/3554024.aspx</guid><dc:creator>allin</dc:creator><fs:srclink>http://blog.csdn.net/leeshaoqun/archive/2008/12/19/3554024.aspx</fs:srclink><fs:srcfeed>http://blog.csdn.net/leeshaoqun/feed.aspx</fs:srcfeed><fs:itemid>csdn.net/leeshaoqun/~1132933/225449213/1132926</fs:itemid></item><item><title>UML简单例子</title><link>http://blog.csdn.net/leeshaoqun/archive/2008/12/17/3543291.aspx</link><wfw:comment>http://blog.csdn.net/leeshaoqun/comments/3543291.aspx</wfw:comment><slash:comments>2</slash:comments><wfw:commentRss>http://blog.csdn.net/leeshaoqun/comments/commentRss/3543291.aspx</wfw:commentRss><trackback:ping>http://tb.blog.csdn.net/TrackBack.aspx?PostId=3543291</trackback:ping><description>&lt;br /&gt;类与类之间的关系对于理解面向对象具有很重要的作用，以前在面试的时候也经常被问到这个问题，在这里我就介绍一下。&lt;br /&gt;
类与类之间存在以下关系:&lt;br /&gt;(1)泛化(Generalization)&lt;br /&gt;
(2)关联(Association)&lt;br /&gt;
(3)依赖(Dependency)&lt;br /&gt;
(4)聚合(Aggregation)&lt;br /&gt;UML图与应用代码例子:&lt;br /&gt;1.泛化(Generalization)&lt;br /&gt;[泛化]&lt;br /&gt;表示类与类之间的继承关系，接口与接口之间的继承关系，或类对接口的实现关系。一般化的关系是从子类指向父类的，与继承或实现的方法相反。&lt;br /&gt;[具体表现]&lt;br /&gt;父类 父类实例＝new 子类()&lt;br /&gt;[UML图](图1.1)&lt;br /&gt;&lt;br /&gt;图1.1Animal类与Tiger类,Dog类的泛化关系&lt;br /&gt;&lt;br /&gt;[代码表现]&lt;br /&gt;&lt;br /&gt;class Animal{}   class Tiger extends Animal{}   public class Test   {&lt;img src =&quot;http://blog.csdn.net/leeshaoqun/aggbug/3543291.aspx&quot; width = &quot;1&quot; height = &quot;1&quot; /&gt;&lt;p class=&quot;fswww1&quot;&gt;&lt;a href=&quot;http://www1.feedsky.com/r/l/csdn.net/leeshaoqun/225449218/art01.html&quot; target=&quot;_blank&quot;&gt;&lt;img border=&quot;0&quot; ismap=&quot;ismap&quot; src=&quot;http://www1.feedsky.com/r/i/csdn.net/leeshaoqun/225449218/art01.gif&quot; onerror=&quot;this.style.display='none'&quot; /&gt;&lt;/a&gt;&lt;/p&gt;</description><pubDate>Thu, 18 Dec 2008 06:16:00 +0800</pubDate><author>allin</author><comments>http://blog.csdn.net/leeshaoqun/archive/2008/12/17/3543291.aspx#Feedback</comments><guid isPermaLink="false">http://blog.csdn.net/leeshaoqun/archive/2008/12/17/3543291.aspx</guid><dc:creator>allin</dc:creator><fs:srclink>http://blog.csdn.net/leeshaoqun/archive/2008/12/17/3543291.aspx</fs:srclink><fs:srcfeed>http://blog.csdn.net/leeshaoqun/feed.aspx</fs:srcfeed><fs:itemid>csdn.net/leeshaoqun/~1132933/225449218/1132926</fs:itemid></item><item><title>java byte类型</title><link>http://blog.csdn.net/leeshaoqun/archive/2008/12/12/3502752.aspx</link><wfw:comment>http://blog.csdn.net/leeshaoqun/comments/3502752.aspx</wfw:comment><slash:comments>0</slash:comments><wfw:commentRss>http://blog.csdn.net/leeshaoqun/comments/commentRss/3502752.aspx</wfw:commentRss><trackback:ping>http://tb.blog.csdn.net/TrackBack.aspx?PostId=3502752</trackback:ping><description>&lt;br /&gt;所有的整数类型（除了char 类型之外）都是有符号的整数&lt;br /&gt;&lt;br /&gt;
因为， java的byte是8bit（位），就是8个0/1 来表示。&lt;br /&gt;
但是第一位是符号位，表示正数还是负数。所以：&lt;br /&gt;
0000 0001表示1，     （1×  20）&lt;br /&gt;
0000 0000表示0，     （0×  20）&lt;br /&gt;&lt;br /&gt;
计算机中负数的二进制码是是负数的绝对值取反，然后加1.&lt;br /&gt;
例如－1的二进制：&lt;br /&gt;
－1的绝对值是1（0000 0001）;&lt;br /&gt;
取反是（1111 1110）;&lt;br /&gt;
再加 1（0000 0001 ）；&lt;br /&gt;
结果是（1111 1111）&lt;br /&gt;&lt;br /&gt;
要对一个负数的二进制进行解码，首先对其所有的位取反，然后加1。&lt;br /&gt;
例如－1的 二进制   （1111 1111）&lt;br /&gt;
取反：  0000 0000 是0&lt;br /&gt;
再加1：（0＋1＝1）&lt;br /&gt;
符号位是1，是负数，所以是－1&lt;br /&gt;&lt;br /&gt;
1000 00&lt;img src =&quot;http://blog.csdn.net/leeshaoqun/aggbug/3502752.aspx&quot; width = &quot;1&quot; height = &quot;1&quot; /&gt;&lt;p class=&quot;fswww1&quot;&gt;&lt;a href=&quot;http://www1.feedsky.com/r/l/csdn.net/leeshaoqun/225449219/art01.html&quot; target=&quot;_blank&quot;&gt;&lt;img border=&quot;0&quot; ismap=&quot;ismap&quot; src=&quot;http://www1.feedsky.com/r/i/csdn.net/leeshaoqun/225449219/art01.gif&quot; onerror=&quot;this.style.display='none'&quot; /&gt;&lt;/a&gt;&lt;/p&gt;</description><pubDate>Fri, 12 Dec 2008 19:14:00 +0800</pubDate><author>allin</author><comments>http://blog.csdn.net/leeshaoqun/archive/2008/12/12/3502752.aspx#Feedback</comments><guid isPermaLink="false">http://blog.csdn.net/leeshaoqun/archive/2008/12/12/3502752.aspx</guid><dc:creator>allin</dc:creator><fs:srclink>http://blog.csdn.net/leeshaoqun/archive/2008/12/12/3502752.aspx</fs:srclink><fs:srcfeed>http://blog.csdn.net/leeshaoqun/feed.aspx</fs:srcfeed><fs:itemid>csdn.net/leeshaoqun/~1132933/225449219/1132926</fs:itemid></item></channel></rss>