java.io.ObjectOutputStream.computePutField()方法的使用及代码示例

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

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

ObjectOutputStream.computePutField介绍

[英]Computes the collection of emulated fields that users can manipulate to store a representation different than the one declared by the class of the object being dumped.
[中]计算模拟字段的集合,用户可以操作这些字段来存储与被转储对象的类声明的表示不同的表示。

代码示例

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

/**
 * Gets this stream's {@code PutField} object. This object provides access
 * to the persistent fields that are eventually written to the output
 * stream. It is used to transfer the values from the fields of the object
 * that is currently being written to the persistent fields.
 *
 * @return the PutField object from which persistent fields can be accessed
 *         by name.
 * @throws IOException
 *             if an I/O error occurs.
 * @throws NotActiveException
 *             if this method is not called from {@code writeObject()}.
 * @see ObjectInputStream#defaultReadObject
 */
public PutField putFields() throws IOException {
  if (currentObject == null) {
    throw new NotActiveException();
  }
  if (currentPutField == null) {
    computePutField();
  }
  return currentPutField;
}

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

/**
 * Gets this stream's {@code PutField} object. This object provides access
 * to the persistent fields that are eventually written to the output
 * stream. It is used to transfer the values from the fields of the object
 * that is currently being written to the persistent fields.
 *
 * @return the PutField object from which persistent fields can be accessed
 *         by name.
 * @throws IOException
 *             if an I/O error occurs.
 * @throws NotActiveException
 *             if this method is not called from {@code writeObject()}.
 * @see ObjectInputStream#defaultReadObject
 */
public PutField putFields() throws IOException {
  if (currentObject == null) {
    throw new NotActiveException();
  }
  if (currentPutField == null) {
    computePutField();
  }
  return currentPutField;
}

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

/**
 * Gets this stream's {@code PutField} object. This object provides access
 * to the persistent fields that are eventually written to the output
 * stream. It is used to transfer the values from the fields of the object
 * that is currently being written to the persistent fields.
 *
 * @return the PutField object from which persistent fields can be accessed
 *         by name.
 * @throws IOException
 *             if an I/O error occurs.
 * @throws NotActiveException
 *             if this method is not called from {@code writeObject()}.
 * @see ObjectInputStream#defaultReadObject
 */
public PutField putFields() throws IOException {
  if (currentObject == null) {
    throw new NotActiveException();
  }
  if (currentPutField == null) {
    computePutField();
  }
  return currentPutField;
}

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

/**
 * Gets this stream's {@code PutField} object. This object provides access
 * to the persistent fields that are eventually written to the output
 * stream. It is used to transfer the values from the fields of the object
 * that is currently being written to the persistent fields.
 *
 * @return the PutField object from which persistent fields can be accessed
 *         by name.
 * @throws IOException
 *             if an I/O error occurs.
 * @throws NotActiveException
 *             if this method is not called from {@code writeObject()}.
 * @see ObjectInputStream#defaultReadObject
 */
public PutField putFields() throws IOException {
  if (currentObject == null) {
    throw new NotActiveException();
  }
  if (currentPutField == null) {
    computePutField();
  }
  return currentPutField;
}

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

/**
 * Gets this stream's {@code PutField} object. This object provides access
 * to the persistent fields that are eventually written to the output
 * stream. It is used to transfer the values from the fields of the object
 * that is currently being written to the persistent fields.
 *
 * @return the PutField object from which persistent fields can be accessed
 *         by name.
 * @throws IOException
 *             if an I/O error occurs.
 * @throws NotActiveException
 *             if this method is not called from {@code writeObject()}.
 * @see ObjectInputStream#defaultReadObject
 */
public PutField putFields() throws IOException {
  if (currentObject == null) {
    throw new NotActiveException();
  }
  if (currentPutField == null) {
    computePutField();
  }
  return currentPutField;
}

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

/**
 * Gets this stream's {@code PutField} object. This object provides access
 * to the persistent fields that are eventually written to the output
 * stream. It is used to transfer the values from the fields of the object
 * that is currently being written to the persistent fields.
 *
 * @return the PutField object from which persistent fields can be accessed
 *         by name.
 * @throws IOException
 *             if an I/O error occurs.
 * @throws NotActiveException
 *             if this method is not called from {@code writeObject()}.
 * @see ObjectInputStream#defaultReadObject
 */
public PutField putFields() throws IOException {
  if (currentObject == null) {
    throw new NotActiveException();
  }
  if (currentPutField == null) {
    computePutField();
  }
  return currentPutField;
}

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

/**
 * Gets this stream's {@code PutField} object. This object provides access
 * to the persistent fields that are eventually written to the output
 * stream. It is used to transfer the values from the fields of the object
 * that is currently being written to the persistent fields.
 *
 * @return the PutField object from which persistent fields can be accessed
 *         by name.
 * @throws IOException
 *             if an I/O error occurs.
 * @throws NotActiveException
 *             if this method is not called from {@code writeObject()}.
 * @see ObjectInputStream#defaultReadObject
 */
public PutField putFields() throws IOException {
  if (currentObject == null) {
    throw new NotActiveException();
  }
  if (currentPutField == null) {
    computePutField();
  }
  return currentPutField;
}

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

/**
 * Gets this stream's {@code PutField} object. This object provides access
 * to the persistent fields that are eventually written to the output
 * stream. It is used to transfer the values from the fields of the object
 * that is currently being written to the persistent fields.
 *
 * @return the PutField object from which persistent fields can be accessed
 *         by name.
 * @throws IOException
 *             if an I/O error occurs.
 * @throws NotActiveException
 *             if this method is not called from {@code writeObject()}.
 * @see ObjectInputStream#defaultReadObject
 */
public PutField putFields() throws IOException {
  if (currentObject == null) {
    throw new NotActiveException();
  }
  if (currentPutField == null) {
    computePutField();
  }
  return currentPutField;
}

相关文章

ObjectOutputStream类方法