1. package org.omg.IOP;
  2. /**
  3. * org/omg/IOP/Encoding.java .
  4. * Generated by the IDL-to-Java compiler (portable), version "3.1"
  5. * from ../../../../src/share/classes/org/omg/PortableInterceptor/IOP.idl
  6. * Monday, February 23, 2004 7:03:03 AM GMT
  7. */
  8. /**
  9. * Defines the encoding format of a <code>Codec</code>. This class
  10. * details the encoding format, such as CDR Encapsulation encoding, and
  11. * the major and minor versions of that format.
  12. * <p>
  13. * The encodings currently supported are:
  14. * <ul>
  15. * <li><code>ENCODING_CDR_ENCAPS</code>, version 1.0;</li>
  16. * <li><code>ENCODING_CDR_ENCAPS</code>, version 1.1;</li>
  17. * <li><code>ENCODING_CDR_ENCAPS</code>, version 1.2;</li>
  18. * <li><code>ENCODING_CDR_ENCAPS</code> for all future versions of GIOP as
  19. * they arise.</li>
  20. * </ul>
  21. * Vendors are free to support additional encodings.
  22. *
  23. * @see ENCODING_CDR_ENCAPS
  24. */
  25. public final class Encoding implements org.omg.CORBA.portable.IDLEntity
  26. {
  27. /**
  28. * The encoding format.
  29. */
  30. public short format = (short)0;
  31. /**
  32. * The major version of this Encoding format.
  33. */
  34. public byte major_version = (byte)0;
  35. /**
  36. * The minor version of this Encoding format.
  37. */
  38. public byte minor_version = (byte)0;
  39. public Encoding ()
  40. {
  41. } // ctor
  42. public Encoding (short _format, byte _major_version, byte _minor_version)
  43. {
  44. format = _format;
  45. major_version = _major_version;
  46. minor_version = _minor_version;
  47. } // ctor
  48. } // class Encoding