huayu00的博客
huayu00 · 共 99 篇文章
[置顶] notes
有关设计模式的:《Elements of Reusable Object-Oriented Software》一书由Erich Gamma、Richard Helm、Ralph Johnson 和 John Vlissides四位作家合著而成,通常这四位作家叫做GoF(Gang of Four,四人组)。 该书提出了23种设计模式,又称GoF设计模式,这些设计模式针对面向对象设计(OOD)中的某些常见问题提出了具体的解决 方法(模式)。 [创 建型模式] 设计模式之 Abstract Factory - 抽象工厂模式 Abstract Factory模式也叫抽象工厂模式,它是对象创建型模式之…
2010-09-11 09:31 · Design Pattern · 评论(0)
事务传播与隔离
http://blog.csdn.net/yi16881/article/details/5642829 http://developer.51cto.com/art/200906/130699.htm
2013-03-02 08:47 · Spring · 评论(0)
java 压缩API
从 Java 支持压缩/解压缩开始,无法缺省支持中文文件名。 最近被逼急了,翻看 Java 源代码,发现只要设置如下属性即可: 启动虚拟机时:-Dsun.zip.encoding=default 或程序中:System.setProperty("sun.zip.encoding", "default"); 当然,如果确认只用中文字符集,直接设置 -Dsun.zip.encoding=GBK 也OK
2012-10-16 09:53 · Java · 评论(0)
字符编码
1、Java文件编译后形成class 这里Java文件的编码可能有多种多样,但Java编译器会自动将这些编码按照Java文件的编码格式正确读取后产生class文件,这里的class文件编码是Unicode编码(具体说是UTF-16编码)。 因此,在Java代码中定义一个字符串: String s="汉字"; 不管在编译前java文件使用何种编码,在编译后成class后,他们都是一样的----Unicode编码表示。 2、JVM中的编码 JVM加载class文件读取时候使用Unicode编码方式正确读取class文件,那么原来定义的String s="汉字";在内存中的表现形式是Unicode…
2012-09-19 22:53 · Java · 评论(0)
today
eclipse3.7.1 M20110909-1335 2:install RSE(remote terminal) + rse runtime + rse useraction 3:install cdt-master 8.0.2 #4:PTP all ptp-master-ptp-master-5.0.7-201203231413 http://fenger-chui.iteye.com/category/173111 Jnative使用深入解析 http://www.motherboardpoint.com/arm-elf-gdb-hello-and-cygwin-t89285.htm…
2012-06-08 07:07 · Daily task · 评论(0)
jnative
http://jnative.free.fr/SPIP-v1-8-3/article.php3?id_article=4 public class JnativeRect extends AbstractBasicData { protected JnativeRect(JnativeRect lValue) throws NativeException { super(null); createPointer(); mValue = this; } public int left; public int top; public int right; public int bottom; @…
2012-06-03 15:38 · Daily task · 评论(0)
SSL
JAVA 双向SSL,SOCKET客户端/服务端 实现技术: JSSE(Java Security Socket Extension) Server需要: 1)KeyStore: 其中保存服务端的私钥 2)Trust KeyStore:其中保存客户端的授权证书 Client需要: 1)KeyStore:其中保存客户端的私钥 2)Trust KeyStore:其中保存服务端的授权证书 使用Java自带的keytool命令,去生成这样信息文件: 1)生成服务端私钥,并且导入到服务端KeyStore文件中 2)根据私钥,导出服务端证书 3)将服务端证书,导入到客户端的Trust KeyStore中…
2012-06-01 07:27 · Java · 评论(0)
RCP Notes
Clear cache: The easiest way around this is to avoid overwriting or tweaking previous installs. Failing that, however, you can run Eclipse using the -clean command-line argu- ment or put the osgi.clean=true system property in the product’s config.ini or launcher initialization file.
2012-04-21 10:12 · Eclipse Plugin · 评论(0)
eclipse i18n - patch
http://download.eclipse.org/technology/babel/babel_language_packs/R0.9.1/indigo/indigo.php#zh
2012-04-10 10:50 · Eclipse Plugin · 评论(0)
类加载
JVM加载class文件的原理 http://blog.csdn.net/lihe2008125/article/details/3864983 JVM:加载、链接和初始化 http://blog.csdn.net/e5945/article/details/5648102 深入JVM——常量池 http://xtu-tja-163-com.iteye.com/blog/769996 JVM 内存初学 (堆(heap)、栈(stack)和方法区(method) ) http://www.blogjava.net/mlzry0612/articles/223420.html
2012-04-02 11:22 · JVM · 评论(0)
线程文摘
ThreadLocal http://blog.csdn.net/qjyong/article/details/2158097
2012-04-01 09:48 · Java · 评论(0)
OS-WS-ARCH
参数名称 描述 osType 目标操作系统类型 windowSystemType 目标视窗系统类型 architecture 目标系统架构 bootclasspath (optional) 列出编译需要的jars,用冒号或分号来分隔。这些jars是JDK或者JRE的补充。需要指定这个参数仅仅在你交叉编译eclipse或者使用一个JDK但没有使用一个rt.jar文件在所包含的java库里。默认rt.jar在你的path里。 compilelibs 强制编译本地库的标志 target (optional) Ant选择build.xml里的目标来执行,默认的是run,完成一个编译,并产生一个安装文…
2012-04-01 09:48 · Java · 评论(0)
notes
final Table table = tv.getTable(); table.addListener(SWT.MeasureItem, new Listener() { //向表格增加一个SWT.MeasureItem监听器,每当需要单元内容的大小的时候就会被调用。 public void handleEvent(Event event) { event.width = table.getGridLineWidth(); //设置宽度 event.height = (int) Math.floor(event.gc.getFontMetrics().getHeight() * 1.5);…
2012-03-30 13:25 · SWT_JFACE · 评论(0)