com.ibm.mq.data

Class FloatEncoding

  1. java.lang.Object
  2. extended bycom.ibm.mq.data.FloatEncoding

  1. public final class FloatEncoding
  2. extends java.lang.Object
Enumeration-style class giving values for each of the four floating-point encodings recognised by WebSphere MQ: undefined, s390, ieee normal and reversed.

Field Summary

Modifier and Type Field and Description
  1. static
  2. java.lang.String
COPYRIGHT
  1. static
  2. FloatEncoding
IEEE_NORMAL
Signals that floating-point values use the IEEE format.
  1. static
  2. FloatEncoding
IEEE_REVERSED
Signals that floating-point values use the IEEE format with bytes swapped, so that the least significant byte of the mantissa appears first.
  1. static
  2. int
MASK
Binary mask yielding the bits which represent the floating-point encoding value in a WMQ encoding identifier
  1. static
  2. FloatEncoding
S390
Signals that floating-point values use the S390 floating point format
  1. static
  2. FloatEncoding
TNS
Signals that floating-point values use the TNS floating point format
  1. static
  2. FloatEncoding
UNDEFINED
Signals that floating-point values are of an undefined format

Method Summary

Modifier and Type Method and Description
  1. static
  2. FloatEncoding
forValue(int encoding)
Given a WMQ encoding, returns the relevent FloatEncoding object.
  1. int
getValue()
Returns the value, in a WMQ encoding, of this floating-point encoding
  1. java.lang.String
toString()
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait

Field Detail

  1. public static final java.lang.String COPYRIGHT
See Also:

UNDEFINED

  1. public static final FloatEncoding UNDEFINED
Signals that floating-point values are of an undefined format

IEEE_NORMAL

  1. public static final FloatEncoding IEEE_NORMAL
Signals that floating-point values use the IEEE format.

IEEE_REVERSED

  1. public static final FloatEncoding IEEE_REVERSED
Signals that floating-point values use the IEEE format with bytes swapped, so that the least significant byte of the mantissa appears first.

S390

  1. public static final FloatEncoding S390
Signals that floating-point values use the S390 floating point format

TNS

  1. public static final FloatEncoding TNS
Signals that floating-point values use the TNS floating point format

MASK

  1. public static final int MASK
Binary mask yielding the bits which represent the floating-point encoding value in a WMQ encoding identifier
See Also:

Method Detail

getValue

  1. public int getValue()
Returns the value, in a WMQ encoding, of this floating-point encoding

forValue

  1. public static FloatEncoding forValue( int encoding)
Given a WMQ encoding, returns the relevent FloatEncoding object. Only the floating-point portion of the encoding is significant.
Throws:
java.lang.IllegalArgumentException - if the floating-point portion of the encoding is not a known value

toString

  1. public java.lang.String toString( )
Overrides:
toString in class java.lang.Object