public class MQRMH
extends com.ibm.mq.headers.internal.Header
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
};
MQHeader.Field| Modifier and Type | Field and Description |
|---|---|
static int |
SIZE
Size of an MQRMH structure in bytes
|
| 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.
|
| Modifier and Type | Method and Description |
|---|---|
int |
getCodedCharSetId()
Get the Character set identifier of data that follows.
|
int |
getDataLogicalLength()
gets the Length of bulk data
|
int |
getDataLogicalOffset()
gets the Low offset of bulk data
|
int |
getDataLogicalOffset2()
gets the High offset of bulk data
|
int |
getDestEnvLength()
gets the Length of destination environment data
|
int |
getDestEnvOffset()
gets the Offset of destination environment data
|
int |
getDestNameLength()
gets the Length of destination object name
|
int |
getDestNameOffset()
gets the Offset of destination object name
|
int |
getEncoding()
Get the numeric encoding of the data that follows.
|
int |
getFlags()
gets the Reference message flags
|
java.lang.String |
getFormat()
gets the Format name of bulk data
|
byte[] |
getObjectInstanceId()
gets the Object instance identifier
|
java.lang.String |
getObjectType()
gets the Object type
|
int |
getSrcEnvLength()
gets the Length of source environment data
|
int |
getSrcEnvOffset()
gets the Offset of source environment data
|
int |
getSrcNameLength()
gets the Length of source object name
|
int |
getSrcNameOffset()
gets the Offset of source object name
|
java.lang.String |
getStrucId()
Get the structure identifier; the value will be MQRMH_STRUC_ID
|
int |
getStrucLength()
Get the length of the structure.
|
int |
getVersion()
Get the Structure version number
|
void |
setCodedCharSetId(int value)
Set the Character set identifier of data that follows.
|
void |
setDataLogicalLength(int value)
sets the Length of bulk data
|
void |
setDataLogicalOffset(int value)
sets the Low offset of bulk data
|
void |
setDataLogicalOffset2(int value)
sets the High offset of bulk data
|
void |
setDestEnvLength(int value)
sets the Length of destination environment data
|
void |
setDestEnvOffset(int value)
gets the Offset of destination environment data
|
void |
setDestNameLength(int value)
sets the Length of destination object name
|
void |
setDestNameOffset(int value)
sets the Offset of destination object name
|
void |
setEncoding(int value)
Set the numeric encoding of the data that follows.
|
void |
setFlags(int value)
sets the Reference message flags
|
void |
setFormat(java.lang.String value)
sets the Format name of bulk data
|
void |
setObjectInstanceId(byte[] value)
sets the Object instance identifier
|
void |
setObjectType(java.lang.String value)
sets the Object type
|
void |
setSrcEnvLength(int value)
sets the Length of source environment data
|
void |
setSrcEnvOffset(int value)
sets the Offset of source environment data
|
void |
setSrcNameLength(int value)
sets the Length of source object name
|
void |
setSrcNameOffset(int value)
sets the Offset of source object name
|
int |
write(java.io.DataOutput message)
Writes the content of this data element to a message.
|
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, writepublic static final int SIZE
public MQRMH()
public MQRMH(java.io.DataInput message)
throws MQDataException,
java.io.IOException
message - the message to readMQDataException - if the message content does not yield a valid MQRMH stucturejava.io.IOException - if there is a problem reading the message contentpublic MQRMH(java.io.DataInput message,
int encoding,
int characterSet)
throws MQDataException,
java.io.IOException
message - the MQMessage or other DataInput source to readencoding - the initial numeric encoding of the data in the messagecharacterSet - the initial CCSID of the data in the messageMQDataException - if the message content does not yield a valid MQRMH stucturejava.io.IOException - if there is a problem reading the message contentpublic java.lang.String getStrucId()
public int getVersion()
public int getStrucLength()
public int getEncoding()
public void setEncoding(int value)
value - the numeric encoding. A combination of MQENC_* values.public int getCodedCharSetId()
public void setCodedCharSetId(int value)
value - the Character set identifier.public java.lang.String getFormat()
public void setFormat(java.lang.String value)
value - the Format name of bulk datapublic int getFlags()
public void setFlags(int value)
value - the Reference message flagspublic java.lang.String getObjectType()
public void setObjectType(java.lang.String value)
value - the Object typepublic byte[] getObjectInstanceId()
public void setObjectInstanceId(byte[] value)
value - the Object instance identifierpublic int getSrcEnvLength()
public void setSrcEnvLength(int value)
value - the Length of source environment datapublic int getSrcEnvOffset()
public void setSrcEnvOffset(int value)
value - the Offset of source environment datapublic int getSrcNameLength()
public void setSrcNameLength(int value)
value - Length of source object namepublic int getSrcNameOffset()
public void setSrcNameOffset(int value)
value - the Offset of source object namepublic int getDestEnvLength()
public void setDestEnvLength(int value)
value - the Length of destination environment datapublic int getDestEnvOffset()
public void setDestEnvOffset(int value)
value - the Offset of destination environment datapublic int getDestNameLength()
public void setDestNameLength(int value)
value - the Length of destination object namepublic int getDestNameOffset()
public void setDestNameOffset(int value)
value - the Offset of destination object namepublic int getDataLogicalLength()
public void setDataLogicalLength(int value)
value - the Length of bulk datapublic int getDataLogicalOffset()
public void setDataLogicalOffset(int value)
value - the Low offset of bulk datapublic int getDataLogicalOffset2()
public void setDataLogicalOffset2(int value)
value - the High offset of bulk datapublic int write(java.io.DataOutput message)
throws java.io.IOException
MQData