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

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

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

ObjectInputStream.readNewProxyClassDesc介绍

[英]Reads a new proxy class descriptor from the receiver. It is assumed the proxy class descriptor has not been read yet (not a cyclic reference). Return the proxy class descriptor read.
[中]从接收方读取新的代理类描述符。假设尚未读取代理类描述符(不是循环引用)。返回已读取的代理类描述符。

代码示例

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

return readNewClassDesc(false);
case TC_PROXYCLASSDESC:
  Class<?> proxyClass = readNewProxyClassDesc();
  ObjectStreamClass streamClass = ObjectStreamClass.lookup(proxyClass);
  streamClass.setLoadFields(ObjectStreamClass.NO_FIELDS);

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

/**
 * Reads a class descriptor (an {@code ObjectStreamClass}) from the
 * stream.
 *
 * @return the class descriptor read from the stream
 * @throws IOException            If an IO exception happened when reading the class
 *                                descriptor.
 * @throws ClassNotFoundException If the class corresponding to the class descriptor could not
 *                                be found.
 */
private ObjectStreamClass readClassDesc() throws ClassNotFoundException, IOException {
  byte tc = nextTC();
  switch (tc) {
    case TC_CLASSDESC:
      return readNewClassDesc(false);
    case TC_PROXYCLASSDESC:
      Class<?> proxyClass = readNewProxyClassDesc();
      ObjectStreamClass streamClass = ObjectStreamClass.lookup(proxyClass);
      streamClass.setLoadFields(ObjectStreamClass.NO_FIELDS);
      registerObjectRead(streamClass, nextHandle(), false);
      checkedSetSuperClassDesc(streamClass, readClassDesc());
      return streamClass;
    case TC_REFERENCE:
      return (ObjectStreamClass) readCyclicReference();
    case TC_NULL:
      return null;
    default:
      throw corruptStream(tc);
  }
}

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

return readNewClassDesc(false);
case TC_PROXYCLASSDESC:
  Class<?> proxyClass = readNewProxyClassDesc();
  ObjectStreamClass streamClass = ObjectStreamClass.lookup(proxyClass);
  streamClass.setLoadFields(ObjectStreamClass.NO_FIELDS);

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

return readNewClassDesc(false);
case TC_PROXYCLASSDESC:
  Class<?> proxyClass = readNewProxyClassDesc();
  ObjectStreamClass streamClass = ObjectStreamClass.lookup(proxyClass);
  streamClass.setLoadFields(ObjectStreamClass.NO_FIELDS);

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

return readNewClassDesc(false);
case TC_PROXYCLASSDESC:
  Class<?> proxyClass = readNewProxyClassDesc();
  ObjectStreamClass streamClass = ObjectStreamClass.lookup(proxyClass);
  streamClass.setLoadFields(ObjectStreamClass.NO_FIELDS);

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

return readNewClassDesc(false);
case TC_PROXYCLASSDESC:
  Class<?> proxyClass = readNewProxyClassDesc();
  ObjectStreamClass streamClass = ObjectStreamClass.lookup(proxyClass);
  streamClass.setLoadFields(ObjectStreamClass.NO_FIELDS);

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

return readNewClassDesc(false);
case TC_PROXYCLASSDESC:
  Class<?> proxyClass = readNewProxyClassDesc();
  ObjectStreamClass streamClass = ObjectStreamClass.lookup(proxyClass);
  streamClass.setLoadFields(ObjectStreamClass.NO_FIELDS);

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

return readNewClassDesc(false);
case TC_PROXYCLASSDESC:
  Class<?> proxyClass = readNewProxyClassDesc();
  ObjectStreamClass streamClass = ObjectStreamClass.lookup(proxyClass);
  streamClass.setLoadFields(ObjectStreamClass.NO_FIELDS);

相关文章

ObjectInputStream类方法