1. package com.sun.corba.se.PortableActivationIDL;
  2. /**
  3. * com/sun/corba/se/PortableActivationIDL/EndpointInfoListHelper.java .
  4. * Generated by the IDL-to-Java compiler (portable), version "3.2"
  5. * from ../../../../src/share/classes/com/sun/corba/se/PortableActivationIDL/activation.idl
  6. * Wednesday, September 15, 2004 3:50:44 AM PDT
  7. */
  8. /** A list of endpoint information for a particular ORB.
  9. */
  10. abstract public class EndpointInfoListHelper
  11. {
  12. private static String _id = "IDL:PortableActivationIDL/EndpointInfoList:1.0";
  13. public static void insert (org.omg.CORBA.Any a, com.sun.corba.se.PortableActivationIDL.EndPointInfo[] that)
  14. {
  15. org.omg.CORBA.portable.OutputStream out = a.create_output_stream ();
  16. a.type (type ());
  17. write (out, that);
  18. a.read_value (out.create_input_stream (), type ());
  19. }
  20. public static com.sun.corba.se.PortableActivationIDL.EndPointInfo[] extract (org.omg.CORBA.Any a)
  21. {
  22. return read (a.create_input_stream ());
  23. }
  24. private static org.omg.CORBA.TypeCode __typeCode = null;
  25. synchronized public static org.omg.CORBA.TypeCode type ()
  26. {
  27. if (__typeCode == null)
  28. {
  29. __typeCode = com.sun.corba.se.PortableActivationIDL.EndPointInfoHelper.type ();
  30. __typeCode = org.omg.CORBA.ORB.init ().create_sequence_tc (0, __typeCode);
  31. __typeCode = org.omg.CORBA.ORB.init ().create_alias_tc (com.sun.corba.se.PortableActivationIDL.EndpointInfoListHelper.id (), "EndpointInfoList", __typeCode);
  32. }
  33. return __typeCode;
  34. }
  35. public static String id ()
  36. {
  37. return _id;
  38. }
  39. public static com.sun.corba.se.PortableActivationIDL.EndPointInfo[] read (org.omg.CORBA.portable.InputStream istream)
  40. {
  41. com.sun.corba.se.PortableActivationIDL.EndPointInfo value[] = null;
  42. int _len0 = istream.read_long ();
  43. value = new com.sun.corba.se.PortableActivationIDL.EndPointInfo[_len0];
  44. for (int _o1 = 0;_o1 < value.length; ++_o1)
  45. value[_o1] = com.sun.corba.se.PortableActivationIDL.EndPointInfoHelper.read (istream);
  46. return value;
  47. }
  48. public static void write (org.omg.CORBA.portable.OutputStream ostream, com.sun.corba.se.PortableActivationIDL.EndPointInfo[] value)
  49. {
  50. ostream.write_long (value.length);
  51. for (int _i0 = 0;_i0 < value.length; ++_i0)
  52. com.sun.corba.se.PortableActivationIDL.EndPointInfoHelper.write (ostream, value[_i0]);
  53. }
  54. }