clone復制對象

          public  Object cloneObject(Object obj) throws Exception{
            ByteArrayOutputStream  byteOut = new ByteArrayOutputStream();
            ObjectOutputStream out = new ObjectOutputStream(byteOut);
            out.writeObject(obj);
            ByteArrayInputStream byteIn = new ByteArrayInputStream(byteOut.toByteArray());
            ObjectInputStream in =new ObjectInputStream(byteIn);
            return in.readObject();
            }
          淺克隆:List billBoxListClone = (List)BeanUtils.cloneBean(billBoxList);

          posted on 2013-03-31 22:42 youngturk 閱讀(236) 評論(0)  編輯  收藏 所屬分類: Java基礎

          <2013年3月>
          242526272812
          3456789
          10111213141516
          17181920212223
          24252627282930
          31123456

          導航

          統計

          公告

          this year :
          1 jQuery
          2 freemarker
          3 框架結構
          4 口語英語

          常用鏈接

          留言簿(6)

          隨筆分類

          隨筆檔案

          文章分類

          文章檔案

          相冊

          EJB學習

          Flex學習

          learn English

          oracle

          spring MVC web service

          SQL

          Struts

          生活保健

          解析文件

          搜索

          最新評論

          閱讀排行榜

          評論排行榜

          主站蜘蛛池模板: 常熟市| 沂源县| 辽源市| 柳林县| 新巴尔虎右旗| 邵东县| 荃湾区| 临湘市| 阜宁县| 苍山县| 大田县| 缙云县| 内黄县| 怀来县| 太湖县| 延寿县| 克什克腾旗| 宜黄县| 方正县| 大名县| 乌什县| 常熟市| 湘西| 海阳市| 福鼎市| 白水县| 称多县| 民权县| 北碚区| 长武县| 黄山市| 文昌市| 汉寿县| 赤城县| 林西县| 东山县| 寿宁县| 东乡县| 象山县| 磐安县| 湖口县|