package org.omg.IOP;


/**
* org/omg/IOP/Encoding.java .
* Generated by the IDL-to-Java compiler (portable), version "3.1"
* from ../../../../src/share/classes/org/omg/PortableInterceptor/IOP.idl
* Wednesday, January 30, 2002 4:01:41 AM GMT-08:00
*/


/**
   * Defines the encoding format of a <code>Codec</code>. This class 
   * details the encoding format, such as CDR Encapsulation encoding, and 
   * the major and minor versions of that format. 
   * <p>
   * The encodings currently supported are: 
   * <ul>
   *   <li><code>ENCODING_CDR_ENCAPS</code>, version 1.0;</li>
   *   <li><code>ENCODING_CDR_ENCAPS</code>, version 1.1;</li>
   *   <li><code>ENCODING_CDR_ENCAPS</code>, version 1.2;</li>
   *   <li><code>ENCODING_CDR_ENCAPS</code> for all future versions of GIOP as 
   *       they arise.</li>
   * </ul>
   * Vendors are free to support additional encodings.
   *
   * @see ENCODING_CDR_ENCAPS
   */
public final class Encoding implements org.omg.CORBA.portable.IDLEntity
{

  /**
       * The encoding format.
       */
  public short format = (short)0;

  /**
       * The major version of this Encoding format.
       */
  public byte major_version = (byte)0;

  /**
       * The minor version of this Encoding format.
       */
  public byte minor_version = (byte)0;

  public Encoding ()
  {
  } // ctor

  public Encoding (short _format, byte _major_version, byte _minor_version)
  {
    format = _format;
    major_version = _major_version;
    minor_version = _minor_version;
  } // ctor

} // class Encoding
