<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>北京欢迎你 - JAVA / JSP</title><link>http://blog.csdn.net/feng_sundy/category/54285.aspx</link><description /><dc:language>zh-CN</dc:language><lastUpdateTime>Tue, 05 Aug 2008 11:55:00 GMT</lastUpdateTime><ttl>60</ttl><item><dc:creator>sundy sun</dc:creator><title>[原创] Java高清晰高品质 图片压缩</title><link>http://blog.csdn.net/feng_sundy/archive/2008/08/05/2769572.aspx</link><pubDate>Tue, 05 Aug 2008 11:11:00 GMT</pubDate><guid>http://blog.csdn.net/feng_sundy/archive/2008/08/05/2769572.aspx</guid><wfw:comment>http://blog.csdn.net/feng_sundy/comments/2769572.aspx</wfw:comment><comments>http://blog.csdn.net/feng_sundy/archive/2008/08/05/2769572.aspx#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://blog.csdn.net/feng_sundy/comments/commentRss/2769572.aspx</wfw:commentRss><trackback:ping>http://tb.blog.csdn.net/TrackBack.aspx?PostId=2769572</trackback:ping><description>网上搜索了很多，压缩出来的效果实在不能令人满意，研究了一些代码，自己写了一个，压缩出来的效果很好。但是有一个缺点，可能也是java的缺点吧，呵呵。在jdk1.6以下的版本环境下，压缩部分图片会很慢，经过我测试，如果图片的DPI越高，速度越慢，一般WEB使用图片DPI都是72，速度很快。大家可以试下。我测试了几张DPI为300，印刷品质的图片，大概要35秒左右，当然还和机器内存有关。在jdk1.6环境下，速度能令人满意，从之前的35秒减少到了1秒多一点点。提升了这么多，jdk1.6改进实在是大。经过我调试发现，慢的部分主要是在g2.drawImage(image, 0, 0,imageWidth, imageHeight, Color.white,null);,这一句。&lt;img src ="http://blog.csdn.net/feng_sundy/aggbug/2769572.aspx" width = "1" height = "1" /&gt;</description></item><item><dc:creator>feng_sundy</dc:creator><title>java实现读取flash的swf文件属性 - zhangjianwxh的专栏 - CSDNBlog</title><link>http://blog.csdn.net/feng_sundy/archive/2008/07/30/2741684.aspx</link><pubDate>Wed, 30 Jul 2008 19:14:00 GMT</pubDate><guid>http://blog.csdn.net/feng_sundy/archive/2008/07/30/2741684.aspx</guid><wfw:comment>http://blog.csdn.net/feng_sundy/comments/2741684.aspx</wfw:comment><comments>http://blog.csdn.net/feng_sundy/archive/2008/07/30/2741684.aspx#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://blog.csdn.net/feng_sundy/comments/commentRss/2741684.aspx</wfw:commentRss><trackback:ping>http://tb.blog.csdn.net/TrackBack.aspx?PostId=2741684</trackback:ping><description>

	/** flashattrib.java */ package picattrib; import java.io.IOException; import java.io.FileInputStream; public class flashattrib { public flashattrib() { } public static void main(String[] args) { flashattrib flashattrib = new flashattrib(); byte[] bb=null; image1 im = null; try { bb=flashattrib.readFromFile("d:\\aa.swf"); im = flashattrib.getAttrib(bb); System.out.println(im.getWidth()); System.out.println(im.getHight()); bb=flashattrib.readFromFile("d:\\bb.swf"); im = flashattrib.getAttrib(&lt;img src ="http://blog.csdn.net/feng_sundy/aggbug/2741684.aspx" width = "1" height = "1" /&gt;</description></item><item><dc:creator>feng_sundy</dc:creator><title>Log4j日志分类别输出至日志文件 [Log4j应用] </title><link>http://blog.csdn.net/feng_sundy/archive/2008/07/28/2724655.aspx</link><pubDate>Mon, 28 Jul 2008 15:00:00 GMT</pubDate><guid>http://blog.csdn.net/feng_sundy/archive/2008/07/28/2724655.aspx</guid><wfw:comment>http://blog.csdn.net/feng_sundy/comments/2724655.aspx</wfw:comment><comments>http://blog.csdn.net/feng_sundy/archive/2008/07/28/2724655.aspx#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://blog.csdn.net/feng_sundy/comments/commentRss/2724655.aspx</wfw:commentRss><trackback:ping>http://tb.blog.csdn.net/TrackBack.aspx?PostId=2724655</trackback:ping><description>og4j是Apache的一个开放源代码项目，通过使用Log4j，我们可以控制日志信息输送的目的地是控制台、文件、GUI组件、甚至是套接口服务器、NT的事件记录器、UNIX Syslog守护进程等；我们也可以控制每一条日志的输出格式；通过定义每一条日志信息的级别，我们能够更加细致地控制日志的生成过程。最令人感兴趣的就是，这些可以通过一个配置文件来灵活地进行配置，而不需要修改应用的代码。

      此外，通过Log4j其他语言接口，您可以在C、php、C++、.Net、PL/SQL程序中使用Log4j，其语法和用法与在Java程序中一样，使得多语言分布式系统得到一个统一一致的日志组件模块。而且，通过使用各种第三方扩展，您可以很方便地将Log4j集成到J2EE、JINI甚至是SNMP应用中。

      Log4j配置文件详细说明（*.properties和*.xml）&lt;img src ="http://blog.csdn.net/feng_sundy/aggbug/2724655.aspx" width = "1" height = "1" /&gt;</description></item><item><dc:creator>feng_sundy</dc:creator><title>Java语言接口与继承的本质</title><link>http://blog.csdn.net/feng_sundy/archive/2008/07/18/2671389.aspx</link><pubDate>Fri, 18 Jul 2008 13:55:00 GMT</pubDate><guid>http://blog.csdn.net/feng_sundy/archive/2008/07/18/2671389.aspx</guid><wfw:comment>http://blog.csdn.net/feng_sundy/comments/2671389.aspx</wfw:comment><comments>http://blog.csdn.net/feng_sundy/archive/2008/07/18/2671389.aspx#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://blog.csdn.net/feng_sundy/comments/commentRss/2671389.aspx</wfw:commentRss><trackback:ping>http://tb.blog.csdn.net/TrackBack.aspx?PostId=2671389</trackback:ping><description> 大多数人认为，接口的意义在于顶替多重继承。众所周知Java没有c++那样多重继承的机制，但是却能够实作多个接口。其实这样做是很牵强的，接口和继承是完全不同的东西，接口没有能力代替多重继承，也没有这个义务。接口的作用，一言以蔽之，就是标志类的类别（type of class）。把不同类型的类归于不同的接口，可以更好的管理他们。OO的精髓，我以为，是对对象的抽象，最能体现这一点的就是接口。为什么我们讨论设计模式都只针对具备了抽象能力的语言（比如c++、java、c#等），就是因为设计模式所研究的，实际上就是如何合理的去抽象。（cowboy的名言是“抽象就是抽去像的部分”，看似调侃，实乃至理）。

　　设计模式中最基础的是工厂模式（Factory），在我最近的一个很简单的应用中，我想尽量的让我的程序能够在多个数据库间移植，当然，这涉及很多问题，单是如何兼容不同DBMS的SQL就让人头痛。我们不妨先把问题简单化，只考虑如何连接不同的数据库。&lt;img src ="http://blog.csdn.net/feng_sundy/aggbug/2671389.aspx" width = "1" height = "1" /&gt;</description></item><item><dc:creator>feng_sundy</dc:creator><title>java连接Access数据库的代码</title><link>http://blog.csdn.net/feng_sundy/archive/2008/07/18/2671369.aspx</link><pubDate>Fri, 18 Jul 2008 13:53:00 GMT</pubDate><guid>http://blog.csdn.net/feng_sundy/archive/2008/07/18/2671369.aspx</guid><wfw:comment>http://blog.csdn.net/feng_sundy/comments/2671369.aspx</wfw:comment><comments>http://blog.csdn.net/feng_sundy/archive/2008/07/18/2671369.aspx#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://blog.csdn.net/feng_sundy/comments/commentRss/2671369.aspx</wfw:commentRss><trackback:ping>http://tb.blog.csdn.net/TrackBack.aspx?PostId=2671369</trackback:ping><description>java连接Access数据库的代码&lt;img src ="http://blog.csdn.net/feng_sundy/aggbug/2671369.aspx" width = "1" height = "1" /&gt;</description></item><item><dc:creator>feng_sundy</dc:creator><title>TOMCAT5在WINDOWS下的系统服务相关的命令行</title><link>http://blog.csdn.net/feng_sundy/archive/2008/07/18/2671339.aspx</link><pubDate>Fri, 18 Jul 2008 13:47:00 GMT</pubDate><guid>http://blog.csdn.net/feng_sundy/archive/2008/07/18/2671339.aspx</guid><wfw:comment>http://blog.csdn.net/feng_sundy/comments/2671339.aspx</wfw:comment><comments>http://blog.csdn.net/feng_sundy/archive/2008/07/18/2671339.aspx#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://blog.csdn.net/feng_sundy/comments/commentRss/2671339.aspx</wfw:commentRss><trackback:ping>http://tb.blog.csdn.net/TrackBack.aspx?PostId=2671339</trackback:ping><description>先说说Tomcat5.exe和Tomcat5w是干什么的。Tomcat5.exe可以把Tomcat加入服务；Tomcat5w.exe可以辅助配置已经添加的服务。Tomcat5w.exe 监控程序Tomcat5w是一个监控和配置Tomcat服务的图形界面应用程序。可用的命令行选项如下：//ES// 编辑服务配置，这是缺省的选项。如果没有提供任何选项，却把tomcat5w.exe重命名为%SERVICE_NAME%.exe运行的话，这个选项就被调用。//MS// 监控服务，讲图标放置到系统托盘中。&lt;img src ="http://blog.csdn.net/feng_sundy/aggbug/2671339.aspx" width = "1" height = "1" /&gt;</description></item><item><dc:creator>feng_sundy</dc:creator><title>jsp 图片 验证码 getOutputStream() has already been called for this response 问题的解决</title><link>http://blog.csdn.net/feng_sundy/archive/2008/07/15/2655390.aspx</link><pubDate>Tue, 15 Jul 2008 18:53:00 GMT</pubDate><guid>http://blog.csdn.net/feng_sundy/archive/2008/07/15/2655390.aspx</guid><wfw:comment>http://blog.csdn.net/feng_sundy/comments/2655390.aspx</wfw:comment><comments>http://blog.csdn.net/feng_sundy/archive/2008/07/15/2655390.aspx#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://blog.csdn.net/feng_sundy/comments/commentRss/2655390.aspx</wfw:commentRss><trackback:ping>http://tb.blog.csdn.net/TrackBack.aspx?PostId=2655390</trackback:ping><description>jsp 图片 验证码 getOutputStream() has already been called for this response 问题的解决&lt;img src ="http://blog.csdn.net/feng_sundy/aggbug/2655390.aspx" width = "1" height = "1" /&gt;</description></item><item><dc:creator>feng_sundy</dc:creator><title>JAVA生成JPG缩略图</title><link>http://blog.csdn.net/feng_sundy/archive/2008/06/30/2598244.aspx</link><pubDate>Mon, 30 Jun 2008 14:25:00 GMT</pubDate><guid>http://blog.csdn.net/feng_sundy/archive/2008/06/30/2598244.aspx</guid><wfw:comment>http://blog.csdn.net/feng_sundy/comments/2598244.aspx</wfw:comment><comments>http://blog.csdn.net/feng_sundy/archive/2008/06/30/2598244.aspx#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://blog.csdn.net/feng_sundy/comments/commentRss/2598244.aspx</wfw:commentRss><trackback:ping>http://tb.blog.csdn.net/TrackBack.aspx?PostId=2598244</trackback:ping><description>在任何一个综合性网站，我们往往需要上传一些图片资料。但随着高分辨率DC的普及，上传的图片容量会很大，比如300万象素DC出来的文件基本不下600K。为了管理方便，大家可能不愿意每次都用ACDsee修改它，而直接上传到服务器。但是这种做法在客户端看来就没有那么轻松了，对于拨号上网的用户简直是一场恶梦，虽然你可以在图片区域设置wide和high！&lt;img src ="http://blog.csdn.net/feng_sundy/aggbug/2598244.aspx" width = "1" height = "1" /&gt;</description></item><item><dc:creator>feng_sundy</dc:creator><title>Java繁体中文处理完全攻略 Java Mail MS950</title><link>http://blog.csdn.net/feng_sundy/archive/2008/06/30/2598228.aspx</link><pubDate>Mon, 30 Jun 2008 14:22:00 GMT</pubDate><guid>http://blog.csdn.net/feng_sundy/archive/2008/06/30/2598228.aspx</guid><wfw:comment>http://blog.csdn.net/feng_sundy/comments/2598228.aspx</wfw:comment><comments>http://blog.csdn.net/feng_sundy/archive/2008/06/30/2598228.aspx#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://blog.csdn.net/feng_sundy/comments/commentRss/2598228.aspx</wfw:commentRss><trackback:ping>http://tb.blog.csdn.net/TrackBack.aspx?PostId=2598228</trackback:ping><description>许多人用 Java 处理到中文资料时，常会出现乱码。关于 Java 和中文兼容性的问题，实在让许多程序员为此伤透脑筋，相关的问题每隔几天就会出现在网络上。为了舒缓您紧蹙的眉头，我特别写了这系列文章，解说 Java 牵涉到文字时的内部处理方式，供读者参考。读完本系列文章之后，不求甚解者可以治标，充分理解者可以治本。本文贵在原理解说，别光是囫囵吞枣。&lt;img src ="http://blog.csdn.net/feng_sundy/aggbug/2598228.aspx" width = "1" height = "1" /&gt;</description></item><item><dc:creator>feng_sundy</dc:creator><title>HIbernate 3.2 java.lang.IllegalArgumentException: object is not an instance of declaring class</title><link>http://blog.csdn.net/feng_sundy/archive/2007/12/21/1957841.aspx</link><pubDate>Fri, 21 Dec 2007 18:41:00 GMT</pubDate><guid>http://blog.csdn.net/feng_sundy/archive/2007/12/21/1957841.aspx</guid><wfw:comment>http://blog.csdn.net/feng_sundy/comments/1957841.aspx</wfw:comment><comments>http://blog.csdn.net/feng_sundy/archive/2007/12/21/1957841.aspx#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://blog.csdn.net/feng_sundy/comments/commentRss/1957841.aspx</wfw:commentRss><trackback:ping>http://tb.blog.csdn.net/TrackBack.aspx?PostId=1957841</trackback:ping><description>HIbernate 3.2 java.lang.IllegalArgumentException: object is not an instance of declaring class&lt;img src ="http://blog.csdn.net/feng_sundy/aggbug/1957841.aspx" width = "1" height = "1" /&gt;</description></item><item><dc:creator>feng_sundy</dc:creator><title>JSP彩色验证码，javax.imageio.IIOException: Can't create output stream! 解决方法</title><link>http://blog.csdn.net/feng_sundy/archive/2007/03/27/1542854.aspx</link><pubDate>Tue, 27 Mar 2007 15:08:00 GMT</pubDate><guid>http://blog.csdn.net/feng_sundy/archive/2007/03/27/1542854.aspx</guid><wfw:comment>http://blog.csdn.net/feng_sundy/comments/1542854.aspx</wfw:comment><comments>http://blog.csdn.net/feng_sundy/archive/2007/03/27/1542854.aspx#Feedback</comments><slash:comments>3</slash:comments><wfw:commentRss>http://blog.csdn.net/feng_sundy/comments/commentRss/1542854.aspx</wfw:commentRss><trackback:ping>http://tb.blog.csdn.net/TrackBack.aspx?PostId=1542854</trackback:ping><description>JSP彩色验证码，javax.imageio.IIOException: Can't create output stream! 解决方法&lt;img src ="http://blog.csdn.net/feng_sundy/aggbug/1542854.aspx" width = "1" height = "1" /&gt;</description></item><item><dc:creator>feng_sundy</dc:creator><title>浅析动态代理类实现过程</title><link>http://blog.csdn.net/feng_sundy/archive/2007/02/07/1504332.aspx</link><pubDate>Wed, 07 Feb 2007 14:52:00 GMT</pubDate><guid>http://blog.csdn.net/feng_sundy/archive/2007/02/07/1504332.aspx</guid><wfw:comment>http://blog.csdn.net/feng_sundy/comments/1504332.aspx</wfw:comment><comments>http://blog.csdn.net/feng_sundy/archive/2007/02/07/1504332.aspx#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://blog.csdn.net/feng_sundy/comments/commentRss/1504332.aspx</wfw:commentRss><trackback:ping>http://tb.blog.csdn.net/TrackBack.aspx?PostId=1504332</trackback:ping><description>浅析动态代理类实现过程&lt;img src ="http://blog.csdn.net/feng_sundy/aggbug/1504332.aspx" width = "1" height = "1" /&gt;</description></item><item><dc:creator>feng_sundy</dc:creator><title>浅析java回调机制</title><link>http://blog.csdn.net/feng_sundy/archive/2007/02/07/1504326.aspx</link><pubDate>Wed, 07 Feb 2007 14:50:00 GMT</pubDate><guid>http://blog.csdn.net/feng_sundy/archive/2007/02/07/1504326.aspx</guid><wfw:comment>http://blog.csdn.net/feng_sundy/comments/1504326.aspx</wfw:comment><comments>http://blog.csdn.net/feng_sundy/archive/2007/02/07/1504326.aspx#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://blog.csdn.net/feng_sundy/comments/commentRss/1504326.aspx</wfw:commentRss><trackback:ping>http://tb.blog.csdn.net/TrackBack.aspx?PostId=1504326</trackback:ping><description>浅析java回调机制&lt;img src ="http://blog.csdn.net/feng_sundy/aggbug/1504326.aspx" width = "1" height = "1" /&gt;</description></item><item><dc:creator>feng_sundy</dc:creator><title>每个Java初学者都应该搞懂的六个问题</title><link>http://blog.csdn.net/feng_sundy/archive/2007/01/17/1485951.aspx</link><pubDate>Wed, 17 Jan 2007 17:39:00 GMT</pubDate><guid>http://blog.csdn.net/feng_sundy/archive/2007/01/17/1485951.aspx</guid><wfw:comment>http://blog.csdn.net/feng_sundy/comments/1485951.aspx</wfw:comment><comments>http://blog.csdn.net/feng_sundy/archive/2007/01/17/1485951.aspx#Feedback</comments><slash:comments>5</slash:comments><wfw:commentRss>http://blog.csdn.net/feng_sundy/comments/commentRss/1485951.aspx</wfw:commentRss><trackback:ping>http://tb.blog.csdn.net/TrackBack.aspx?PostId=1485951</trackback:ping><description>每个Java初学者都应该搞懂的六个问题&lt;img src ="http://blog.csdn.net/feng_sundy/aggbug/1485951.aspx" width = "1" height = "1" /&gt;</description></item><item><dc:creator>feng_sundy</dc:creator><title>Hot Spot JVM5中的GC调优</title><link>http://blog.csdn.net/feng_sundy/archive/2007/01/02/1472316.aspx</link><pubDate>Tue, 02 Jan 2007 14:40:00 GMT</pubDate><guid>http://blog.csdn.net/feng_sundy/archive/2007/01/02/1472316.aspx</guid><wfw:comment>http://blog.csdn.net/feng_sundy/comments/1472316.aspx</wfw:comment><comments>http://blog.csdn.net/feng_sundy/archive/2007/01/02/1472316.aspx#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://blog.csdn.net/feng_sundy/comments/commentRss/1472316.aspx</wfw:commentRss><trackback:ping>http://tb.blog.csdn.net/TrackBack.aspx?PostId=1472316</trackback:ping><description>有JAVA开发经验的朋友们一定碰到过下面的这种情况,那就是自己所开发的应用运行了一段时间后其性能或者响应速度会有明显的降低.这是由多方面的原因造成的即有程序本身的优化问题,也有运行环境问题.此运行环境即包括硬件环境也包括软件环境.大多数人第一个能想到的解决方法是提升硬件的配置而忽略了程序本身的运行环境JVM也提供了比较多的调优选项.本文将重点描述利用JVM的一些选项对GC进行调优. &lt;img src ="http://blog.csdn.net/feng_sundy/aggbug/1472316.aspx" width = "1" height = "1" /&gt;</description></item></channel></rss>