java.io.ObjectInputStream.readNewObject()方法的使用及代码示例

x33g5p2x  于2022-01-25 转载在 其他  
字(3.1k)|赞(0)|评价(0)|浏览(132)

本文整理了Java中java.io.ObjectInputStream.readNewObject()方法的一些代码示例,展示了ObjectInputStream.readNewObject()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。ObjectInputStream.readNewObject()方法的具体详情如下:
包路径:java.io.ObjectInputStream
类名称:ObjectInputStream
方法名:readNewObject

ObjectInputStream.readNewObject介绍

[英]Read a new object from the stream. It is assumed the object has not been loaded yet (not a cyclic reference). Return the object read. If the object implements Externalizable its readExternal is called. Otherwise, all fields described by the class hierarchy are loaded. Each class can define how its declared instance fields are loaded by defining a private method readObject
[中]从流中读取新对象。假设对象尚未加载(不是循环引用)。返回读取的对象。如果对象实现Externalizable,则调用其readExternal。否则,将加载类层次结构描述的所有字段。每个类都可以通过定义私有方法readObject来定义如何加载其声明的实例字段

代码示例

代码示例来源:origin: robovm/robovm

return readNewArray(unshared);
case TC_OBJECT:
  return readNewObject(unshared);
case TC_STRING:
  return readNewString(unshared);

代码示例来源:origin: robovm/robovm

return readNewArray(false);
case TC_OBJECT:
  return readNewObject(false);
case TC_STRING:
  return readNewString(false);

代码示例来源:origin: ibinti/bugvm

return readNewArray(unshared);
case TC_OBJECT:
  return readNewObject(unshared);
case TC_STRING:
  return readNewString(unshared);

代码示例来源:origin: MobiVM/robovm

return readNewArray(unshared);
case TC_OBJECT:
  return readNewObject(unshared);
case TC_STRING:
  return readNewString(unshared);

代码示例来源:origin: com.gluonhq/robovm-rt

return readNewArray(unshared);
case TC_OBJECT:
  return readNewObject(unshared);
case TC_STRING:
  return readNewString(unshared);

代码示例来源:origin: com.bugvm/bugvm-rt

return readNewArray(unshared);
case TC_OBJECT:
  return readNewObject(unshared);
case TC_STRING:
  return readNewString(unshared);

代码示例来源:origin: com.jtransc/jtransc-rt

return readNewArray(unshared);
case TC_OBJECT:
  return readNewObject(unshared);
case TC_STRING:
  return readNewString(unshared);

代码示例来源:origin: com.mobidevelop.robovm/robovm-rt

return readNewArray(unshared);
case TC_OBJECT:
  return readNewObject(unshared);
case TC_STRING:
  return readNewString(unshared);

代码示例来源:origin: FlexoVM/flexovm

return readNewArray(unshared);
case TC_OBJECT:
  return readNewObject(unshared);
case TC_STRING:
  return readNewString(unshared);

代码示例来源:origin: MobiVM/robovm

return readNewArray(false);
case TC_OBJECT:
  return readNewObject(false);
case TC_STRING:
  return readNewString(false);

代码示例来源:origin: com.jtransc/jtransc-rt

return readNewArray(false);
case TC_OBJECT:
  return readNewObject(false);
case TC_STRING:
  return readNewString(false);

代码示例来源:origin: ibinti/bugvm

return readNewArray(false);
case TC_OBJECT:
  return readNewObject(false);
case TC_STRING:
  return readNewString(false);

代码示例来源:origin: FlexoVM/flexovm

return readNewArray(false);
case TC_OBJECT:
  return readNewObject(false);
case TC_STRING:
  return readNewString(false);

代码示例来源:origin: com.mobidevelop.robovm/robovm-rt

return readNewArray(false);
case TC_OBJECT:
  return readNewObject(false);
case TC_STRING:
  return readNewString(false);

代码示例来源:origin: com.bugvm/bugvm-rt

return readNewArray(false);
case TC_OBJECT:
  return readNewObject(false);
case TC_STRING:
  return readNewString(false);

代码示例来源:origin: com.gluonhq/robovm-rt

return readNewArray(false);
case TC_OBJECT:
  return readNewObject(false);
case TC_STRING:
  return readNewString(false);

相关文章

ObjectInputStream类方法