自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(7)
  • 资源 (5)
  • 收藏
  • 关注

原创 利用java反射实现Java Bean 类型转换

在Business layer 和 web layer 需要经常进行Bean的转换.   我写了个比较common的方法, 可以批量转换Bean.     前提:  1.   已知目标Bean的Class.       2.   目标bean 有一个参数是源Bean的构造函数.    /**     *           * @Function  Transfer Sourc

2007-11-13 11:53:00 2894

原创 文件过滤(FileNameFileter 和 FileFileter)

1.用FileFilter File[] fs = dir.listFiles(new FileFilter() {                 public boolean accept(File pathname) {                     String tmp = pathname.getName().toLowerCase();                  

2007-07-31 10:13:00 794

原创 Hibernate中 一个单向多对多例子

1. User 类及映射文件public class User { private Long id; private String name; private String passWord; private Set services = new HashSet(); 省去方法.http://hibernate.sourceforge.net/hibernate-mapping-3.0

2007-07-18 08:28:00 577

原创 ActiveMQ 启动Broker

只适合在  3.2.1 import org.activemq.broker.BrokerContainer; 启动Broker:BrokerContainer container = new BrokerContainerImpl();container.addConnector("tcp://localhost:61616");container.start(); 关闭

2007-06-14 15:34:00 1138

原创 java程序中备份Mysql数据库

1.得到系统的类型.不同的系统有不同的文件分割符号.public static boolean isLinux(){     String OS = System.getProperty("os.name").toLowerCase();        if (OS.indexOf("windows") > -1) {         return false;        }       

2007-06-13 15:57:00 1351

原创 关于反射的应用

1 取得Class对象:Class parentClass=Class.forName(classType); 切记:classType必须是类的完整名,包括包名和类名.2.取得Method对象:Method m = parentClass.getMethod(method,new Class[]{String.class} );3.使用Method 对象m.invok

2007-06-04 19:13:00 458

原创 获取JavaBean 中的字段

import java.beans.IntrospectionException;import java.beans.Introspector;import java.beans.PropertyDescriptor;        List fieldList=new ArrayList();        try {            BeanInfo beanInfo = Intro

2007-06-02 17:07:00 1212

Java NIO 电子书

Java NIO.pdf Dedication ............................................................................................................................. 1 Preface .................................................................................................................................. 2 Organization...................................................................................................................... 3 Who Should Read This Book............................................................................................. 5 Software and Versions ....................................................................................................... 5 Conventions Used in This Book......................................................................................... 6 How to Contact Us ............................................................................................................. 7 Acknowledgments.............................................................................................................. 8 Chapter 1. Introduction..................................................................................................... 10 1.1 I/O Versus CPU Time ................................................................................................ 10 1.2 No Longer CPU Bound.............................................................................................. 11 1.3 Getting to the Good Stuff ........................................................................................... 12 1.4 I/O Concepts............................................................................................................... 13 1.5 Summary .................................................................................................................... 21 Chapter 2. Buffers .............................................................................................................. 22 2.1 Buffer Basics .............................................................................................................. 23 2.2 Creating Buffers ......................................................................................................... 36 2.3 Duplicating Buffers .................................................................................................... 38 2.4 Byte Buffers ............................................................................................................... 40 2.5 Summary .................................................................................................................... 52 Chapter 3. Channels........................................................................................................... 54 3.1 Channel Basics ........................................................................................................... 55 3.2 Scatter/Gather............................................................................................................. 62 3.3 File Channels.............................................................................................................. 67 3.4 Memory-Mapped Files............................................................................................... 80 3.5 Socket Channels ......................................................................................................... 91 3.6 Pipes ......................................................................................................................... 109 3.7 The Channels Utility Class....................................................................................... 114 3.8 Summary .................................................................................................................. 115 Chapter 4. Selectors ......................................................................................................... 117 4.1 Selector Basics ......................................................................................................... 117 4.2 Using Selection Keys ............................................................................................... 125 4.3 Using Selectors......................................................................................................... 128 4.4 Asynchronous Closability ........................................................................................ 137 4.5 Selection Scaling ...................................................................................................... 138 4.6 Summary .................................................................................................................. 143 Chapter 5. Regular Expressions ..................................................................................... 145 5.1 Regular Expression Basics ....................................................................................... 145 5.2 The Java Regular Expression API............................................................................ 147 5.3 Regular Expression Methods of the String Class..................................................... 168 5.4 Java Regular Expression Syntax .............................................................................. 169 5.5 An Object-Oriented File Grep.................................................................................. 172 5.6 Summary .................................................................................................................. 178 Chapter 6. Character Sets ............................................................................................... 180 6.1 Character Set Basics................................................................................................. 180 6.2 Charsets .................................................................................................................... 182

2011-12-13

JAVA并发编程实践(英文).chm

Java并发编程必读手册,JAVA并发编程实践(英文).chm

2010-04-08

How tomcat work

解释Tomcat的架构,实现。对于想学习Tomcat源代码的人非常有帮助。

2010-04-08

Expert One-on-One J2EE Design And Development.chm

这本书是Spring作者的经典之作. 阐述了Spring的开发理念.

2008-06-18

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除