com.ibm.mq.data
Class IntegerEncoding
- java.lang.Object
-
- com.ibm.mq.data.IntegerEncoding
-
public final class IntegerEncoding extends java.lang.Object
Enumeration-style class giving values for each of the three integer encodings recognised by WebSphere MQ: undefined, normal and reversed.
-
-
Field Summary
Fields Modifier and Type Field and Description static java.lang.String
COPYRIGHT
static int
MASK
Binary mask yielding the bits which represent the integer encoding value in a WMQ encoding identifierstatic IntegerEncoding
NORMAL
Signals that integer values are encoded with the most significant byte first.static IntegerEncoding
REVERSED
Signals that integer values are encoded with the least significant byte first.static IntegerEncoding
UNDEFINED
Signals that integer values are of an undefined format
-
Method Summary
Methods Modifier and Type Method and Description static IntegerEncoding
forValue(int encoding)
Given a WMQ encoding, returns the relevent IntegerEncoding object.int
getValue()
Returns the value, in a WMQ encoding, of this integer encodingjava.lang.String
toString()
-
-
-
Field Detail
-
COPYRIGHT
public static final java.lang.String COPYRIGHT
- See Also:
- Constant Field Values
-
UNDEFINED
public static final IntegerEncoding UNDEFINED
Signals that integer values are of an undefined format
-
NORMAL
public static final IntegerEncoding NORMAL
Signals that integer values are encoded with the most significant byte first.
-
REVERSED
public static final IntegerEncoding REVERSED
Signals that integer values are encoded with the least significant byte first.
-
MASK
public static final int MASK
Binary mask yielding the bits which represent the integer encoding value in a WMQ encoding identifier- See Also:
- Constant Field Values
-
-
Method Detail
-
getValue
public int getValue()
Returns the value, in a WMQ encoding, of this integer encoding
-
forValue
public static IntegerEncoding forValue(int encoding)
Given a WMQ encoding, returns the relevent IntegerEncoding object. Only the integer portion of the encoding is significant.- Throws:
java.lang.IllegalArgumentException
- if the integer portion of the encoding is not a known value
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-