/*    */ public static void insert(Any paramAny, IORInterceptor_3_0 paramIORInterceptor_3_0)
       /*    */ {
   /* 17 */ OutputStream localOutputStream = paramAny.create_output_stream();
   /* 18 */ paramAny.type(type());
   /* 19 */ write(localOutputStream, paramIORInterceptor_3_0);
   /* 20 */ paramAny.read_value(localOutputStream.create_input_stream(), type());
   /*    */ }
Пример #2
0
 // This method could very well be moved into TypeCodeImpl or a common utility class,
 // but is has to be in this package.
 public static Any extractAnyFromStream(TypeCode memberType, InputStream input, ORB orb) {
   Any returnValue = orb.create_any();
   OutputStream out = returnValue.create_output_stream();
   TypeCodeImpl.convertToNative(orb, memberType).copy(input, out);
   returnValue.read_value(out.create_input_stream(), memberType);
   return returnValue;
 }
 /*     */ public static void insert(Any paramAny, ValueMember[] paramArrayOfValueMember)
       /*     */ {
   /*  49 */ OutputStream localOutputStream = paramAny.create_output_stream();
   /*  50 */ paramAny.type(type());
   /*  51 */ write(localOutputStream, paramArrayOfValueMember);
   /*  52 */ paramAny.read_value(localOutputStream.create_input_stream(), type());
   /*     */ }
Пример #4
0
 /*      */ public Any extractAny(TypeCode paramTypeCode, ORB paramORB) /*      */ {
   /* 1315 */ Any localAny = paramORB.create_any();
   /* 1316 */ org.omg.CORBA.portable.OutputStream localOutputStream =
       localAny.create_output_stream();
   /* 1317 */ TypeCodeImpl.convertToNative(paramORB, paramTypeCode)
       .copy(this.stream, localOutputStream);
   /* 1318 */ localAny.read_value(localOutputStream.create_input_stream(), paramTypeCode);
   /* 1319 */ return localAny;
   /*      */ }
 /**
  * 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));
 }
Пример #6
0
 /*      */ public static Any extractAnyFromStream(
     TypeCode paramTypeCode, org.omg.CORBA.portable.InputStream paramInputStream, ORB paramORB)
       /*      */ {
   /* 1325 */ Any localAny = paramORB.create_any();
   /* 1326 */ org.omg.CORBA.portable.OutputStream localOutputStream =
       localAny.create_output_stream();
   /* 1327 */ TypeCodeImpl.convertToNative(paramORB, paramTypeCode)
       .copy(paramInputStream, localOutputStream);
   /* 1328 */ localAny.read_value(localOutputStream.create_input_stream(), paramTypeCode);
   /* 1329 */ return localAny;
   /*      */ }
 /*    */ public static void insert(Any paramAny, ServerManager paramServerManager) /*    */ {
   /* 17 */ OutputStream localOutputStream = paramAny.create_output_stream();
   /* 18 */ paramAny.type(type());
   /* 19 */ write(localOutputStream, paramServerManager);
   /* 20 */ paramAny.read_value(localOutputStream.create_input_stream(), type());
   /*    */ }
Пример #8
0
 /*    */ public static void insert(Any paramAny, DuplicateName paramDuplicateName) /*    */ {
   /* 17 */ OutputStream localOutputStream = paramAny.create_output_stream();
   /* 18 */ paramAny.type(type());
   /* 19 */ write(localOutputStream, paramDuplicateName);
   /* 20 */ paramAny.read_value(localOutputStream.create_input_stream(), type());
   /*    */ }
 /*    */ public static void insert(Any paramAny, NotFoundReason paramNotFoundReason) /*    */ {
   /* 21 */ OutputStream localOutputStream = paramAny.create_output_stream();
   /* 22 */ paramAny.type(type());
   /* 23 */ write(localOutputStream, paramNotFoundReason);
   /* 24 */ paramAny.read_value(localOutputStream.create_input_stream(), type());
   /*    */ }