com.ibm.mq.headers
Interface MQData
All known subinterfaces:
All known implementing classes:
com.ibm.mq.headers.internal.Header, MQCFBF, MQCFBF, MQCFBS, MQCFBS, MQCFGR, MQCFGR, MQCFH, MQCFH, MQCFIF, MQCFIF, MQCFIL, MQCFIL, MQCFIL64, MQCFIL64, MQCFIN, MQCFIN, MQCFIN64, MQCFIN64, MQCFSF, MQCFSF, MQCFSL, MQCFSL, MQCFST, MQCFST, MQCIH, MQDH, MQDLH, MQEPH, MQIIH, MQMD, MQMD1, MQMDE, MQRFH, MQRFH2, MQRMH, MQSAPH, MQTM, MQTM2, MQTMC2, MQWIH, MQXQH, PCFFilterParameter, PCFFilterParameter, PCFHeader, PCFHeader, PCFMessage, PCFMessage, PCFParameter, PCFParameter
- public interface MQData
See Also:
Method Summary
| Modifier and Type | Method and Description |
|---|---|
|
read(java.io.DataInput message)
Reads content from a message and returns the number of bytes consumed.
|
|
read(java.io.DataInput message,int encoding,int characterSet)
Reads content from a message or byte stream and returns the number of bytes consumed.
|
|
size()
Returns the size in bytes occupied by this data element in a message.
|
|
write(java.io.DataOutput message)
Writes the content of this data element to a message and returns the number of bytes written.
|
|
write(java.io.DataOutput message,int encoding,int characterSet)
Writes the content of this data element to a message or byte stream and returns the number of
bytes written.
|
Method Detail
read
- int read(java.io.DataInput message)
- throws MQDataException
- java.io.IOException
Reads content from a message and returns the number of bytes consumed. The content is
interpreted (if applicable) using the encoding and CCSID of the message descriptor.
read
- int read(java.io.DataInput message,
- int encoding,
- int characterSet)
- throws java.lang.Exception
- MQDataException
- java.io.IOException
Reads content from a message or byte stream and returns the number of bytes consumed. The
content is interpreted (if applicable) using the specified encoding and CCSID.
Parameters:
message - the message. encoding - the numeric encoding. see (CMQC.MQENC_* for values). characterSet - the Coded Character Set Identifier. Throws:
java.lang.Exception - (to allow the com.ibm.pcf classes to throw MQException) java.io.IOExceptionwrite
- int write(java.io.DataOutput message)
- throws java.io.IOException
Writes the content of this data element to a message and returns the number of bytes written.
The content is encoded in (if applicable) using the encoding and CCSID of the message
descriptor.
Parameters:
message - the message. Throws:
java.io.IOExceptionwrite
- int write(java.io.DataOutput message,
- int encoding,
- int characterSet)
- throws java.io.IOException
Writes the content of this data element to a message or byte stream and returns the number of
bytes written. The content is encoded (if applicable) using the specified encoding and CCSID.
Parameters:
characterSet - the Coded Character Set Identifier. message - the message. encoding - the numeric encoding. see (CMQC.MQENC_* for values)._ Throws:
java.io.IOExceptionsize
- int size()
Returns the size in bytes occupied by this data element in a message.