Java提供了将对象以字节的形式写入到磁盘中,在需要的时候在从磁盘中恢复的功能,在网络传输中非常有用,下面将代码贴上,分别用两种形式实现了对象的序列化,其中第二种当时能将指定的变量序列化,更加人性化的随心所欲
下面是第二种方式
- Blip3 Constructor!!
- Blip3(String x, int a)
- A String47
- Saving Object
- Blip3.writeExternal
- Blip3 Constructor!!
- Revovering b3
- Blip3 Constructor!!
- Blip3.readExternal
- A String47