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