1. package com.sun.corba.se.spi.activation;
  2. /**
  3. * com/sun/corba/se/spi/activation/TCPPortHelper.java .
  4. * Generated by the IDL-to-Java compiler (portable), version "3.2"
  5. * from ../../../../src/share/classes/com/sun/corba/se/spi/activation/activation.idl
  6. * Wednesday, September 15, 2004 3:50:42 AM PDT
  7. */
  8. abstract public class TCPPortHelper
  9. {
  10. private static String _id = "IDL:activation/TCPPort:1.0";
  11. public static void insert (org.omg.CORBA.Any a, int 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 int 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 ().get_primitive_tc (org.omg.CORBA.TCKind.tk_long);
  28. __typeCode = org.omg.CORBA.ORB.init ().create_alias_tc (com.sun.corba.se.spi.activation.TCPPortHelper.id (), "TCPPort", __typeCode);
  29. }
  30. return __typeCode;
  31. }
  32. public static String id ()
  33. {
  34. return _id;
  35. }
  36. public static int read (org.omg.CORBA.portable.InputStream istream)
  37. {
  38. int value = (int)0;
  39. value = istream.read_long ();
  40. return value;
  41. }
  42. public static void write (org.omg.CORBA.portable.OutputStream ostream, int value)
  43. {
  44. ostream.write_long (value);
  45. }
  46. }