249250251252253254255256257258259
public org.omg.IOP.TaggedProfile getIOPProfile() { EncapsOutputStream os = sun.corba.OutputStreamFactory.newEncapsOutputStream(orb); os.write_long( getId() ) ; write( os ) ; InputStream is = (InputStream)(os.create_input_stream()) ; return org.omg.IOP.TaggedProfileHelper.read( is ) ; }
246247248249250251252253254255256
} public org.omg.IOP.TaggedProfile getIOPProfile() { EncapsOutputStream os = new EncapsOutputStream( orb ) ; os.write_long( getId() ) ; write( os ) ; InputStream is = (InputStream)(os.create_input_stream()) ; return org.omg.IOP.TaggedProfileHelper.read( is ) ; }
100101102103104105106107108109110
// Write reply value os.write_Object(serviceObject); } else if (method.equals("list")) { java.util.Set keys = orb.getLocalResolver().list() ; os.write_long( keys.size() ) ; Iterator iter = keys.iterator() ; while (iter.hasNext()) { String obj = (String)iter.next() ; os.write_string( obj ) ; }
17371738173917401741174217431744174517461747
// discriminant typecode _discriminator.write_value(_encap); // default index _encap.write_long(_defaultIndex); // put the number of members _encap.write_long(_memberCount); // marshal label values, names and types
17401741174217431744174517461747174817491750
// default index _encap.write_long(_defaultIndex); // put the number of members _encap.write_long(_memberCount); // marshal label values, names and types for (int i=0; i < _memberCount; i++) { // for the default case, marshal the zero octet
17551756175717581759176017611762176317641765
switch (realType(_discriminator).kind().value()) { case TCKind._tk_short: _encap.write_short(_unionLabels[i].extract_short()); break; case TCKind._tk_long: _encap.write_long(_unionLabels[i].extract_long()); break; case TCKind._tk_ushort: _encap.write_short(_unionLabels[i].extract_ushort()); break; case TCKind._tk_ulong:
17611762176317641765176617671768176917701771
break; case TCKind._tk_ushort: _encap.write_short(_unionLabels[i].extract_ushort()); break; case TCKind._tk_ulong: _encap.write_long(_unionLabels[i].extract_ulong()); break; case TCKind._tk_float: _encap.write_float(_unionLabels[i].extract_float()); break; case TCKind._tk_double:
17761777177817791780178117821783178417851786
break; case TCKind._tk_char: _encap.write_char(_unionLabels[i].extract_char()); break; case TCKind._tk_enum: _encap.write_long(_unionLabels[i].extract_long()); break; case TCKind._tk_longlong: _encap.write_longlong(_unionLabels[i].extract_longlong()); break; case TCKind._tk_ulonglong:
18101811181218131814181518161817181818191820
// put the name _encap.write_string(_name); // put the number of members _encap.write_long(_memberCount); // marshal identifier names for (int i=0; i < _memberCount; i++) _encap.write_string(_memberNames[i]); }