java.lang.Object
com.zeroc.Ice.EncodingVersion
- All Implemented Interfaces:
Serializable
,Cloneable
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 Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionConstructs aEncodingVersion
.EncodingVersion
(byte major, byte minor) Constructs aEncodingVersion
with values for all its fields. -
Method Summary
Modifier and TypeMethodDescriptionclone()
boolean
int
hashCode()
static EncodingVersion
ice_read
(InputStream istr) Unmarshals anEncodingVersion
from an input stream.static Optional<EncodingVersion>
ice_read
(InputStream istr, int tag) Unmarshals an optionalEncodingVersion
from an input stream.void
ice_readMembers
(InputStream istr) Unmarshals and sets this object's fields from an input stream.static void
ice_write
(OutputStream ostr, int tag, EncodingVersion v) Marshals an optionalEncodingVersion
into an output stream.static void
ice_write
(OutputStream ostr, int tag, Optional<EncodingVersion> v) Marshals an optionalEncodingVersion
into an output stream.static void
ice_write
(OutputStream ostr, EncodingVersion v) Marshals anEncodingVersion
into an output stream.void
ice_writeMembers
(OutputStream ostr) Marshals this object's fields into an output stream.
-
Field Details
-
major
public byte majorThe major version of the Slice encoding. -
minor
public byte minorThe minor version of the Slice encoding.
-
-
Constructor Details
-
EncodingVersion
public EncodingVersion()Constructs aEncodingVersion
. -
EncodingVersion
public EncodingVersion(byte major, byte minor) Constructs aEncodingVersion
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
-
hashCode
public int hashCode() -
clone
-
ice_writeMembers
Marshals this object's fields into an output stream.- Parameters:
ostr
- the output stream
-
ice_readMembers
Unmarshals and sets this object's fields from an input stream.- Parameters:
istr
- the input stream
-
ice_write
Marshals anEncodingVersion
into an output stream.- Parameters:
ostr
- the output streamv
- theEncodingVersion
to marshal; can be null
-
ice_read
Unmarshals anEncodingVersion
from an input stream.- Parameters:
istr
- the input stream- Returns:
- the unmarshaled
EncodingVersion
-
ice_write
Marshals an optionalEncodingVersion
into an output stream.- Parameters:
ostr
- the output streamtag
- the tagv
- the value to marshal
-
ice_write
Marshals an optionalEncodingVersion
into an output stream.- Parameters:
ostr
- the output streamtag
- the tagv
- the value to marshal
-
ice_read
Unmarshals an optionalEncodingVersion
from an input stream.- Parameters:
istr
- the input streamtag
- the tag- Returns:
- the unmarshaled value
-