com.ibm.mq.headers

Class MQRMH

  1. java.lang.Object
  2. extended bycom.ibm.mq.jmqi.JmqiObject
  3. extended bycom.ibm.mq.headers.internal.Header
  4. extended bycom.ibm.mq.headers.MQRMH
All implemented interfaces:
MQData, MQHeader

  1. public class MQRMH
  2. extends com.ibm.mq.headers.internal.Header
MQRMH header class.
    struct tagMQRMH {
                MQCHAR4   StrucId;             // Structure identifier
                MQLONG    Version;             // Structure version number
                MQLONG    StrucLength;         // Total length of MQRMH, including strings at end of fixed fields, but not the bulk data
                MQLONG    Encoding;            // Numeric encoding of bulk data
                MQLONG    CodedCharSetId;      // Character set identifier of bulk data
                MQCHAR8   Format;              // Format name of bulk data
                MQLONG    Flags;               // Reference message flags
                MQCHAR8   ObjectType;          // Object type
                MQBYTE24  ObjectInstanceId;    // Object instance identifier
                MQLONG    SrcEnvLength;        // Length of source environment data
                MQLONG    SrcEnvOffset;        // Offset of source environment data
                MQLONG    SrcNameLength;       // Length of source object name
                MQLONG    SrcNameOffset;       // Offset of source object name
                MQLONG    DestEnvLength;       // Length of destination environment data
                MQLONG    DestEnvOffset;       // Offset of destination environment data
                MQLONG    DestNameLength;      // Length of destination object name
                MQLONG    DestNameOffset;      // Offset of destination object name
                MQLONG    DataLogicalLength;   // Length of bulk data
                MQLONG    DataLogicalOffset;   // Low offset of bulk data
                MQLONG    DataLogicalOffset2;  // High offset of bulk data
        };
 

Nested Class Summary

Nested classes/interfaces inherited from interface com.ibm.mq.headers.MQHeader
MQHeader.Field

Field Summary

Modifier and Type Field and Description
  1. static
  2. int
SIZE
Size of an MQRMH structure in bytes
Fields inherited from class com.ibm.mq.headers.internal.Header
DEFAULT_CCSID, DEFAULT_ENCODING
Fields inherited from class com.ibm.mq.jmqi.JmqiObject
COMP_JM, COMP_JN, COMP_JO

Constructor Summary

Constructor and Description
MQRMH()
Constructs an MQRMH instance with default field values.
MQRMH(java.io.DataInput message)
Constructs an MQRMH instance populated from an MQMessage.
MQRMH(java.io.DataInput message,int encoding,int characterSet)
Constructs an MQRMH instance populated from a DataInput source.

Method Summary

Modifier and Type Method and Description
  1. int
getCodedCharSetId()
Get the Character set identifier of data that follows.
  1. int
getDataLogicalLength()
gets the Length of bulk data
  1. int
getDataLogicalOffset()
gets the Low offset of bulk data
  1. int
getDataLogicalOffset2()
gets the High offset of bulk data
  1. int
getDestEnvLength()
gets the Length of destination environment data
  1. int
getDestEnvOffset()
gets the Offset of destination environment data
  1. int
getDestNameLength()
gets the Length of destination object name
  1. int
getDestNameOffset()
gets the Offset of destination object name
  1. int
getEncoding()
Get the numeric encoding of the data that follows.
  1. int
getFlags()
gets the Reference message flags
  1. java.lang.String
getFormat()
gets the Format name of bulk data
  1. byte[]
getObjectInstanceId()
gets the Object instance identifier
  1. java.lang.String
getObjectType()
gets the Object type
  1. int
getSrcEnvLength()
gets the Length of source environment data
  1. int
getSrcEnvOffset()
gets the Offset of source environment data
  1. int
getSrcNameLength()
gets the Length of source object name
  1. int
getSrcNameOffset()
gets the Offset of source object name
  1. java.lang.String
getStrucId()
Get the structure identifier; the value will be MQRMH_STRUC_ID
  1. int
getStrucLength()
Get the length of the structure.
  1. int
getVersion()
Get the Structure version number
  1. void
setCodedCharSetId(int value)
Set the Character set identifier of data that follows.
  1. void
setDataLogicalLength(int value)
sets the Length of bulk data
  1. void
setDataLogicalOffset(int value)
sets the Low offset of bulk data
  1. void
setDataLogicalOffset2(int value)
sets the High offset of bulk data
  1. void
setDestEnvLength(int value)
sets the Length of destination environment data
  1. void
setDestEnvOffset(int value)
gets the Offset of destination environment data
  1. void
setDestNameLength(int value)
sets the Length of destination object name
  1. void
setDestNameOffset(int value)
sets the Offset of destination object name
  1. void
setEncoding(int value)
Set the numeric encoding of the data that follows.
  1. void
setFlags(int value)
sets the Reference message flags
  1. void
setFormat(java.lang.String value)
sets the Format name of bulk data
  1. void
setObjectInstanceId(byte[] value)
sets the Object instance identifier
  1. void
setObjectType(java.lang.String value)
sets the Object type
  1. void
setSrcEnvLength(int value)
sets the Length of source environment data
  1. void
setSrcEnvOffset(int value)
sets the Offset of source environment data
  1. void
setSrcNameLength(int value)
sets the Length of source object name
  1. void
setSrcNameOffset(int value)
sets the Offset of source object name
Methods inherited from class com.ibm.mq.headers.internal.Header
characterSet, encoding, fields, getBytesValue, getCharValue, getCharValue, getIntValue, getJmqiEnv, getStringValue, getValue, headerType, read, read, read, setBytesValue, setCharValue, setCharValue, setIntValue, setStringValue, setValue, size, store, store, toString, type, validate, write, write
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait

Field Detail

SIZE

  1. public static final int SIZE
Size of an MQRMH structure in bytes
See Also:

Constructor Detail

MQRMH

  1. public MQRMH()
Constructs an MQRMH instance with default field values.

MQRMH

  1. public MQRMH(java.io.DataInput message)
  2. throws MQDataException
  3. java.io.IOException
Constructs an MQRMH instance populated from an MQMessage.
Parameters:
message - the message to read
Throws:
MQDataException - if the message content does not yield a valid MQRMH stucture
java.io.IOException - if there is a problem reading the message content

MQRMH

  1. public MQRMH(java.io.DataInput message,
  2. int encoding,
  3. int characterSet)
  4. throws MQDataException
  5. java.io.IOException
Constructs an MQRMH instance populated from a DataInput source.
Parameters:
message - the MQMessage or other DataInput source to read
encoding - the initial numeric encoding of the data in the message
characterSet - the initial CCSID of the data in the message
Throws:
MQDataException - if the message content does not yield a valid MQRMH stucture
java.io.IOException - if there is a problem reading the message content

Method Detail

getStrucId

  1. public java.lang.String getStrucId( )
Get the structure identifier; the value will be MQRMH_STRUC_ID
Returns:
the structure identifier

getVersion

  1. public int getVersion()
Get the Structure version number
Returns:
the Structure version number

getStrucLength

  1. public int getStrucLength()
Get the length of the structure.
Returns:
the structure length.

getEncoding

  1. public int getEncoding()
Get the numeric encoding of the data that follows.
Returns:
the numeric encoding. A combination of MQENC_* values.

setEncoding

  1. public void setEncoding(int value)
Set the numeric encoding of the data that follows.
Parameters:
value - the numeric encoding. A combination of MQENC_* values.

getCodedCharSetId

  1. public int getCodedCharSetId()
Get the Character set identifier of data that follows.
Returns:
the Character set identifier.

setCodedCharSetId

  1. public void setCodedCharSetId(int value)
Set the Character set identifier of data that follows.
Parameters:
value - the Character set identifier.

getFormat

  1. public java.lang.String getFormat( )
gets the Format name of bulk data
Returns:
the Format name of bulk data

setFormat

  1. public void setFormat(java.lang.String value)
sets the Format name of bulk data
Parameters:
value - the Format name of bulk data

getFlags

  1. public int getFlags()
gets the Reference message flags
Returns:
the Reference message flags

setFlags

  1. public void setFlags(int value)
sets the Reference message flags
Parameters:
value - the Reference message flags

getObjectType

  1. public java.lang.String getObjectType( )
gets the Object type
Returns:
the Object type

setObjectType

  1. public void setObjectType(java.lang.String value)
sets the Object type
Parameters:
value - the Object type

getObjectInstanceId

  1. public byte[] getObjectInstanceId( )
gets the Object instance identifier
Returns:
the Object instance identifier

setObjectInstanceId

  1. public void setObjectInstanceId( byte[] value)
sets the Object instance identifier
Parameters:
value - the Object instance identifier

getSrcEnvLength

  1. public int getSrcEnvLength()
gets the Length of source environment data
Returns:
the Length of source environment data

setSrcEnvLength

  1. public void setSrcEnvLength(int value)
sets the Length of source environment data
Parameters:
value - the Length of source environment data

getSrcEnvOffset

  1. public int getSrcEnvOffset()
gets the Offset of source environment data
Returns:
the Offset of source environment data

setSrcEnvOffset

  1. public void setSrcEnvOffset(int value)
sets the Offset of source environment data
Parameters:
value - the Offset of source environment data

getSrcNameLength

  1. public int getSrcNameLength()
gets the Length of source object name
Returns:
the Length of source object name

setSrcNameLength

  1. public void setSrcNameLength(int value)
sets the Length of source object name
Parameters:
value - Length of source object name

getSrcNameOffset

  1. public int getSrcNameOffset()
gets the Offset of source object name
Returns:
the Offset of source object name

setSrcNameOffset

  1. public void setSrcNameOffset(int value)
sets the Offset of source object name
Parameters:
value - the Offset of source object name

getDestEnvLength

  1. public int getDestEnvLength()
gets the Length of destination environment data
Returns:
the Length of destination environment data

setDestEnvLength

  1. public void setDestEnvLength(int value)
sets the Length of destination environment data
Parameters:
value - the Length of destination environment data

getDestEnvOffset

  1. public int getDestEnvOffset()
gets the Offset of destination environment data
Returns:
the Offset of destination environment data

setDestEnvOffset

  1. public void setDestEnvOffset(int value)
gets the Offset of destination environment data
Parameters:
value - the Offset of destination environment data

getDestNameLength

  1. public int getDestNameLength()
gets the Length of destination object name
Returns:
the Length of destination object name

setDestNameLength

  1. public void setDestNameLength(int value)
sets the Length of destination object name
Parameters:
value - the Length of destination object name

getDestNameOffset

  1. public int getDestNameOffset()
gets the Offset of destination object name
Returns:
the Offset of destination object name

setDestNameOffset

  1. public void setDestNameOffset(int value)
sets the Offset of destination object name
Parameters:
value - the Offset of destination object name

getDataLogicalLength

  1. public int getDataLogicalLength( )
gets the Length of bulk data
Returns:
the Length of bulk data

setDataLogicalLength

  1. public void setDataLogicalLength( int value)
sets the Length of bulk data
Parameters:
value - the Length of bulk data

getDataLogicalOffset

  1. public int getDataLogicalOffset( )
gets the Low offset of bulk data
Returns:
the Low offset of bulk data

setDataLogicalOffset

  1. public void setDataLogicalOffset( int value)
sets the Low offset of bulk data
Parameters:
value - the Low offset of bulk data

getDataLogicalOffset2

  1. public int getDataLogicalOffset2( )
gets the High offset of bulk data
Returns:
the High offset of bulk data

setDataLogicalOffset2

  1. public void setDataLogicalOffset2( int value)
sets the High offset of bulk data
Parameters:
value - the High offset of bulk data