该文被密码保护。 阅读全文
posted @ 2014-11-10 20:44 IT忍者 阅读(1) 评论(0) 推荐(0) 编辑
摘要: /** * 克隆 * @param source */private function clone(source:Object):* { var myBA:ByteArray = new ByteArray(); myBA.writeObject(source); myBA.position = 0... 阅读全文
posted @ 2014-08-31 14:29 IT忍者 阅读(114) 评论(0) 推荐(0) 编辑
摘要: public class DoubleCheckSingleton { private volatile static DoubleCheckSingleton instance=null; /**************************************************************************** * 说明:在getInstatnce()方法里,首先判断此事例是否已经被创建,如果还没有创建 * ,首先使用synchronized同步实例化代码快实例化代码快,在同步代码块里还需要再 * 次检查是否已经创建了此类的事例,这是因为:如果没有... 阅读全文
posted @ 2013-12-30 20:14 IT忍者 阅读(103) 评论(0) 推荐(0) 编辑
摘要: import java.awt.image.BufferedImage;import java.io.File;import java.io.FileOutputStream;import java.io.IOException;import com.sun.image.codec.jpeg.JPEGCodec;import com.sun.image.codec.jpeg.JPEGImageEncoder;public class ImageProcess {public void zoomImage(String srcImgFileName) throws IOException{Fil 阅读全文
posted @ 2012-11-22 16:02 IT忍者 阅读(216) 评论(0) 推荐(0) 编辑
摘要: <?xml version="1.0" encoding="utf-8"?><mx:WindowedApplication xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute" x="46" y="42" creationComplete="initApp()"><mx:Script><![CDATA[import mx.controls.Check 阅读全文
posted @ 2012-08-27 22:48 IT忍者 阅读(711) 评论(0) 推荐(0) 编辑
摘要: Map map = new HashMap(); map.set( "a ", "b "); Iterator it = map.keySet().iterator(); while (it.hasNext()) { Object key =it.next(); System.out.println( "key is "+key);System.out.println( "value is "+map.get(key)); 阅读全文
posted @ 2012-08-17 13:25 IT忍者 阅读(986) 评论(0) 推荐(0) 编辑
摘要: select length(字段) from table;select * from table where length(字段) > 6 ; 阅读全文
posted @ 2012-07-17 20:50 IT忍者 阅读(423) 评论(0) 推荐(0) 编辑
摘要: replace(translate(字段,chr(10)||chr(13), ' '), ' ', '')translate是将换行和回车换成空格,外面的replace操作是将空格换成空 阅读全文
posted @ 2012-07-11 01:09 IT忍者 阅读(377) 评论(0) 推荐(0) 编辑