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

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

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

ObjectOutputStream.writeFieldValues介绍

[英]Writes a collection of field values for the emulated fields emulatedFields
[中]为仿真字段SimulatedFields写入字段值的集合

代码示例

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

/**
 * Default method to write objects to this stream. Serializable fields
 * defined in the object's class and superclasses are written to the output
 * stream.
 *
 * @throws IOException
 *             if an error occurs while writing to the target stream.
 * @throws NotActiveException
 *             if this method is not called from {@code writeObject()}.
 * @see ObjectInputStream#defaultReadObject
 */
public void defaultWriteObject() throws IOException {
  if (currentObject == null) {
    throw new NotActiveException();
  }
  writeFieldValues(currentObject, currentClass);
}

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

/**
 * Writes the fields of the object currently being written to the target
 * stream. The field values are buffered in the currently active {@code
 * PutField} object, which can be accessed by calling {@code putFields()}.
 *
 * @throws IOException
 *             if an error occurs while writing to the target stream.
 * @throws NotActiveException
 *             if there are no fields to write to the target stream.
 * @see #putFields
 */
public void writeFields() throws IOException {
  // Has to have fields to write
  if (currentPutField == null) {
    throw new NotActiveException();
  }
  writeFieldValues(currentPutField);
}

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

/**
 * Default method to write objects to this stream. Serializable fields
 * defined in the object's class and superclasses are written to the output
 * stream.
 *
 * @throws IOException
 *             if an error occurs while writing to the target stream.
 * @throws NotActiveException
 *             if this method is not called from {@code writeObject()}.
 * @see ObjectInputStream#defaultReadObject
 */
public void defaultWriteObject() throws IOException {
  if (currentObject == null) {
    throw new NotActiveException();
  }
  writeFieldValues(currentObject, currentClass);
}

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

/**
 * Default method to write objects to this stream. Serializable fields
 * defined in the object's class and superclasses are written to the output
 * stream.
 *
 * @throws IOException
 *             if an error occurs while writing to the target stream.
 * @throws NotActiveException
 *             if this method is not called from {@code writeObject()}.
 * @see ObjectInputStream#defaultReadObject
 */
public void defaultWriteObject() throws IOException {
  if (currentObject == null) {
    throw new NotActiveException();
  }
  writeFieldValues(currentObject, currentClass);
}

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

/**
 * Writes the fields of the object currently being written to the target
 * stream. The field values are buffered in the currently active {@code
 * PutField} object, which can be accessed by calling {@code putFields()}.
 *
 * @throws IOException
 *             if an error occurs while writing to the target stream.
 * @throws NotActiveException
 *             if there are no fields to write to the target stream.
 * @see #putFields
 */
public void writeFields() throws IOException {
  // Has to have fields to write
  if (currentPutField == null) {
    throw new NotActiveException();
  }
  writeFieldValues(currentPutField);
}

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

/**
 * Writes the fields of the object currently being written to the target
 * stream. The field values are buffered in the currently active {@code
 * PutField} object, which can be accessed by calling {@code putFields()}.
 *
 * @throws IOException
 *             if an error occurs while writing to the target stream.
 * @throws NotActiveException
 *             if there are no fields to write to the target stream.
 * @see #putFields
 */
public void writeFields() throws IOException {
  // Has to have fields to write
  if (currentPutField == null) {
    throw new NotActiveException();
  }
  writeFieldValues(currentPutField);
}

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

/**
 * Default method to write objects to this stream. Serializable fields
 * defined in the object's class and superclasses are written to the output
 * stream.
 *
 * @throws IOException
 *             if an error occurs while writing to the target stream.
 * @throws NotActiveException
 *             if this method is not called from {@code writeObject()}.
 * @see ObjectInputStream#defaultReadObject
 */
public void defaultWriteObject() throws IOException {
  if (currentObject == null) {
    throw new NotActiveException();
  }
  writeFieldValues(currentObject, currentClass);
}

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

/**
 * Default method to write objects to this stream. Serializable fields
 * defined in the object's class and superclasses are written to the output
 * stream.
 *
 * @throws IOException
 *             if an error occurs while writing to the target stream.
 * @throws NotActiveException
 *             if this method is not called from {@code writeObject()}.
 * @see ObjectInputStream#defaultReadObject
 */
public void defaultWriteObject() throws IOException {
  if (currentObject == null) {
    throw new NotActiveException();
  }
  writeFieldValues(currentObject, currentClass);
}

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

/**
 * Default method to write objects to this stream. Serializable fields
 * defined in the object's class and superclasses are written to the output
 * stream.
 *
 * @throws IOException
 *             if an error occurs while writing to the target stream.
 * @throws NotActiveException
 *             if this method is not called from {@code writeObject()}.
 * @see ObjectInputStream#defaultReadObject
 */
public void defaultWriteObject() throws IOException {
  if (currentObject == null) {
    throw new NotActiveException();
  }
  writeFieldValues(currentObject, currentClass);
}

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

/**
 * Default method to write objects to this stream. Serializable fields
 * defined in the object's class and superclasses are written to the output
 * stream.
 *
 * @throws IOException
 *             if an error occurs while writing to the target stream.
 * @throws NotActiveException
 *             if this method is not called from {@code writeObject()}.
 * @see ObjectInputStream#defaultReadObject
 */
public void defaultWriteObject() throws IOException {
  if (currentObject == null) {
    throw new NotActiveException();
  }
  writeFieldValues(currentObject, currentClass);
}

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

/**
 * Default method to write objects to this stream. Serializable fields
 * defined in the object's class and superclasses are written to the output
 * stream.
 *
 * @throws IOException
 *             if an error occurs while writing to the target stream.
 * @throws NotActiveException
 *             if this method is not called from {@code writeObject()}.
 * @see ObjectInputStream#defaultReadObject
 */
public void defaultWriteObject() throws IOException {
  if (currentObject == null) {
    throw new NotActiveException();
  }
  writeFieldValues(currentObject, currentClass);
}

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

/**
 * Writes the fields of the object currently being written to the target
 * stream. The field values are buffered in the currently active {@code
 * PutField} object, which can be accessed by calling {@code putFields()}.
 *
 * @throws IOException
 *             if an error occurs while writing to the target stream.
 * @throws NotActiveException
 *             if there are no fields to write to the target stream.
 * @see #putFields
 */
public void writeFields() throws IOException {
  // Has to have fields to write
  if (currentPutField == null) {
    throw new NotActiveException();
  }
  writeFieldValues(currentPutField);
}

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

/**
 * Writes the fields of the object currently being written to the target
 * stream. The field values are buffered in the currently active {@code
 * PutField} object, which can be accessed by calling {@code putFields()}.
 *
 * @throws IOException
 *             if an error occurs while writing to the target stream.
 * @throws NotActiveException
 *             if there are no fields to write to the target stream.
 * @see #putFields
 */
public void writeFields() throws IOException {
  // Has to have fields to write
  if (currentPutField == null) {
    throw new NotActiveException();
  }
  writeFieldValues(currentPutField);
}

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

/**
 * Writes the fields of the object currently being written to the target
 * stream. The field values are buffered in the currently active {@code
 * PutField} object, which can be accessed by calling {@code putFields()}.
 *
 * @throws IOException
 *             if an error occurs while writing to the target stream.
 * @throws NotActiveException
 *             if there are no fields to write to the target stream.
 * @see #putFields
 */
public void writeFields() throws IOException {
  // Has to have fields to write
  if (currentPutField == null) {
    throw new NotActiveException();
  }
  writeFieldValues(currentPutField);
}

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

/**
 * Writes the fields of the object currently being written to the target
 * stream. The field values are buffered in the currently active {@code
 * PutField} object, which can be accessed by calling {@code putFields()}.
 *
 * @throws IOException
 *             if an error occurs while writing to the target stream.
 * @throws NotActiveException
 *             if there are no fields to write to the target stream.
 * @see #putFields
 */
public void writeFields() throws IOException {
  // Has to have fields to write
  if (currentPutField == null) {
    throw new NotActiveException();
  }
  writeFieldValues(currentPutField);
}

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

/**
 * Writes the fields of the object currently being written to the target
 * stream. The field values are buffered in the currently active {@code
 * PutField} object, which can be accessed by calling {@code putFields()}.
 *
 * @throws IOException
 *             if an error occurs while writing to the target stream.
 * @throws NotActiveException
 *             if there are no fields to write to the target stream.
 * @see #putFields
 */
public void writeFields() throws IOException {
  // Has to have fields to write
  if (currentPutField == null) {
    throw new NotActiveException();
  }
  writeFieldValues(currentPutField);
}

相关文章

ObjectOutputStream类方法