本文整理了Java中org.omg.CORBA.portable.OutputStream.orb()
方法的一些代码示例,展示了OutputStream.orb()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。OutputStream.orb()
方法的具体详情如下:
包路径:org.omg.CORBA.portable.OutputStream
类名称:OutputStream
方法名:orb
暂无
代码示例来源:origin: org.jboss.openjdk-orb/openjdk-orb
/**
* Writes a java.lang.Object as either a value or a CORBA Object.
* If <code>obj</code> is a value object or a stub object, it is written to
* <code>out.write_abstract_interface(java.lang.Object)</code>. If <code>obj</code> is an exported
* RMI-IIOP server object, the tie is found and wired to <code>obj</code>,
* then written to <code>out.write_abstract_interface(java.lang.Object)</code>.
* @param out the stream in which to write the object.
* @param obj the object to write.
*/
public void writeAbstractObject( OutputStream out, java.lang.Object obj )
{
//allow the object to be replaced
Object replacedObj = RemoteObjectSubstitutionManager.writeReplaceRemote(obj);
// Make sure we have a connected object, then
// write it out...
Object newObj = Utility.autoConnect(replacedObj,out.orb(),false);
((org.omg.CORBA_2_3.portable.OutputStream)out).write_abstract_interface(newObj);
}
代码示例来源:origin: org.jboss.spec.javax.rmi/jboss-rmi-api_1.0_spec
/**
* Writes a java.lang.Object as a CORBA Object. If <code>obj</code> is an exported RMI-IIOP server object, the tie
* is found and wired to <code>obj</code>, then written to <code>out.write_Object(org.omg.CORBA.Object)</code>. If
* <code>obj</code> is a CORBA Object, it is written to <code>out.write_Object(org.omg.CORBA.Object)</code>.
*
* @param out
* the stream in which to write the object.
* @param obj
* the object to write.
*/
public void writeRemoteObject(OutputStream out, java.lang.Object obj)
{
//allow the object to be replaced
Object replacedObj = RemoteObjectSubstitutionManager.writeReplaceRemote(obj);
// Make sure we have a connected object, then write it out...
Object newObj = Utility.autoConnect(replacedObj, out.orb(), false);
out.write_Object((org.omg.CORBA.Object) newObj);
}
代码示例来源:origin: org.jboss.openjdk-orb/openjdk-orb
/**
* Writes a java.lang.Object as a CORBA Object. If <code>obj</code> is
* an exported RMI-IIOP server object, the tie is found
* and wired to <code>obj</code>, then written to <code>out.write_Object(org.omg.CORBA.Object)</code>.
* If <code>obj</code> is a CORBA Object, it is written to
* <code>out.write_Object(org.omg.CORBA.Object)</code>.
* @param out the stream in which to write the object.
* @param obj the object to write.
*/
public void writeRemoteObject(OutputStream out, java.lang.Object obj)
{
//allow the object to be replaced
Object replacedObj = RemoteObjectSubstitutionManager.writeReplaceRemote(obj);
// Make sure we have a connected object, then
// write it out...
Object newObj = Utility.autoConnect(replacedObj,out.orb(),false);
out.write_Object((org.omg.CORBA.Object)newObj);
}
代码示例来源:origin: org.jboss.spec.javax.rmi/jboss-rmi-api_1.0_spec
/**
* Writes a java.lang.Object as either a value or a CORBA Object. If <code>obj</code> is a value object or a stub
* object, it is written to <code>out.write_abstract_interface(java.lang.Object)</code>. If <code>obj</code> is an
* exported RMI-IIOP server object, the tie is found and wired to <code>obj</code>, then written to
* <code>out.write_abstract_interface(java.lang.Object)</code>.
*
* @param out
* the stream in which to write the object.
* @param obj
* the object to write.
*/
public void writeAbstractObject(OutputStream out, java.lang.Object obj)
{
//allow the object to be replaced
Object replacedObj = RemoteObjectSubstitutionManager.writeReplaceRemote(obj);
// Make sure we have a connected object, then
// write it out...
Object newObj = Utility.autoConnect(replacedObj, out.orb(), false);
((org.omg.CORBA_2_3.portable.OutputStream) out).write_abstract_interface(newObj);
}
代码示例来源:origin: jboss/jboss-javaee-specs
/**
* Writes a java.lang.Object as a CORBA Object. If <code>obj</code> is an exported RMI-IIOP server object, the tie
* is found and wired to <code>obj</code>, then written to <code>out.write_Object(org.omg.CORBA.Object)</code>. If
* <code>obj</code> is a CORBA Object, it is written to <code>out.write_Object(org.omg.CORBA.Object)</code>.
*
* @param out
* the stream in which to write the object.
* @param obj
* the object to write.
*/
public void writeRemoteObject(OutputStream out, java.lang.Object obj)
{
//allow the object to be replaced
Object replacedObj = RemoteObjectSubstitutionManager.writeReplaceRemote(obj);
// Make sure we have a connected object, then write it out...
Object newObj = Utility.autoConnect(replacedObj, out.orb(), false);
out.write_Object((org.omg.CORBA.Object) newObj);
}
代码示例来源:origin: jboss/jboss-javaee-specs
/**
* Writes a java.lang.Object as either a value or a CORBA Object. If <code>obj</code> is a value object or a stub
* object, it is written to <code>out.write_abstract_interface(java.lang.Object)</code>. If <code>obj</code> is an
* exported RMI-IIOP server object, the tie is found and wired to <code>obj</code>, then written to
* <code>out.write_abstract_interface(java.lang.Object)</code>.
*
* @param out
* the stream in which to write the object.
* @param obj
* the object to write.
*/
public void writeAbstractObject(OutputStream out, java.lang.Object obj)
{
//allow the object to be replaced
Object replacedObj = RemoteObjectSubstitutionManager.writeReplaceRemote(obj);
// Make sure we have a connected object, then
// write it out...
Object newObj = Utility.autoConnect(replacedObj, out.orb(), false);
((org.omg.CORBA_2_3.portable.OutputStream) out).write_abstract_interface(newObj);
}
代码示例来源:origin: org.jboss.openjdk-orb/openjdk-orb
/**
* Static method for writing a CORBA standard exception to an Any.
* @param any The Any to write the SystemException into.
*/
public static void insertSystemException(SystemException ex, Any any) {
OutputStream out = any.create_output_stream();
ORB orb = (ORB)(out.orb());
String name = ex.getClass().getName();
String repID = ORBUtility.repositoryIdOf(name);
out.write_string(repID);
out.write_long(ex.minor);
out.write_long(ex.completed.value());
any.read_value(out.create_input_stream(),
getSystemExceptionTypeCode(orb, repID, name));
}
代码示例来源:origin: org.jboss.spec.javax.rmi/jboss-rmi-api_1.0_spec
/**
* Static method for writing a CORBA standard exception to an Any.
*
* @param any
* The Any to write the SystemException into.
*/
public static void insertSystemException(SystemException ex, Any any)
{
OutputStream out = any.create_output_stream();
ORB orb = (ORB) (out.orb());
String name = ex.getClass().getName();
String repID = ORBUtility.repositoryIdOf(name);
out.write_string(repID);
out.write_long(ex.minor);
out.write_long(ex.completed.value());
any.read_value(out.create_input_stream(), getSystemExceptionTypeCode(orb, repID, name));
}
代码示例来源:origin: jboss/jboss-javaee-specs
/**
* Static method for writing a CORBA standard exception to an Any.
*
* @param any
* The Any to write the SystemException into.
*/
public static void insertSystemException(SystemException ex, Any any)
{
OutputStream out = any.create_output_stream();
ORB orb = (ORB) (out.orb());
String name = ex.getClass().getName();
String repID = ORBUtility.repositoryIdOf(name);
out.write_string(repID);
out.write_long(ex.minor);
out.write_long(ex.completed.value());
any.read_value(out.create_input_stream(), getSystemExceptionTypeCode(orb, repID, name));
}
代码示例来源:origin: org.jboss.openjdk-orb/openjdk-orb
java.lang.Object obj)
org.omg.CORBA.ORB orb = out.orb();
代码示例来源:origin: org.jboss.spec.javax.rmi/jboss-rmi-api_1.0_spec
org.omg.CORBA.ORB orb = out.orb();
代码示例来源:origin: jboss/jboss-javaee-specs
org.omg.CORBA.ORB orb = out.orb();
代码示例来源:origin: org.jboss.spec.javax.rmi/jboss-rmi-api_1.0_spec
(org.jboss.com.sun.corba.se.spi.orb.ORB) s.orb(), CORBALogDomains.RPC_PRESENTATION);
throw wrapper.typecodeNotSupported();
代码示例来源:origin: org.jboss.openjdk-orb/openjdk-orb
(com.sun.corba.se.spi.orb.ORB)s.orb(),
CORBALogDomains.RPC_PRESENTATION ) ;
throw wrapper.typecodeNotSupported() ;
代码示例来源:origin: jboss/jboss-javaee-specs
(org.jboss.com.sun.corba.se.spi.orb.ORB) s.orb(), CORBALogDomains.RPC_PRESENTATION);
throw wrapper.typecodeNotSupported();
代码示例来源:origin: org.jboss.spec.javax.rmi/jboss-rmi-api_1.0_spec
TypeCodeImpl t = new TypeCodeImpl((ORB) dst.orb());
t.read_value((org.omg.CORBA_2_3.portable.InputStream) src);
t.write_value((org.omg.CORBA_2_3.portable.OutputStream) dst);
代码示例来源:origin: jboss/jboss-javaee-specs
TypeCodeImpl t = new TypeCodeImpl((ORB) dst.orb());
t.read_value((org.omg.CORBA_2_3.portable.InputStream) src);
t.write_value((org.omg.CORBA_2_3.portable.OutputStream) dst);
代码示例来源:origin: org.jboss.openjdk-orb/openjdk-orb
TypeCodeImpl t = new TypeCodeImpl((ORB)dst.orb());
t.read_value((org.omg.CORBA_2_3.portable.InputStream)src);
t.write_value((org.omg.CORBA_2_3.portable.OutputStream)dst);
内容来源于网络,如有侵权,请联系作者删除!