本文整理了Java中org.omg.CORBA.portable.OutputStream.write_any()
方法的一些代码示例,展示了OutputStream.write_any()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。OutputStream.write_any()
方法的具体详情如下:
包路径:org.omg.CORBA.portable.OutputStream
类名称:OutputStream
方法名:write_any
暂无
代码示例来源:origin: org.jboss.openjdk-orb/openjdk-orb
public void value (org.omg.CORBA.Any newValue)
{
org.omg.CORBA.portable.InputStream $in = null;
try {
org.omg.CORBA.portable.OutputStream $out = _request ("_set_value", true);
$out.write_any (newValue);
$in = _invoke ($out);
return;
} catch (org.omg.CORBA.portable.ApplicationException $ex) {
$in = $ex.getInputStream ();
String _id = $ex.getId ();
throw new org.omg.CORBA.MARSHAL (_id);
} catch (org.omg.CORBA.portable.RemarshalException $rm) {
value (newValue );
} finally {
_releaseReply ($in);
}
} // value
代码示例来源:origin: org.jacorb/jacorb-services
_os.write_any(element1);
_os.write_any(element2);
_is = _invoke(_os);
boolean _result = _is.read_boolean();
String _id = _ax.getId();
try
_ax.getInputStream().close();
throw new RuntimeException("Unexpected exception " + e.toString() );
_os.close();
throw new RuntimeException("Unexpected exception " + e.toString() );
代码示例来源:origin: org.jacorb/jacorb-services
_os.write_any(element1);
_os.write_any(element2);
_is = _invoke(_os);
int _result = _is.read_long();
String _id = _ax.getId();
try
_ax.getInputStream().close();
throw new RuntimeException("Unexpected exception " + e.toString() );
_os.close();
throw new RuntimeException("Unexpected exception " + e.toString() );
代码示例来源:origin: org.apache.yoko/yoko-spec-corba
public boolean refresh (org.omg.CORBA.Any refresh_data)
{
org.omg.CORBA.portable.InputStream $in = null;
try {
org.omg.CORBA.portable.OutputStream $out = _request ("refresh", true);
$out.write_any (refresh_data);
$in = _invoke ($out);
boolean $result = $in.read_boolean ();
return $result;
} catch (org.omg.CORBA.portable.ApplicationException $ex) {
$in = $ex.getInputStream ();
String _id = $ex.getId ();
throw new org.omg.CORBA.MARSHAL (_id);
} catch (org.omg.CORBA.portable.RemarshalException $rm) {
return refresh (refresh_data );
} finally {
_releaseReply ($in);
}
} // refresh
代码示例来源:origin: org.jacorb/jacorb-services
_os.write_any(element1);
_os.write_any(element2);
_is = _invoke(_os);
int _result = _is.read_long();
String _id = _ax.getId();
try
_ax.getInputStream().close();
throw new RuntimeException("Unexpected exception " + e.toString() );
_os.close();
throw new RuntimeException("Unexpected exception " + e.toString() );
代码示例来源:origin: org.apache.yoko/yoko-spec-corba
public boolean refresh (org.omg.CORBA.Any refresh_data)
{
org.omg.CORBA.portable.InputStream $in = null;
try {
org.omg.CORBA.portable.OutputStream $out = _request ("refresh", true);
$out.write_any (refresh_data);
$in = _invoke ($out);
boolean $result = $in.read_boolean ();
return $result;
} catch (org.omg.CORBA.portable.ApplicationException $ex) {
$in = $ex.getInputStream ();
String _id = $ex.getId ();
throw new org.omg.CORBA.MARSHAL (_id);
} catch (org.omg.CORBA.portable.RemarshalException $rm) {
return refresh (refresh_data );
} finally {
_releaseReply ($in);
}
} // refresh
代码示例来源:origin: org.jacorb/jacorb-services
_os.write_any(key1);
_os.write_any(key2);
_is = _invoke(_os);
boolean _result = _is.read_boolean();
String _id = _ax.getId();
try
_ax.getInputStream().close();
throw new RuntimeException("Unexpected exception " + e.toString() );
_os.close();
throw new RuntimeException("Unexpected exception " + e.toString() );
代码示例来源:origin: org.apache.yoko/yoko-spec-corba
public boolean refresh (org.omg.CORBA.Any refresh_data)
{
org.omg.CORBA.portable.InputStream $in = null;
try {
org.omg.CORBA.portable.OutputStream $out = _request ("refresh", true);
$out.write_any (refresh_data);
$in = _invoke ($out);
boolean $result = $in.read_boolean ();
return $result;
} catch (org.omg.CORBA.portable.ApplicationException $ex) {
$in = $ex.getInputStream ();
String _id = $ex.getId ();
throw new org.omg.CORBA.MARSHAL (_id);
} catch (org.omg.CORBA.portable.RemarshalException $rm) {
return refresh (refresh_data );
} finally {
_releaseReply ($in);
}
} // refresh
代码示例来源:origin: org.jacorb/jacorb-services
_os.write_any(key1);
_os.write_any(key2);
_is = _invoke(_os);
int _result = _is.read_long();
String _id = _ax.getId();
try
_ax.getInputStream().close();
throw new RuntimeException("Unexpected exception " + e.toString() );
_os.close();
throw new RuntimeException("Unexpected exception " + e.toString() );
代码示例来源:origin: org.jboss.openjdk-orb/openjdk-orb
/**
* Inserts an Any value into the Any represented by this DynAny.
*
* @exception InvalidValue if this DynAny has components but has a current position of -1
* @exception TypeMismatch if called on a DynAny whose current component itself has components
*/
public void insert_any (org.omg.CORBA.Any value) throws org.omg.DynamicAny.DynAnyPackage.TypeMismatch, org.omg.DynamicAny.DynAnyPackage.InvalidValue
{
org.omg.CORBA.portable.InputStream $in = null;
try {
org.omg.CORBA.portable.OutputStream $out = _request ("insert_any", true);
$out.write_any (value);
$in = _invoke ($out);
return;
} catch (org.omg.CORBA.portable.ApplicationException $ex) {
$in = $ex.getInputStream ();
String _id = $ex.getId ();
if (_id.equals ("IDL:omg.org/DynamicAny/DynAny/TypeMismatch:1.0"))
throw org.omg.DynamicAny.DynAnyPackage.TypeMismatchHelper.read ($in);
else if (_id.equals ("IDL:omg.org/DynamicAny/DynAny/InvalidValue:1.0"))
throw org.omg.DynamicAny.DynAnyPackage.InvalidValueHelper.read ($in);
else
throw new org.omg.CORBA.MARSHAL (_id);
} catch (org.omg.CORBA.portable.RemarshalException $rm) {
insert_any (value );
} finally {
_releaseReply ($in);
}
} // insert_any
代码示例来源:origin: org.jacorb/jacorb-omgapi
_os.write_any(a);
_is = _invoke(_os);
return;
String _id = _ax.getId();
try
_ax.getInputStream().close();
throw new RuntimeException("Unexpected exception " + e.toString() );
_os.close();
throw new RuntimeException("Unexpected exception " + e.toString() );
代码示例来源:origin: org.jboss.openjdk-orb/openjdk-orb
/**
* Replaces the boxed value with the specified value.
* If the DynBoxedValue represents a null valuetype, it is converted to a non-null value.
*
* @exception TypeMismatch if this object represents a non-null value box type and the type
* of the parameter is not matching the current boxed value type.
*/
public void set_boxed_value (org.omg.CORBA.Any boxed) throws org.omg.DynamicAny.DynAnyPackage.TypeMismatch
{
org.omg.CORBA.portable.InputStream $in = null;
try {
org.omg.CORBA.portable.OutputStream $out = _request ("set_boxed_value", true);
$out.write_any (boxed);
$in = _invoke ($out);
return;
} catch (org.omg.CORBA.portable.ApplicationException $ex) {
$in = $ex.getInputStream ();
String _id = $ex.getId ();
if (_id.equals ("IDL:omg.org/DynamicAny/DynAny/TypeMismatch:1.0"))
throw org.omg.DynamicAny.DynAnyPackage.TypeMismatchHelper.read ($in);
else
throw new org.omg.CORBA.MARSHAL (_id);
} catch (org.omg.CORBA.portable.RemarshalException $rm) {
set_boxed_value (boxed );
} finally {
_releaseReply ($in);
}
} // set_boxed_value
代码示例来源:origin: JacORB/JacORB
_os.write_any(a);
_is = _invoke(_os);
return;
String _id = _ax.getId();
try
_ax.getInputStream().close();
throw new RuntimeException("Unexpected exception " + e.toString() );
_os.close();
throw new RuntimeException("Unexpected exception " + e.toString() );
代码示例来源:origin: org.jboss.openjdk-orb/openjdk-orb
/**
* Inserts an Any value into the Any represented by this DynAny.
*
* @exception InvalidValue if this DynAny has components but has a current position of -1
* @exception TypeMismatch if called on a DynAny whose current component itself has components
*/
public void insert_any (org.omg.CORBA.Any value) throws org.omg.DynamicAny.DynAnyPackage.TypeMismatch, org.omg.DynamicAny.DynAnyPackage.InvalidValue
{
org.omg.CORBA.portable.InputStream $in = null;
try {
org.omg.CORBA.portable.OutputStream $out = _request ("insert_any", true);
$out.write_any (value);
$in = _invoke ($out);
return;
} catch (org.omg.CORBA.portable.ApplicationException $ex) {
$in = $ex.getInputStream ();
String _id = $ex.getId ();
if (_id.equals ("IDL:omg.org/DynamicAny/DynAny/TypeMismatch:1.0"))
throw org.omg.DynamicAny.DynAnyPackage.TypeMismatchHelper.read ($in);
else if (_id.equals ("IDL:omg.org/DynamicAny/DynAny/InvalidValue:1.0"))
throw org.omg.DynamicAny.DynAnyPackage.InvalidValueHelper.read ($in);
else
throw new org.omg.CORBA.MARSHAL (_id);
} catch (org.omg.CORBA.portable.RemarshalException $rm) {
insert_any (value );
} finally {
_releaseReply ($in);
}
} // insert_any
代码示例来源:origin: org.jacorb/jacorb-services
_os.write_any(element);
_is = _invoke(_os);
boolean _result = _is.read_boolean();
String _id = _ax.getId();
try
_ax.getInputStream().close();
throw new RuntimeException("Unexpected exception " + e.toString() );
_os.close();
throw new RuntimeException("Unexpected exception " + e.toString() );
代码示例来源:origin: org.jboss.openjdk-orb/openjdk-orb
try {
org.omg.CORBA.portable.OutputStream $out = _request ("from_any", true);
$out.write_any (value);
$in = _invoke ($out);
return;
} catch (org.omg.CORBA.portable.ApplicationException $ex) {
$in = $ex.getInputStream ();
String _id = $ex.getId ();
if (_id.equals ("IDL:omg.org/DynamicAny/DynAny/TypeMismatch:1.0"))
throw org.omg.DynamicAny.DynAnyPackage.TypeMismatchHelper.read ($in);
代码示例来源:origin: org.jacorb/jacorb-services
_os.write_any(key);
_is = _invoke(_os);
boolean _result = _is.read_boolean();
String _id = _ax.getId();
try
_ax.getInputStream().close();
throw new RuntimeException("Unexpected exception " + e.toString() );
_os.close();
throw new RuntimeException("Unexpected exception " + e.toString() );
代码示例来源:origin: org.jboss.openjdk-orb/openjdk-orb
try {
org.omg.CORBA.portable.OutputStream $out = _request ("from_any", true);
$out.write_any (value);
$in = _invoke ($out);
return;
} catch (org.omg.CORBA.portable.ApplicationException $ex) {
$in = $ex.getInputStream ();
String _id = $ex.getId ();
if (_id.equals ("IDL:omg.org/DynamicAny/DynAny/TypeMismatch:1.0"))
throw org.omg.DynamicAny.DynAnyPackage.TypeMismatchHelper.read ($in);
代码示例来源:origin: org.jacorb/jacorb-services
_os.write_any(element);
_is = _invoke(_os);
boolean _result = _is.read_boolean();
String _id = _ax.getId();
try
_ax.getInputStream().close();
throw new RuntimeException("Unexpected exception " + e.toString() );
_os.close();
throw new RuntimeException("Unexpected exception " + e.toString() );
代码示例来源:origin: org.apache.yoko/yoko-spec-corba
public void audit_write (org.omg.Security.AuditEventType event_type, org.omg.SecurityLevel2.Credentials[] creds, org.omg.TimeBase.UtcT time, org.omg.Security.SelectorValue[] descriptors, org.omg.CORBA.Any event_specific_data)
{
org.omg.CORBA.portable.InputStream $in = null;
try {
org.omg.CORBA.portable.OutputStream $out = _request ("audit_write", true);
org.omg.Security.AuditEventTypeHelper.write ($out, event_type);
org.omg.SecurityLevel2.CredentialsListHelper.write ($out, creds);
org.omg.Security.UtcTHelper.write ($out, time);
org.omg.Security.SelectorValueListHelper.write ($out, descriptors);
$out.write_any (event_specific_data);
$in = _invoke ($out);
return;
} catch (org.omg.CORBA.portable.ApplicationException $ex) {
$in = $ex.getInputStream ();
String _id = $ex.getId ();
throw new org.omg.CORBA.MARSHAL (_id);
} catch (org.omg.CORBA.portable.RemarshalException $rm) {
audit_write (event_type, creds, time, descriptors, event_specific_data );
} finally {
_releaseReply ($in);
}
} // audit_write
内容来源于网络,如有侵权,请联系作者删除!