public class MQDH extends com.ibm.mq.headers.internal.Header implements MQChainable
struct tagMQDH {
MQCHAR4 StrucId; /* Structure identifier
MQLONG Version; /* Structure version number
MQLONG StrucLength; /* Length of MQDH structure plus following MQOR and MQPMR records
MQLONG Encoding; /* Numeric encoding of data that follows the MQOR and MQPMR records
MQLONG CodedCharSetId; /* Character set identifier of data that follows the MQOR and MQPMR records
MQCHAR8 Format; /* Format name of data that follows the MQOR and MQPMR records
MQLONG Flags; /* General flags
MQLONG PutMsgRecFields; /* Flags indicating which MQPMR fields are present
MQLONG RecsPresent; /* Number of MQOR records present
MQLONG ObjectRecOffset; /* Offset of first MQOR record from start of MQDH
MQLONG PutMsgRecOffset; /* Offset of first MQPMR record from start of MQDH
};
MQHeader.Field| Modifier and Type | Field and Description |
|---|---|
static int |
MQDH_STRUC_LENGTH_FIXED
Deprecated.
use
getStrucLength() to get the length of the structure |
| Constructor and Description |
|---|
MQDH()
Constructs an MQDH instance with default field values.
|
MQDH(java.io.DataInput message)
Constructs an MQDH instance populated from an DataInput.
|
MQDH(java.io.DataInput message,
int encoding,
int characterSet)
Constructs an MQDH instance populated from a DataInput source.
|
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
format() |
int |
getCodedCharSetId()
Get the Character set identifier of data that follows.
|
int |
getEncoding()
Get the numeric encoding of the data that follows.
|
int |
getFlags()
get the General flags
|
java.lang.String |
getFormat()
get the Format name of data that follows the MQOR and MQPMR records
|
int |
getObjectRecOffset()
get the Offset of first MQOR record from start of MQDH
|
int |
getPutMsgRecFields()
get the Flags indicating which MQPMR fields are present
|
int |
getPutMsgRecOffset()
get the Offset of first MQPMR record from start of MQDH
|
int |
getRecsPresent()
get the Number of MQOR records present
|
java.lang.String |
getStrucId()
Get the structure identifier; the value will be MQDH_STRUC_ID
|
int |
getStrucLength()
Get the length of the structure.
|
int |
getVersion()
Get the Structure version number
|
int |
nextCharacterSet() |
void |
nextCharacterSet(int value)
Sets the CCSID of the next header or message content.
|
int |
nextEncoding() |
void |
nextEncoding(int value)
Sets the numeric encoding of the next header or message content.
|
java.lang.String |
nextFormat() |
void |
nextFormat(java.lang.String value)
Sets the format of the next header or message content.
|
void |
setCodedCharSetId(int value)
Set the Character set identifier of data that follows.
|
void |
setEncoding(int value)
Set the numeric encoding of the data that follows.
|
void |
setFlags(int value)
set the General flags
|
void |
setFormat(java.lang.String value)
set the Format name of data that follows the MQOR and MQPMR records
|
void |
setObjectRecOffset(int value)
set the Offset of first MQOR record from start of MQDH
|
void |
setPutMsgRecFields(int value)
set the Flags indicating which MQPMR fields are present
|
void |
setPutMsgRecOffset(int value)
set the Offset of first MQPMR record from start of MQDH
|
void |
setRecsPresent(int value)
set the Number of MQOR records present
|
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, writepublic static final int MQDH_STRUC_LENGTH_FIXED
getStrucLength() to get the length of the structurepublic MQDH()
public MQDH(java.io.DataInput message)
throws MQDataException,
java.io.IOException
message - the message to readMQDataException - if the message content does not yield a valid MQDH structurejava.io.IOException - if there is a problem reading the message contentpublic MQDH(java.io.DataInput message,
int encoding,
int characterSet)
throws MQDataException
message - the DataInput 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 MQDH stucturepublic 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 data that follows the MQOR and MQPMR recordspublic int getFlags()
public void setFlags(int value)
value - the General flagspublic int getPutMsgRecFields()
public void setPutMsgRecFields(int value)
value - the Flags indicating which MQPMR fields are presentpublic int getRecsPresent()
public void setRecsPresent(int value)
value - the Number of MQOR records presentpublic int getObjectRecOffset()
public void setObjectRecOffset(int value)
value - the Offset of first MQOR record from start of MQDHpublic int getPutMsgRecOffset()
public void setPutMsgRecOffset(int value)
value - the Offset of first MQPMR record from start of MQDHpublic int nextEncoding()
nextEncoding in interface MQChainableMQChainable.nextEncoding()public void nextEncoding(int value)
MQChainablenextEncoding in interface MQChainableMQChainable.nextEncoding(int)public int nextCharacterSet()
nextCharacterSet in interface MQChainableMQChainable.nextCharacterSet()public void nextCharacterSet(int value)
MQChainablenextCharacterSet in interface MQChainableMQChainable.nextCharacterSet(int)public java.lang.String nextFormat()
nextFormat in interface MQChainableMQChainable.nextFormat()public void nextFormat(java.lang.String value)
MQChainablenextFormat in interface MQChainableMQChainable.nextFormat(java.lang.String)public java.lang.String format()
format in interface MQChainableMQChainable.format()