本文整理了Java中java.io.ObjectOutputStream.writeSerialData()
方法的一些代码示例,展示了ObjectOutputStream.writeSerialData()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。ObjectOutputStream.writeSerialData()
方法的具体详情如下:
包路径:java.io.ObjectOutputStream
类名称:ObjectOutputStream
方法名:writeSerialData
[英]Writes instance data for each serializable class of given object, from superclass to subclass.
[中]为给定对象的每个可序列化类(从超类到子类)写入实例数据。
代码示例来源:origin: stackoverflow.com
Exception in thread "main" java.io.NotSerializableException: HouseSurvey
at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1164)
at java.io.ObjectOutputStream.defaultWriteFields(ObjectOutputStream.java:1518)
at java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1483)
at java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1400)
at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1158)
at java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:330)
at HouseSurvey.doPost(HouseSurvey.java:36)
at HouseSurvey.main(HouseSurvey.java:9)
代码示例来源:origin: org.apidesign.bck2brwsr/emul
writeExternalData((Externalizable) obj);
} else {
writeSerialData(obj, desc);
代码示例来源:origin: jtulach/bck2brwsr
writeExternalData((Externalizable) obj);
} else {
writeSerialData(obj, desc);
内容来源于网络,如有侵权,请联系作者删除!