2008年12月18日

最简化的 序列化保存 java 对象

摘要: publicclassTest1{finalstaticObjectStreamClassdesc=ObjectStreamClass.lookupAny(MyBean.class);publicstaticvoidmain(String[]args)throwsIOException,ClassNotFoundException{Filef=newFile("f://f"+System.currentTimeMillis()+".ser");FileOutputStreamfos=newFileOutputStream(f);java.io.Objec 阅读全文

posted @ 2008-12-18 13:35 天之南 阅读(144) 评论(0) 推荐(0)

导航