org.omg.CORBA_2_3.portable.OutputStream.create_input_stream()方法的使用及代码示例

x33g5p2x  于2022-01-26 转载在 其他  
字(2.8k)|赞(0)|评价(0)|浏览(113)

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

OutputStream.create_input_stream介绍

暂无

代码示例

代码示例来源:origin: org.jboss.openjdk-orb/openjdk-orb

public Object copy(Object obj) {
  if (obj instanceof Remote) {
    // Yes, so make sure it is connected and converted
    // to a stub (if needed)...
    return Utility.autoConnect(obj,orb,true);
  }
  OutputStream out = (OutputStream)orb.create_output_stream();
  out.write_value((Serializable)obj);
  InputStream in = (InputStream)out.create_input_stream();
  return in.read_value();
}

代码示例来源:origin: org.apache.yoko/yoko-rmi-impl

Object copyResult(Object result, boolean sameState, ORB orb)
    throws RemoteException {
  if (result == null) {
    return null;
  }
  if (!sameState) {
    if (return_type.copyBetweenStates()) {
      try {
        org.omg.CORBA_2_3.portable.OutputStream out = (org.omg.CORBA_2_3.portable.OutputStream) orb
            .create_output_stream();
        return_type.write(out, result);
        org.omg.CORBA_2_3.portable.InputStream in = (org.omg.CORBA_2_3.portable.InputStream) out
            .create_input_stream();
        return return_type.read(in);
      } catch (org.omg.CORBA.SystemException ex) {
        logger.log(Level.FINE, "Exception occurred copying result", ex); 
        throw Util.mapSystemException(ex);
      }
    }
  } else if (copyWithinState) {
    CopyState state = new CopyState(getTypeRepository());
    try {
      return state.copy(result);
    } catch (CopyRecursionException e) {
      throw new MarshalException("cannot copy recursive value?");
    }
  }
  return result;
}

代码示例来源:origin: org.jboss.spec.javax.rmi/jboss-rmi-api_1.0_spec

.create_output_stream();
typeCode.copy(in, out);
stream = (CDRInputStream) out.create_input_stream();

代码示例来源:origin: jboss/jboss-javaee-specs

.create_output_stream();
typeCode.copy(in, out);
stream = (CDRInputStream) out.create_input_stream();

代码示例来源:origin: org.jboss.openjdk-orb/openjdk-orb

(org.omg.CORBA_2_3.portable.OutputStream)orb.create_output_stream();
typeCode.copy((org.omg.CORBA_2_3.portable.InputStream)in, out);
stream = (CDRInputStream)out.create_input_stream();

代码示例来源:origin: org.apache.yoko/yoko-rmi-impl

.create_input_stream();

代码示例来源:origin: org.jboss.openjdk-orb/openjdk-orb

out.write_value((Serializable)obj);
org.omg.CORBA_2_3.portable.InputStream in =
  (org.omg.CORBA_2_3.portable.InputStream)out.create_input_stream();
return in.read_value();

代码示例来源:origin: org.jboss.spec.javax.rmi/jboss-rmi-api_1.0_spec

out.write_value((Serializable) obj);
org.omg.CORBA_2_3.portable.InputStream in = (org.omg.CORBA_2_3.portable.InputStream) out
    .create_input_stream();
return in.read_value();

代码示例来源:origin: jboss/jboss-javaee-specs

out.write_value((Serializable) obj);
org.omg.CORBA_2_3.portable.InputStream in = (org.omg.CORBA_2_3.portable.InputStream) out
    .create_input_stream();
return in.read_value();

相关文章