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

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

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

ObjectOutputStream.writeObjectInternal介绍

[英]Write object object into the receiver's underlying stream.
[中]将对象写入接收方的底层流。

代码示例

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

/**
 * Write exception {@code ex} into the receiver. It is assumed the
 * exception has not been dumped yet. Returns
 * the handle for this object (exception) which is dumped here.
 * This is used to dump the exception instance that happened (if any) when
 * dumping the original object graph. The set of seen objects will be reset
 * just before and just after dumping this exception object.
 *
 * When exceptions are found normally in the object graph, they are dumped
 * as a regular object, and not by this method. In that case, the set of
 * "known objects" is not reset.
 *
 * @param ex
 *            Exception object to dump
 *
 * @throws IOException
 *             If an IO exception happened when writing the exception
 *             object.
 */
private void writeNewException(Exception ex) throws IOException {
  output.writeByte(TC_EXCEPTION);
  resetSeenObjects();
  writeObjectInternal(ex, false, false, false); // No replacements
  resetSeenObjects();
}

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

writeObjectInternal(object, unshared, true, true);
if (setOutput) {
  primitiveTypes = output;

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

int replacementHandle = writeObjectInternal(replObj, false, false,
        computeStreamReplacement);
if (streamReplacement != object) {
  int replacementHandle = writeObjectInternal(streamReplacement, false,
      computeClassBasedReplacement, false);

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

/**
 * Write exception {@code ex} into the receiver. It is assumed the
 * exception has not been dumped yet. Returns
 * the handle for this object (exception) which is dumped here.
 * This is used to dump the exception instance that happened (if any) when
 * dumping the original object graph. The set of seen objects will be reset
 * just before and just after dumping this exception object.
 *
 * When exceptions are found normally in the object graph, they are dumped
 * as a regular object, and not by this method. In that case, the set of
 * "known objects" is not reset.
 *
 * @param ex
 *            Exception object to dump
 *
 * @throws IOException
 *             If an IO exception happened when writing the exception
 *             object.
 */
private void writeNewException(Exception ex) throws IOException {
  output.writeByte(TC_EXCEPTION);
  resetSeenObjects();
  writeObjectInternal(ex, false, false, false); // No replacements
  resetSeenObjects();
}

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

/**
 * Write exception {@code ex} into the receiver. It is assumed the
 * exception has not been dumped yet. Returns
 * the handle for this object (exception) which is dumped here.
 * This is used to dump the exception instance that happened (if any) when
 * dumping the original object graph. The set of seen objects will be reset
 * just before and just after dumping this exception object.
 *
 * When exceptions are found normally in the object graph, they are dumped
 * as a regular object, and not by this method. In that case, the set of
 * "known objects" is not reset.
 *
 * @param ex
 *            Exception object to dump
 *
 * @throws IOException
 *             If an IO exception happened when writing the exception
 *             object.
 */
private void writeNewException(Exception ex) throws IOException {
  output.writeByte(TC_EXCEPTION);
  resetSeenObjects();
  writeObjectInternal(ex, false, false, false); // No replacements
  resetSeenObjects();
}

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

/**
 * Write exception {@code ex} into the receiver. It is assumed the
 * exception has not been dumped yet. Returns
 * the handle for this object (exception) which is dumped here.
 * This is used to dump the exception instance that happened (if any) when
 * dumping the original object graph. The set of seen objects will be reset
 * just before and just after dumping this exception object.
 *
 * When exceptions are found normally in the object graph, they are dumped
 * as a regular object, and not by this method. In that case, the set of
 * "known objects" is not reset.
 *
 * @param ex
 *            Exception object to dump
 *
 * @throws IOException
 *             If an IO exception happened when writing the exception
 *             object.
 */
private void writeNewException(Exception ex) throws IOException {
  output.writeByte(TC_EXCEPTION);
  resetSeenObjects();
  writeObjectInternal(ex, false, false, false); // No replacements
  resetSeenObjects();
}

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

/**
 * Write exception {@code ex} into the receiver. It is assumed the
 * exception has not been dumped yet. Returns
 * the handle for this object (exception) which is dumped here.
 * This is used to dump the exception instance that happened (if any) when
 * dumping the original object graph. The set of seen objects will be reset
 * just before and just after dumping this exception object.
 *
 * When exceptions are found normally in the object graph, they are dumped
 * as a regular object, and not by this method. In that case, the set of
 * "known objects" is not reset.
 *
 * @param ex
 *            Exception object to dump
 *
 * @throws IOException
 *             If an IO exception happened when writing the exception
 *             object.
 */
private void writeNewException(Exception ex) throws IOException {
  output.writeByte(TC_EXCEPTION);
  resetSeenObjects();
  writeObjectInternal(ex, false, false, false); // No replacements
  resetSeenObjects();
}

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

/**
 * Write exception {@code ex} into the receiver. It is assumed the
 * exception has not been dumped yet. Returns
 * the handle for this object (exception) which is dumped here.
 * This is used to dump the exception instance that happened (if any) when
 * dumping the original object graph. The set of seen objects will be reset
 * just before and just after dumping this exception object.
 *
 * When exceptions are found normally in the object graph, they are dumped
 * as a regular object, and not by this method. In that case, the set of
 * "known objects" is not reset.
 *
 * @param ex
 *            Exception object to dump
 *
 * @throws IOException
 *             If an IO exception happened when writing the exception
 *             object.
 */
private void writeNewException(Exception ex) throws IOException {
  output.writeByte(TC_EXCEPTION);
  resetSeenObjects();
  writeObjectInternal(ex, false, false, false); // No replacements
  resetSeenObjects();
}

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

/**
 * Write exception {@code ex} into the receiver. It is assumed the
 * exception has not been dumped yet. Returns
 * the handle for this object (exception) which is dumped here.
 * This is used to dump the exception instance that happened (if any) when
 * dumping the original object graph. The set of seen objects will be reset
 * just before and just after dumping this exception object.
 *
 * When exceptions are found normally in the object graph, they are dumped
 * as a regular object, and not by this method. In that case, the set of
 * "known objects" is not reset.
 *
 * @param ex
 *            Exception object to dump
 *
 * @throws IOException
 *             If an IO exception happened when writing the exception
 *             object.
 */
private void writeNewException(Exception ex) throws IOException {
  output.writeByte(TC_EXCEPTION);
  resetSeenObjects();
  writeObjectInternal(ex, false, false, false); // No replacements
  resetSeenObjects();
}

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

/**
 * Write exception {@code ex} into the receiver. It is assumed the
 * exception has not been dumped yet. Returns
 * the handle for this object (exception) which is dumped here.
 * This is used to dump the exception instance that happened (if any) when
 * dumping the original object graph. The set of seen objects will be reset
 * just before and just after dumping this exception object.
 *
 * When exceptions are found normally in the object graph, they are dumped
 * as a regular object, and not by this method. In that case, the set of
 * "known objects" is not reset.
 *
 * @param ex
 *            Exception object to dump
 *
 * @throws IOException
 *             If an IO exception happened when writing the exception
 *             object.
 */
private void writeNewException(Exception ex) throws IOException {
  output.writeByte(TC_EXCEPTION);
  resetSeenObjects();
  writeObjectInternal(ex, false, false, false); // No replacements
  resetSeenObjects();
}

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

writeObjectInternal(object, unshared, true, true);
if (setOutput) {
  primitiveTypes = output;

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

writeObjectInternal(object, unshared, true, true);
if (setOutput) {
  primitiveTypes = output;

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

writeObjectInternal(object, unshared, true, true);
if (setOutput) {
  primitiveTypes = output;

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

writeObjectInternal(object, unshared, true, true);
if (setOutput) {
  primitiveTypes = output;

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

writeObjectInternal(object, unshared, true, true);
if (setOutput) {
  primitiveTypes = output;

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

writeObjectInternal(object, unshared, true, true);
if (setOutput) {
  primitiveTypes = output;

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

writeObjectInternal(object, unshared, true, true);
if (setOutput) {
  primitiveTypes = output;

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

int replacementHandle = writeObjectInternal(replObj, false, false,
        computeStreamReplacement);
if (streamReplacement != object) {
  int replacementHandle = writeObjectInternal(streamReplacement, false,
      computeClassBasedReplacement, false);

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

int replacementHandle = writeObjectInternal(replObj, false, false,
        computeStreamReplacement);
if (streamReplacement != object) {
  int replacementHandle = writeObjectInternal(streamReplacement, false,
      computeClassBasedReplacement, false);

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

int replacementHandle = writeObjectInternal(replObj, false, false,
        computeStreamReplacement);
if (streamReplacement != object) {
  int replacementHandle = writeObjectInternal(streamReplacement, false,
      computeClassBasedReplacement, false);

相关文章

ObjectOutputStream类方法