本文整理了Java中java.io.ObjectOutputStream.computePutField()
方法的一些代码示例,展示了ObjectOutputStream.computePutField()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。ObjectOutputStream.computePutField()
方法的具体详情如下:
包路径:java.io.ObjectOutputStream
类名称: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;
}
内容来源于网络,如有侵权,请联系作者删除!