java 对象序列化与反序列化 FileInputSteam.readObject,writeObject
摘要:
T t=new T(); t.k=8; FileOutputStream fos=new FileOutputStream("d:/a.dat"); ObjectOutputStream oos=new ObjectOutputStream(fos); oos.writeObject(t); oos.flush(); oos.close(); FileInputStream fis=new FileInputStream("d:/a.dat"); Obj... 阅读全文
posted @ 2012-06-25 21:40 雨渐渐 阅读(229) 评论(0) 推荐(0) 编辑