com.ibm.mq.data

Class IntegerEncoding

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

  1. public final class IntegerEncoding
  2. 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

Modifier and Type Field and Description
  1. static
  2. java.lang.String
COPYRIGHT
  1. static
  2. int
MASK
Binary mask yielding the bits which represent the integer encoding value in a WMQ encoding identifier
  1. static
  2. IntegerEncoding
NORMAL
Signals that integer values are encoded with the most significant byte first.
  1. static
  2. IntegerEncoding
REVERSED
Signals that integer values are encoded with the least significant byte first.
  1. static
  2. IntegerEncoding
UNDEFINED
Signals that integer values are of an undefined format

Method Summary

Modifier and Type Method and Description
  1. static
  2. IntegerEncoding
forValue(int encoding)
Given a WMQ encoding, returns the relevent IntegerEncoding object.
  1. int
getValue()
Returns the value, in a WMQ encoding, of this integer 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 IntegerEncoding UNDEFINED
Signals that integer values are of an undefined format

NORMAL

  1. public static final IntegerEncoding NORMAL
Signals that integer values are encoded with the most significant byte first.

REVERSED

  1. public static final IntegerEncoding REVERSED
Signals that integer values are encoded with the least significant byte first.

MASK

  1. public static final int MASK
Binary mask yielding the bits which represent the integer 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 integer encoding

forValue

  1. 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

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