本文整理了Java中java.io.ObjectInputStream.readOrdinaryObject()
方法的一些代码示例,展示了ObjectInputStream.readOrdinaryObject()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。ObjectInputStream.readOrdinaryObject()
方法的具体详情如下:
包路径:java.io.ObjectInputStream
类名称:ObjectInputStream
方法名:readOrdinaryObject
[英]Reads and returns "ordinary" (i.e., not a String, Class, ObjectStreamClass, array, or enum constant) object, or null if object's class is unresolvable (in which case a ClassNotFoundException will be associated with object's handle). Sets passHandle to object's assigned handle.
[中]读取并返回“普通”(即不是字符串、类、ObjectStreamClass、数组或枚举常量)对象,如果对象的类不可解析,则返回null(在这种情况下,ClassNotFoundException将与对象的句柄相关联)。将passHandle设置为对象的指定句柄。
代码示例来源:origin: stackoverflow.com
Exception in thread "main" java.io.InvalidClassException: TestData; Serializable incompatible with Externalizable
at java.io.ObjectStreamClass.initNonProxy(ObjectStreamClass.java:634)
at java.io.ObjectInputStream.readNonProxyDesc(ObjectInputStream.java:1623)
at java.io.ObjectInputStream.readClassDesc(ObjectInputStream.java:1518)
at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1774)
at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1351)
at java.io.ObjectInputStream.readObject(ObjectInputStream.java:371)
at ReadIt.main(ReadIt.java:10)
代码示例来源:origin: org.apidesign.bck2brwsr/emul
return checkResolve(readOrdinaryObject(unshared));
代码示例来源:origin: jtulach/bck2brwsr
return checkResolve(readOrdinaryObject(unshared));
内容来源于网络,如有侵权,请联系作者删除!