public class MQMDE extends com.ibm.mq.headers.internal.Header implements MQChainable
struct tagMQMDE {
MQCHAR4 StrucId; // Structure identifier
MQLONG Version; // Structure version number
MQLONG StrucLength; // Length of MQMDE structure
MQLONG Encoding; // Numeric encoding of data that follows MQMDE
MQLONG CodedCharSetId; // Character-set identifier of data that follows MQMDE
MQCHAR8 Format; // Format name of data that follows MQMDE
MQLONG Flags; // General flags
MQBYTE24 GroupId; // Group identifier
MQLONG MsgSeqNumber; // Sequence number of logical message within group
MQLONG Offset; // Offset of data in physical message from start of logical message
MQLONG MsgFlags; // Message flags
MQLONG OriginalLength; // Length of original message
// Ver:2
};
MQHeader.Field| Constructor and Description |
|---|
MQMDE()
Constructs an MQMDE instance with default field values.
|
MQMDE(java.io.DataInput message)
Constructs an MQMDE instance populated from an MQMessage.
|
MQMDE(java.io.DataInput message,
int encoding,
int characterSet)
Constructs an MQMDE 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()
gets the General flags
|
java.lang.String |
getFormat()
gets the Format name of data that follows MQMDE
|
byte[] |
getGroupId()
gets the Group identifier
|
int |
getMsgFlags()
gets the Message flags
|
int |
getMsgSeqNumber()
gets the Sequence number of logical message within group
|
int |
getOffset()
gets the Offset of data in physical message from start of logical message
|
int |
getOriginalLength()
gets the Length of original message
|
java.lang.String |
getStrucId()
Get the structure identifier; the value will be MQMDE_STRUC_ID
|
int |
getStrucLength()
Get the length of the structure.
|
int |
getVersion()
Get the Structure version number
|
boolean |
hasExtensionContent()
indicates whether the MQMDE has extension content
|
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)
sets the General flags
|
void |
setFormat(java.lang.String value)
sets the Format name of data that follows MQMDE
|
void |
setGroupId(byte[] value)
sets the Group identifier
|
void |
setMsgFlags(int value)
sets the Message flags
|
void |
setMsgSeqNumber(int value)
sets the Sequence number of logical message within group
|
void |
setOffset(int value)
sets the Offset of data in physical message from start of logical message
|
void |
setOriginalLength(int value)
sets the Length of original 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, write, writepublic MQMDE()
public MQMDE(java.io.DataInput message)
throws MQDataException,
java.io.IOException
message - the message to readMQDataException - if the message content does not yield a valid MQMDE stucturejava.io.IOException - if there is a problem reading the message contentpublic MQMDE(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 MQMDE 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 data that follows MQMDEpublic int getFlags()
public void setFlags(int value)
value - the General flagspublic byte[] getGroupId()
public void setGroupId(byte[] value)
value - the Group identifierpublic int getMsgSeqNumber()
public void setMsgSeqNumber(int value)
value - the Sequence number of logical message within grouppublic int getOffset()
public void setOffset(int value)
value - the Offset of data in physical message from start of logical messagepublic int getMsgFlags()
public void setMsgFlags(int value)
value - the Message flagspublic int getOriginalLength()
public void setOriginalLength(int value)
value - the Length of original messagepublic 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()public boolean hasExtensionContent()