/** This is called from the ORB after the DynamicImplementation.invoke
* returns. Here we marshal the return value and inout/out params.
*/
public void marshalReplyParams(OutputStream os)
{
// marshal the operation return value
_resultAny.write_value(os);
// marshal the inouts/outs
NamedValue arg = null;
for (int i=0; i < _arguments.count() ; i++) {
try {
arg = _arguments.item(i);
} catch (Bounds e) {}
if ((arg.flags() == org.omg.CORBA.ARG_OUT.value) ||
(arg.flags() == org.omg.CORBA.ARG_INOUT.value)) {
arg.value().write_value(os);
}
}
}
java类org.omg.CORBA.Bounds的实例源码
ServerRequestImpl.java 文件源码
项目:OpenJSharp
阅读 30
收藏 0
点赞 0
评论 0
ServerRequestImpl.java 文件源码
项目:openjdk-jdk10
阅读 24
收藏 0
点赞 0
评论 0
/** This is called from the ORB after the DynamicImplementation.invoke
* returns. Here we marshal the return value and inout/out params.
*/
public void marshalReplyParams(OutputStream os)
{
// marshal the operation return value
_resultAny.write_value(os);
// marshal the inouts/outs
NamedValue arg = null;
for (int i=0; i < _arguments.count() ; i++) {
try {
arg = _arguments.item(i);
} catch (Bounds e) {}
if ((arg.flags() == org.omg.CORBA.ARG_OUT.value) ||
(arg.flags() == org.omg.CORBA.ARG_INOUT.value)) {
arg.value().write_value(os);
}
}
}
ServerRequestImpl.java 文件源码
项目:openjdk9
阅读 22
收藏 0
点赞 0
评论 0
/** This is called from the ORB after the DynamicImplementation.invoke
* returns. Here we marshal the return value and inout/out params.
*/
public void marshalReplyParams(OutputStream os)
{
// marshal the operation return value
_resultAny.write_value(os);
// marshal the inouts/outs
NamedValue arg = null;
for (int i=0; i < _arguments.count() ; i++) {
try {
arg = _arguments.item(i);
} catch (Bounds e) {}
if ((arg.flags() == org.omg.CORBA.ARG_OUT.value) ||
(arg.flags() == org.omg.CORBA.ARG_INOUT.value)) {
arg.value().write_value(os);
}
}
}
ServerRequestImpl.java 文件源码
项目:lookaside_java-1.8.0-openjdk
阅读 27
收藏 0
点赞 0
评论 0
/** This is called from the ORB after the DynamicImplementation.invoke
* returns. Here we marshal the return value and inout/out params.
*/
public void marshalReplyParams(OutputStream os)
{
// marshal the operation return value
_resultAny.write_value(os);
// marshal the inouts/outs
NamedValue arg = null;
for (int i=0; i < _arguments.count() ; i++) {
try {
arg = _arguments.item(i);
} catch (Bounds e) {}
if ((arg.flags() == org.omg.CORBA.ARG_OUT.value) ||
(arg.flags() == org.omg.CORBA.ARG_INOUT.value)) {
arg.value().write_value(os);
}
}
}
ServerRequestImpl.java 文件源码
项目:jdk8u_corba
阅读 33
收藏 0
点赞 0
评论 0
/** This is called from the ORB after the DynamicImplementation.invoke
* returns. Here we marshal the return value and inout/out params.
*/
public void marshalReplyParams(OutputStream os)
{
// marshal the operation return value
_resultAny.write_value(os);
// marshal the inouts/outs
NamedValue arg = null;
for (int i=0; i < _arguments.count() ; i++) {
try {
arg = _arguments.item(i);
} catch (Bounds e) {}
if ((arg.flags() == org.omg.CORBA.ARG_OUT.value) ||
(arg.flags() == org.omg.CORBA.ARG_INOUT.value)) {
arg.value().write_value(os);
}
}
}
gnuClientRequestInfo.java 文件源码
项目:javify
阅读 27
收藏 0
点赞 0
评论 0
/** @inheritDoc */
public TypeCode[] exceptions()
{
request.checkDii();
ExceptionList ex = request.exceptions();
TypeCode[] et = new TypeCode[ ex.count() ];
try
{
for (int i = 0; i < et.length; i++)
{
et [ i ] = ex.item(i);
}
}
catch (Bounds e)
{
throw new Unexpected(e);
}
return et;
}
gnuRequest.java 文件源码
项目:javify
阅读 22
收藏 0
点赞 0
评论 0
/**
* Set the argument list. This field is initialised as empty non null instance
* by default, so the method is only used in cases when the direct replacement
* is desired.
*
* @param a_args the argument list.
*/
public void set_args(NVList a_args)
{
if (a_args instanceof gnuNVList)
m_args = (gnuNVList) a_args;
else
{
try
{
// In case if this is another implementation of the NVList.
m_args.list.clear();
for (int i = 0; i < a_args.count(); i++)
{
m_args.add(a_args.item(i));
}
}
catch (Bounds ex)
{
Unexpected.error(ex);
}
}
}
gnuRequest.java 文件源码
项目:javify
阅读 25
收藏 0
点赞 0
评论 0
/**
* Get contexts as required by interceptor.
*/
public String[] ice_contexts()
{
if (m_context_list == null)
return new String[ 0 ];
else
{
try
{
String[] cn = new String[ m_context_list.count() ];
for (int i = 0; i < cn.length; i++)
cn [ i ] = m_context_list.item(i);
return cn;
}
catch (Bounds e)
{
throw new Unexpected(e);
}
}
}
gnuClientRequestInfo.java 文件源码
项目:jvm-stm
阅读 24
收藏 0
点赞 0
评论 0
/** @inheritDoc */
public TypeCode[] exceptions()
{
request.checkDii();
ExceptionList ex = request.exceptions();
TypeCode[] et = new TypeCode[ ex.count() ];
try
{
for (int i = 0; i < et.length; i++)
{
et [ i ] = ex.item(i);
}
}
catch (Bounds e)
{
throw new Unexpected(e);
}
return et;
}
gnuRequest.java 文件源码
项目:jvm-stm
阅读 28
收藏 0
点赞 0
评论 0
/**
* Set the argument list. This field is initialised as empty non null instance
* by default, so the method is only used in cases when the direct replacement
* is desired.
*
* @param a_args the argument list.
*/
public void set_args(NVList a_args)
{
if (a_args instanceof gnuNVList)
m_args = (gnuNVList) a_args;
else
{
try
{
// In case if this is another implementation of the NVList.
m_args.list.clear();
for (int i = 0; i < a_args.count(); i++)
{
m_args.add(a_args.item(i));
}
}
catch (Bounds ex)
{
Unexpected.error(ex);
}
}
}
gnuRequest.java 文件源码
项目:jvm-stm
阅读 22
收藏 0
点赞 0
评论 0
/**
* Get contexts as required by interceptor.
*/
public String[] ice_contexts()
{
if (m_context_list == null)
return new String[ 0 ];
else
{
try
{
String[] cn = new String[ m_context_list.count() ];
for (int i = 0; i < cn.length; i++)
cn [ i ] = m_context_list.item(i);
return cn;
}
catch (Bounds e)
{
throw new Unexpected(e);
}
}
}
ServerRequestImpl.java 文件源码
项目:infobip-open-jdk-8
阅读 29
收藏 0
点赞 0
评论 0
/** This is called from the ORB after the DynamicImplementation.invoke
* returns. Here we marshal the return value and inout/out params.
*/
public void marshalReplyParams(OutputStream os)
{
// marshal the operation return value
_resultAny.write_value(os);
// marshal the inouts/outs
NamedValue arg = null;
for (int i=0; i < _arguments.count() ; i++) {
try {
arg = _arguments.item(i);
} catch (Bounds e) {}
if ((arg.flags() == org.omg.CORBA.ARG_OUT.value) ||
(arg.flags() == org.omg.CORBA.ARG_INOUT.value)) {
arg.value().write_value(os);
}
}
}
ServerRequestImpl.java 文件源码
项目:openjdk-source-code-learn
阅读 28
收藏 0
点赞 0
评论 0
/** This is called from the ORB after the DynamicImplementation.invoke
* returns. Here we marshal the return value and inout/out params.
*/
public void marshalReplyParams(OutputStream os)
{
// marshal the operation return value
_resultAny.write_value(os);
// marshal the inouts/outs
NamedValue arg = null;
for (int i=0; i < _arguments.count() ; i++) {
try {
arg = _arguments.item(i);
} catch (Bounds e) {}
if ((arg.flags() == org.omg.CORBA.ARG_OUT.value) ||
(arg.flags() == org.omg.CORBA.ARG_INOUT.value)) {
arg.value().write_value(os);
}
}
}
ServerRequestImpl.java 文件源码
项目:OLD-OpenJDK8
阅读 27
收藏 0
点赞 0
评论 0
/** This is called from the ORB after the DynamicImplementation.invoke
* returns. Here we marshal the return value and inout/out params.
*/
public void marshalReplyParams(OutputStream os)
{
// marshal the operation return value
_resultAny.write_value(os);
// marshal the inouts/outs
NamedValue arg = null;
for (int i=0; i < _arguments.count() ; i++) {
try {
arg = _arguments.item(i);
} catch (Bounds e) {}
if ((arg.flags() == org.omg.CORBA.ARG_OUT.value) ||
(arg.flags() == org.omg.CORBA.ARG_INOUT.value)) {
arg.value().write_value(os);
}
}
}
gnuClientRequestInfo.java 文件源码
项目:JamVM-PH
阅读 27
收藏 0
点赞 0
评论 0
/** @inheritDoc */
public TypeCode[] exceptions()
{
request.checkDii();
ExceptionList ex = request.exceptions();
TypeCode[] et = new TypeCode[ ex.count() ];
try
{
for (int i = 0; i < et.length; i++)
{
et [ i ] = ex.item(i);
}
}
catch (Bounds e)
{
throw new Unexpected(e);
}
return et;
}
gnuRequest.java 文件源码
项目:JamVM-PH
阅读 27
收藏 0
点赞 0
评论 0
/**
* Set the argument list. This field is initialised as empty non null instance
* by default, so the method is only used in cases when the direct replacement
* is desired.
*
* @param a_args the argument list.
*/
public void set_args(NVList a_args)
{
if (a_args instanceof gnuNVList)
m_args = (gnuNVList) a_args;
else
{
try
{
// In case if this is another implementation of the NVList.
m_args.list.clear();
for (int i = 0; i < a_args.count(); i++)
{
m_args.add(a_args.item(i));
}
}
catch (Bounds ex)
{
Unexpected.error(ex);
}
}
}
gnuRequest.java 文件源码
项目:JamVM-PH
阅读 24
收藏 0
点赞 0
评论 0
/**
* Get contexts as required by interceptor.
*/
public String[] ice_contexts()
{
if (m_context_list == null)
return new String[ 0 ];
else
{
try
{
String[] cn = new String[ m_context_list.count() ];
for (int i = 0; i < cn.length; i++)
cn [ i ] = m_context_list.item(i);
return cn;
}
catch (Bounds e)
{
throw new Unexpected(e);
}
}
}
ServerRequestImpl.java 文件源码
项目:openjdk-orb
阅读 26
收藏 0
点赞 0
评论 0
/** This is called from the ORB after the DynamicImplementation.invoke
* returns. Here we marshal the return value and inout/out params.
*/
public void marshalReplyParams(OutputStream os)
{
// marshal the operation return value
_resultAny.write_value(os);
// marshal the inouts/outs
NamedValue arg = null;
for (int i=0; i < _arguments.count() ; i++) {
try {
arg = _arguments.item(i);
} catch (Bounds e) {}
if ((arg.flags() == org.omg.CORBA.ARG_OUT.value) ||
(arg.flags() == org.omg.CORBA.ARG_INOUT.value)) {
arg.value().write_value(os);
}
}
}
gnuClientRequestInfo.java 文件源码
项目:classpath
阅读 22
收藏 0
点赞 0
评论 0
/** @inheritDoc */
public TypeCode[] exceptions()
{
request.checkDii();
ExceptionList ex = request.exceptions();
TypeCode[] et = new TypeCode[ ex.count() ];
try
{
for (int i = 0; i < et.length; i++)
{
et [ i ] = ex.item(i);
}
}
catch (Bounds e)
{
throw new Unexpected(e);
}
return et;
}
gnuRequest.java 文件源码
项目:classpath
阅读 24
收藏 0
点赞 0
评论 0
/**
* Set the argument list. This field is initialised as empty non null instance
* by default, so the method is only used in cases when the direct replacement
* is desired.
*
* @param a_args the argument list.
*/
public void set_args(NVList a_args)
{
if (a_args instanceof gnuNVList)
m_args = (gnuNVList) a_args;
else
{
try
{
// In case if this is another implementation of the NVList.
m_args.list.clear();
for (int i = 0; i < a_args.count(); i++)
{
m_args.add(a_args.item(i));
}
}
catch (Bounds ex)
{
Unexpected.error(ex);
}
}
}
gnuRequest.java 文件源码
项目:classpath
阅读 21
收藏 0
点赞 0
评论 0
/**
* Get contexts as required by interceptor.
*/
public String[] ice_contexts()
{
if (m_context_list == null)
return new String[ 0 ];
else
{
try
{
String[] cn = new String[ m_context_list.count() ];
for (int i = 0; i < cn.length; i++)
cn [ i ] = m_context_list.item(i);
return cn;
}
catch (Bounds e)
{
throw new Unexpected(e);
}
}
}
ServerRequestImpl.java 文件源码
项目:openjdk-icedtea7
阅读 28
收藏 0
点赞 0
评论 0
/** This is called from the ORB after the DynamicImplementation.invoke
* returns. Here we marshal the return value and inout/out params.
*/
public void marshalReplyParams(OutputStream os)
{
// marshal the operation return value
_resultAny.write_value(os);
// marshal the inouts/outs
NamedValue arg = null;
for (int i=0; i < _arguments.count() ; i++) {
try {
arg = _arguments.item(i);
} catch (Bounds e) {}
if ((arg.flags() == org.omg.CORBA.ARG_OUT.value) ||
(arg.flags() == org.omg.CORBA.ARG_INOUT.value)) {
arg.value().write_value(os);
}
}
}
ContextImpl.java 文件源码
项目:TIDorbJ
阅读 31
收藏 0
点赞 0
评论 0
public void set_values(org.omg.CORBA.NVList values)
{
if (values == null) {
throw new BAD_PARAM("Null NVList reference", 0,
CompletionStatus.COMPLETED_NO);
}
m_values = new NVListImpl(m_orb);
int list_size = values.count();
try {
for (int i = 0; i < list_size; i++) {
set_one_value(values.item(i).name(), values.item(i).value());
}
}
catch (Bounds bds) {}
}
ContextImpl.java 文件源码
项目:TIDorbJ
阅读 27
收藏 0
点赞 0
评论 0
public void delete_values(String prop_name)
{
if (prop_name == null)
throw new BAD_PARAM("Null string reference", 0,
CompletionStatus.COMPLETED_NO);
if (m_values != null) {
int list_size = m_values.count();
try {
for (int i = 0; i < list_size; i++) {
if (prop_name.equals(m_values.item(i).name())) {
m_values.remove(i);
}
}
}
catch (Bounds bds) {}
}
}
NVListImpl.java 文件源码
项目:TIDorbJ
阅读 24
收藏 0
点赞 0
评论 0
public static void assignOutArguments(NVList from_list, NVList to_list,
boolean wrap_anys)
{
int length = to_list.count();
if (length < from_list.count())
throw new MARSHAL("Invalid number of out arguments.", 0,
CompletionStatus.COMPLETED_NO);
NamedValue to_nam_val = null;
try {
for (int i = 0; i < length; i++) {
to_nam_val = to_list.item(i);
if (to_nam_val.flags() != ARG_IN.value)
AnyImpl.assignValue(from_list.item(i).value(),
to_nam_val.value(), wrap_anys);
}
}
catch (Bounds bds) {
throw new BAD_PARAM("Bad NVList");
}
}
NVListImpl.java 文件源码
项目:TIDorbJ
阅读 20
收藏 0
点赞 0
评论 0
public static void assignInArguments(NVList from_list, NVList to_list,
boolean wrap_anys)
{
int length = to_list.count();
if (length < from_list.count())
throw new MARSHAL("Invalid number of out arguments.", 0,
CompletionStatus.COMPLETED_NO);
NamedValue to_nam_val = null;
try {
for (int i = 0; i < length; i++) {
to_nam_val = to_list.item(i);
if (to_nam_val.flags() != ARG_OUT.value)
AnyImpl.assignValue(from_list.item(i).value(),
to_nam_val.value(), wrap_anys);
}
}
catch (Bounds bds) {
throw new BAD_PARAM("Bad NVList");
}
}
NVListImpl.java 文件源码
项目:TIDorbJ
阅读 27
收藏 0
点赞 0
评论 0
public static void readOutParams(NVList list, InputStream input)
{
if (list == null)
return;
int length = list.count();
NamedValue nam_val = null;
try {
for (int i = 0; i < length; i++) {
nam_val = list.item(i);
if (nam_val.flags() != ARG_IN.value)
nam_val.value().read_value(input, nam_val.value().type());
}
}
catch (Bounds bds) {
throw new BAD_PARAM("Bad NVList");
}
}
NVListImpl.java 文件源码
项目:TIDorbJ
阅读 35
收藏 0
点赞 0
评论 0
public static void writeOutParams(NVList list, OutputStream output)
{
if (list == null)
return;
int length = list.count();
NamedValue nam_val = null;
try {
for (int i = 0; i < length; i++) {
nam_val = list.item(i);
if (nam_val.flags() != ARG_IN.value)
nam_val.value().write_value(output);
}
}
catch (Bounds bds) {
throw new BAD_PARAM("Bad NVList");
}
}
NVListImpl.java 文件源码
项目:TIDorbJ
阅读 25
收藏 0
点赞 0
评论 0
public static void readInParams(NVList list, InputStream input)
{
if (list == null)
return;
int length = list.count();
NamedValue nam_val = null;
try {
for (int i = 0; i < length; i++) {
nam_val = list.item(i);
if (nam_val.flags() != ARG_OUT.value)
nam_val.value().read_value(input, nam_val.value().type());
}
}
catch (Bounds bds) {
throw new BAD_PARAM("Bad NVList");
}
}
NVListImpl.java 文件源码
项目:TIDorbJ
阅读 21
收藏 0
点赞 0
评论 0
public static void writeInParams(NVList list, OutputStream output)
{
if (list == null)
return;
int length = list.count();
NamedValue nam_val = null;
try {
for (int i = 0; i < length; i++) {
nam_val = list.item(i);
if (nam_val.flags() != ARG_OUT.value)
nam_val.value().write_value(output);
}
}
catch (Bounds bds) {
throw new BAD_PARAM("Bad NVList");
}
}