该文被密码保护。 阅读全文
摘要:
/** * 克隆 * @param source */private function clone(source:Object):* { var myBA:ByteArray = new ByteArray(); myBA.writeObject(source); myBA.position = 0... 阅读全文
摘要:
public class DoubleCheckSingleton { private volatile static DoubleCheckSingleton instance=null; /**************************************************************************** * 说明:在getInstatnce()方法里,首先判断此事例是否已经被创建,如果还没有创建 * ,首先使用synchronized同步实例化代码快实例化代码快,在同步代码块里还需要再 * 次检查是否已经创建了此类的事例,这是因为:如果没有... 阅读全文
摘要:
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 阅读全文
摘要:
<?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 阅读全文
摘要:
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)); 阅读全文
摘要:
select length(字段) from table;select * from table where length(字段) > 6 ; 阅读全文
摘要:
replace(translate(字段,chr(10)||chr(13), ' '), ' ', '')translate是将换行和回车换成空格,外面的replace操作是将空格换成空 阅读全文