本文整理了Java中org.omg.CORBA.portable.OutputStream.write_boolean()
方法的一些代码示例,展示了OutputStream.write_boolean()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。OutputStream.write_boolean()
方法的具体详情如下:
包路径:org.omg.CORBA.portable.OutputStream
类名称:OutputStream
方法名:write_boolean
暂无
代码示例来源:origin: org.apache.yoko/yoko-core
private org.omg.CORBA.portable.OutputStream
_OB_att_get_manual(org.omg.CORBA.portable.InputStream in,
org.omg.CORBA.portable.ResponseHandler handler)
{
boolean _ob_r = manual();
org.omg.CORBA.portable.OutputStream out = handler.createReply();
out.write_boolean(_ob_r);
return out;
}
代码示例来源:origin: org.jacorb/jacorb-services
public org.omg.CORBA.portable.OutputStream _invoke(String method, org.omg.CORBA.portable.InputStream _input, org.omg.CORBA.portable.ResponseHandler handler)
throws org.omg.CORBA.SystemException
{
org.omg.CORBA.portable.OutputStream _out = null;
// do something
// quick lookup of operation
java.lang.Integer opsIndex = (java.lang.Integer)m_opsHash.get ( method );
if ( null == opsIndex )
throw new org.omg.CORBA.BAD_OPERATION(method + " not found");
switch ( opsIndex.intValue() )
{
case 0: // get_trigger_value
{
_out = handler.createReply();
_out.write_boolean(get_trigger_value());
break;
}
}
return _out;
}
代码示例来源:origin: org.jboss.openjdk-orb/openjdk-orb
public void is_abstract (boolean newIs_abstract)
{
org.omg.CORBA.portable.InputStream $in = null;
try {
org.omg.CORBA.portable.OutputStream $out = _request ("_set_is_abstract", true);
$out.write_boolean (newIs_abstract);
$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) {
is_abstract (newIs_abstract );
} finally {
_releaseReply ($in);
}
} // is_abstract
代码示例来源:origin: org.apache.yoko/yoko-spec-corba
public static void
write(org.omg.CORBA.portable.OutputStream out, MessageHeader_1_0 val)
{
int len0 = val.magic.length;
if(len0 != 4)
throw new org.omg.CORBA.MARSHAL();
out.write_char_array(val.magic, 0, len0);
VersionHelper.write(out, val.GIOP_version);
out.write_boolean(val.byte_order);
out.write_octet(val.message_type);
out.write_ulong(val.message_size);
}
}
代码示例来源:origin: org.jboss.openjdk-orb/openjdk-orb
public void is_truncatable (boolean newIs_truncatable)
{
org.omg.CORBA.portable.InputStream $in = null;
try {
org.omg.CORBA.portable.OutputStream $out = _request ("_set_is_truncatable", true);
$out.write_boolean (newIs_truncatable);
$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) {
is_truncatable (newIs_truncatable );
} finally {
_releaseReply ($in);
}
} // is_truncatable
代码示例来源:origin: org.jacorb/jacorb-services
public org.omg.CORBA.portable.OutputStream _invoke(String method, org.omg.CORBA.portable.InputStream _input, org.omg.CORBA.portable.ResponseHandler handler)
throws org.omg.CORBA.SystemException
{
org.omg.CORBA.portable.OutputStream _out = null;
// do something
// quick lookup of operation
java.lang.Integer opsIndex = (java.lang.Integer)m_opsHash.get ( method );
if ( null == opsIndex )
throw new org.omg.CORBA.BAD_OPERATION(method + " not found");
switch ( opsIndex.intValue() )
{
case 0: // do_on
{
org.omg.CORBA.Any _arg0=_input.read_any();
_out = handler.createReply();
_out.write_boolean(do_on(_arg0));
break;
}
}
return _out;
}
代码示例来源:origin: org.apache.yoko/yoko-spec-corba
private org.omg.CORBA.portable.OutputStream
_OB_att_get_reply_available(org.omg.CORBA.portable.InputStream in,
org.omg.CORBA.portable.ResponseHandler handler)
{
boolean _ob_r = reply_available();
org.omg.CORBA.portable.OutputStream out = handler.createReply();
out.write_boolean(_ob_r);
return out;
}
代码示例来源:origin: org.jboss.openjdk-orb/openjdk-orb
public static void write (org.omg.CORBA.portable.OutputStream ostream, com.sun.corba.se.spi.GIOP.MessageHeader_1_0 value)
{
if (value.magic.length != (4))
throw new org.omg.CORBA.MARSHAL (0, org.omg.CORBA.CompletionStatus.COMPLETED_MAYBE);
for (int _i0 = 0;_i0 < (4); ++_i0)
{
ostream.write_char (value.magic[_i0]);
}
com.sun.corba.se.spi.GIOP.VersionHelper.write (ostream, value.GIOP_version);
ostream.write_boolean (value.byte_order);
ostream.write_octet (value.message_type);
ostream.write_ulong (value.message_size);
}
代码示例来源:origin: org.jboss.openjdk-orb/openjdk-orb
public void is_abstract (boolean newIs_abstract)
{
org.omg.CORBA.portable.InputStream $in = null;
try {
org.omg.CORBA.portable.OutputStream $out = _request ("_set_is_abstract", true);
$out.write_boolean (newIs_abstract);
$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) {
is_abstract (newIs_abstract );
} finally {
_releaseReply ($in);
}
} // is_abstract
代码示例来源:origin: org.jboss.openjdk-orb/openjdk-orb
public org.omg.CORBA.portable.OutputStream _invoke (String $method,
org.omg.CORBA.portable.InputStream in,
org.omg.CORBA.portable.ResponseHandler $rh)
{
org.omg.CORBA.portable.OutputStream out = null;
java.lang.Integer __method = (java.lang.Integer)_methods.get ($method);
if (__method == null)
throw new org.omg.CORBA.BAD_OPERATION (0, org.omg.CORBA.CompletionStatus.COMPLETED_MAYBE);
switch (__method.intValue ())
{
/** Method used to cause ORB to activate the named adapter, if possible.
* This will cause the named POA to register itself with the activator as
* a side effect. This should always happen before this call can complete.
* This method returns true if adapter activation succeeded, otherwise it
* returns false.
*/
case 0: // PortableActivationIDL/ORBProxy/activate_adapter
{
String name[] = org.omg.PortableInterceptor.AdapterNameHelper.read (in);
boolean $result = false;
$result = this.activate_adapter (name);
out = $rh.createReply();
out.write_boolean ($result);
break;
}
default:
throw new org.omg.CORBA.BAD_OPERATION (0, org.omg.CORBA.CompletionStatus.COMPLETED_MAYBE);
}
return out;
} // _invoke
代码示例来源:origin: org.apache.yoko/yoko-core
private org.omg.CORBA.portable.OutputStream
_OB_att_get_activatePOAs(org.omg.CORBA.portable.InputStream in,
org.omg.CORBA.portable.ResponseHandler handler)
{
boolean _ob_r = activatePOAs();
org.omg.CORBA.portable.OutputStream out = handler.createReply();
out.write_boolean(_ob_r);
return out;
}
代码示例来源:origin: org.fudaa.business/dodico-corba
public void noyauV5P2 (boolean newNoyauV5P2)
{
org.omg.CORBA.portable.InputStream $in = null;
try {
org.omg.CORBA.portable.OutputStream $out = _request ("_set_noyauV5P2", true);
$out.write_boolean (newNoyauV5P2);
$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) {
noyauV5P2 (newNoyauV5P2 );
} finally {
_releaseReply ($in);
}
} // noyauV5P2
代码示例来源:origin: org.jacorb/jacorb-services
throw new org.omg.CORBA.BAD_OPERATION(method + " not found");
switch ( opsIndex.intValue() )
_out = handler.createReply();
_out.write_boolean(supports_proxy_offers());
break;
_out = handler.createReply();
_out.write_Object(type_repos());
break;
_out = handler.createReply();
_out.write_boolean(supports_dynamic_properties());
break;
_out = handler.createReply();
_out.write_boolean(supports_modifiable_properties());
break;
代码示例来源:origin: org.jacorb/jacorb
_out = handler.createReply();
_out.write_Object(_get_policy(_input.read_Object() , _input.read_long() ) );
_out = handler.createReply();
_out.write_boolean(self._is_a(_input.read_string() ));
_out = handler.createReply();
_out.write_Object(self._get_interface_def() );
_out = handler.createReply();
_out.write_boolean(self._non_existent() );
代码示例来源:origin: org.jboss.openjdk-orb/openjdk-orb
public void is_abstract (boolean newIs_abstract)
{
org.omg.CORBA.portable.InputStream $in = null;
try {
org.omg.CORBA.portable.OutputStream $out = _request ("_set_is_abstract", true);
$out.write_boolean (newIs_abstract);
$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) {
is_abstract (newIs_abstract );
} finally {
_releaseReply ($in);
}
} // is_abstract
代码示例来源:origin: org.jacorb/jacorb-services
public org.omg.CORBA.portable.OutputStream _invoke(String method, org.omg.CORBA.portable.InputStream _input, org.omg.CORBA.portable.ResponseHandler handler)
throws org.omg.CORBA.SystemException
{
org.omg.CORBA.portable.OutputStream _out = null;
// do something
// quick lookup of operation
java.lang.Integer opsIndex = (java.lang.Integer)m_opsHash.get ( method );
if ( null == opsIndex )
throw new org.omg.CORBA.BAD_OPERATION(method + " not found");
switch ( opsIndex.intValue() )
{
case 0: // set_trigger_value
{
boolean _arg0=_input.read_boolean();
_out = handler.createReply();
set_trigger_value(_arg0);
break;
}
case 1: // get_trigger_value
{
_out = handler.createReply();
_out.write_boolean(get_trigger_value());
break;
}
}
return _out;
}
代码示例来源:origin: org.jboss.openjdk-orb/openjdk-orb
public void is_abstract (boolean newIs_abstract)
{
org.omg.CORBA.portable.InputStream $in = null;
try {
org.omg.CORBA.portable.OutputStream $out = _request ("_set_is_abstract", true);
$out.write_boolean (newIs_abstract);
$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) {
is_abstract (newIs_abstract );
} finally {
_releaseReply ($in);
}
} // is_abstract
代码示例来源:origin: org.jacorb/jacorb-services
throw new org.omg.CORBA.BAD_OPERATION(method + " not found");
switch ( opsIndex.intValue() )
_out = handler.createReply();
purge();
break;
_out = handler.createReply();
_out.write_boolean(unfilled());
break;
_out = handler.createReply();
_out.write_ulong(size());
break;
代码示例来源:origin: org.jboss.openjdk-orb/openjdk-orb
public void is_abstract (boolean newIs_abstract)
{
org.omg.CORBA.portable.InputStream $in = null;
try {
org.omg.CORBA.portable.OutputStream $out = _request ("_set_is_abstract", true);
$out.write_boolean (newIs_abstract);
$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) {
is_abstract (newIs_abstract );
} finally {
_releaseReply ($in);
}
} // is_abstract
代码示例来源:origin: org.apache.yoko/yoko-spec-corba
public org.omg.CORBA.portable.OutputStream _invoke (String $method,
org.omg.CORBA.portable.InputStream in,
org.omg.CORBA.portable.ResponseHandler $rh)
{
org.omg.CORBA.portable.OutputStream out = null;
java.lang.Integer __method = (java.lang.Integer)_methods.get ($method);
if (__method == null)
throw new org.omg.CORBA.BAD_OPERATION (0, org.omg.CORBA.CompletionStatus.COMPLETED_MAYBE);
switch (__method.intValue ())
{
case 0: // SecurityLevel2/AccessDecision/access_allowed
{
org.omg.SecurityLevel2.Credentials cred_list[] = org.omg.SecurityLevel2.CredentialsListHelper.read (in);
org.omg.CORBA.Object target = org.omg.CORBA.ObjectHelper.read (in);
String operation_name = org.omg.CORBA.IdentifierHelper.read (in);
String target_interface_name = org.omg.CORBA.IdentifierHelper.read (in);
boolean $result = false;
$result = this.access_allowed (cred_list, target, operation_name, target_interface_name);
out = $rh.createReply();
out.write_boolean ($result);
break;
}
default:
throw new org.omg.CORBA.BAD_OPERATION (0, org.omg.CORBA.CompletionStatus.COMPLETED_MAYBE);
}
return out;
} // _invoke
内容来源于网络,如有侵权,请联系作者删除!