2011年11月18日
摘要: public class TestWrite {public static void main(String[] args) {Example ex=new Example();TestWrite test=new TestWrite(); test.getXML(ex);}public String getXML(Example example){String str="<RecordData>";Field[] fields = example.getClass().getDeclaredFields();for(int i=0,len=fields.len 阅读全文
posted @ 2011-11-18 10:17 阳光water123 阅读(2120) 评论(0) 推荐(0)
  2011年11月4日
摘要: //文件监测类import java.util.Map;import java.util.HashMap;import java.io.File;import java.util.Set;import java.util.Iterator;import java.util.concurrent.ExecutorService;import java.util.concurrent.Executors;import java.util.concurrent.locks.Lock;public class Monitor{private String path=null;//监控路径private 阅读全文
posted @ 2011-11-04 13:21 阳光water123 阅读(834) 评论(0) 推荐(2)