public abstract class MQHeaderContext
extends com.ibm.mq.jmqi.JmqiObject
| Modifier and Type | Method and Description |
|---|---|
abstract int |
available() |
static MQHeaderContext |
createMQHeaderContext(java.io.DataInput messageP)
Create an MQMessageContext object to wrap a message
|
static MQHeaderContext |
createMQHeaderContext(java.io.DataInput messageP,
java.lang.String format,
int encoding,
int characterSet)
Create an MQMessageContext object to wrap a message
|
abstract java.io.DataInput |
getDataInput() |
int |
nextCharacterSet()
get the character set of the next header or message content.
|
int |
nextEncoding()
get the encoding of the next header or message content.
|
java.lang.String |
nextFormat()
get the format of the next header or message content.
|
void |
setCharacterSet(int characterSet)
Sets the CCSID of this message context, used in the decoding of headers.
|
void |
setEncoding(int encoding)
Sets the numeric encoding of this message context, used in the decoding of headers.
|
void |
setFormat(java.lang.String format)
Sets the format of this message context, used in the decoding of headers.
|
abstract int |
sniff() |
public static MQHeaderContext createMQHeaderContext(java.io.DataInput messageP)
messageP - the message to be wrappedpublic static MQHeaderContext createMQHeaderContext(java.io.DataInput messageP, java.lang.String format, int encoding, int characterSet)
messageP - the message to be wrappedformat - the message format (see CMQC.MQFMT_*)encoding - the message encoding (see CMQC.MQENV_*)characterSet - the Coded Character Set idpublic java.lang.String nextFormat()
public int nextEncoding()
public int nextCharacterSet()
public void setFormat(java.lang.String format)
format - the format of this message context.public void setEncoding(int encoding)
encoding - the numeric encoding. see (CMQC.MQENC_* for values).public void setCharacterSet(int characterSet)
characterSet - the Coded Character Set Identifier.public abstract int available()
throws java.io.IOException
java.io.IOExceptionpublic abstract java.io.DataInput getDataInput()
public abstract int sniff()
throws java.io.IOException
java.io.IOException