Package com.zeroc.Ice

Class EncodingVersion

java.lang.Object
com.zeroc.Ice.EncodingVersion
All Implemented Interfaces:
Serializable, Cloneable

public final class EncodingVersion extends Object implements Cloneable, Serializable
Represents a version of the Slice encoding. Ice supports version 1.0 and 1.1 of this encoding.

Remarks: The Slice encoding is also known as the Ice encoding.

See Also:
  • Field Details

    • major

      public byte major
      The major version of the Slice encoding.
    • minor

      public byte minor
      The minor version of the Slice encoding.
  • Constructor Details

    • EncodingVersion

      public EncodingVersion()
      Constructs a EncodingVersion.
    • EncodingVersion

      public EncodingVersion(byte major, byte minor)
      Constructs a EncodingVersion with values for all its fields.
      Parameters:
      major - The major version of the Slice encoding.
      minor - The minor version of the Slice encoding.
  • Method Details

    • equals

      public boolean equals(Object rhs)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • clone

      public EncodingVersion clone()
      Overrides:
      clone in class Object
    • ice_writeMembers

      public void ice_writeMembers(OutputStream ostr)
      Marshals this object's fields into an output stream.
      Parameters:
      ostr - the output stream
    • ice_readMembers

      public void ice_readMembers(InputStream istr)
      Unmarshals and sets this object's fields from an input stream.
      Parameters:
      istr - the input stream
    • ice_write

      public static void ice_write(OutputStream ostr, EncodingVersion v)
      Marshals an EncodingVersion into an output stream.
      Parameters:
      ostr - the output stream
      v - the EncodingVersion to marshal; can be null
    • ice_read

      public static EncodingVersion ice_read(InputStream istr)
      Unmarshals an EncodingVersion from an input stream.
      Parameters:
      istr - the input stream
      Returns:
      the unmarshaled EncodingVersion
    • ice_write

      public static void ice_write(OutputStream ostr, int tag, Optional<EncodingVersion> v)
      Marshals an optional EncodingVersion into an output stream.
      Parameters:
      ostr - the output stream
      tag - the tag
      v - the value to marshal
    • ice_write

      public static void ice_write(OutputStream ostr, int tag, EncodingVersion v)
      Marshals an optional EncodingVersion into an output stream.
      Parameters:
      ostr - the output stream
      tag - the tag
      v - the value to marshal
    • ice_read

      public static Optional<EncodingVersion> ice_read(InputStream istr, int tag)
      Unmarshals an optional EncodingVersion from an input stream.
      Parameters:
      istr - the input stream
      tag - the tag
      Returns:
      the unmarshaled value