|
Sun Adapter for Websphere MQ API | |||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Objectcom.ibm.mq.MQMD
com.ibm.mq.MQMessage
com.stc.connector.webspheremqadapter.message.Message
public class Message
Represents a WebSphere MQ message, both its descriptor and data. This is the
class exposed as part of the eWay's OTD(s). It subclasses MQMessage to add logging and to expose MQMessage public variables
in the Java Collaboration Editor by giving them accessors and mutators (the
Editor does not allow direct manipulation of fields, even if public).
com.stc.connector.webspheremqadapter.message.MQOtd| Nested Class Summary | |
|---|---|
class |
Message.MsgBody
Facade for the data (buffer) portion of a Message. |
class |
Message.MsgHeader
Facade that represents the descriptor portion of a Message. |
| Field Summary |
|---|
| Fields inherited from class com.ibm.mq.MQMD |
|---|
accountingToken, applicationIdData, applicationOriginData, backoutCount, characterSet, correlationId, encoding, expiry, feedback, format, groupId, messageFlags, messageId, messageSequenceNumber, messageType, offset, originalLength, persistence, priority, putApplicationName, putApplicationType, putDateTime, replyToQueueManagerName, replyToQueueName, report, userId |
| Constructor Summary | |
|---|---|
Message()
|
|
| Method Summary | |
|---|---|
void |
assignEwayConfiguration(MQClientConfiguration cfg)
Associates an eWay configuration set to this message, for the purpose of giving users access to the eWay configuration. |
void |
assignSyncpointController(ISyncpointControl sc)
Associate a syncpoint controller to this message, for the purpose of giving users access to a restricted representation of the controller at a later time, in order to roll back or commit the message. |
void |
clearMessage()
Discards data in the message buffer and reset the data offset to zero. |
int |
getDataLength()
Reports the number of bytes of data remaining to be read in the message. |
int |
getDataOffset()
Returns the current position of the cursor within the message. |
EwayConfiguration |
getEwayConfiguration()
Obtains a reference to the configuration object of the eWay that is associated with the message. |
int |
getMessageLength()
Reports the total number of bytes in the stored message on the queue. |
IMessage.MsgBody |
getMsgBody()
Obtain a reference to the MsgBody object representing the Message's content. |
IMessage.MsgHeader |
getMsgHeader()
Obtain a reference to the MsgHeader object representing the message's descriptor. |
ISyncpointControl |
getSyncpointController()
Retrieve the syncpoint controller associated to this Message. |
int |
getTotalMessageLength()
If MQQueue.get() fails with a message-truncated error code, getTotalMessageLength() reports the total number of bytes in the stored message on the queue. |
void |
persist(com.stc.connector.persistence.bpel.DataOutput output)
|
boolean |
readBoolean()
Reads a (signed) byte from the present position in the message buffer. |
byte |
readByte()
Reads a byte from the present position in the message buffer. |
char |
readChar()
Reads a Unicode character from the present position in the message buffer. |
short |
readDecimal2()
Reads a 2-byte packed decimal number (-999 to 999). |
int |
readDecimal4()
Reads a 4-byte packed decimal number (-9999999 to 9999999). |
long |
readDecimal8()
Reads an 8-byte packed decimal number (-999999999999999 to 999999999999999). |
double |
readDouble()
Reads a double from the present position in the message buffer. |
float |
readFloat()
Reads a float from the present position in the message buffer. |
void |
readFully(byte[] buffer)
Fills the byte array with data from the message buffer. |
void |
readFully(byte[] buffer,
int offset,
int len)
Fills the len elements of the byte array b with data from the message buffer, starting at offset off. |
int |
readInt()
Reads an integer from the present position in the message buffer. |
short |
readInt2()
Equivalent to readshort(), but readInt2 is provided for cross-language MQSeries API compatibility. |
int |
readInt4()
Equivalent to readInt(), but readInt4 is provided for cross-language MQSeries API compatibility. |
long |
readInt8()
Equivalent to readlong(), but readInt8 is provided for cross-language MQSeries API compatibility. |
java.lang.String |
readLine()
Converts from the codeset defined in the characterSet member variable to Unicode, then reads in a line that has been terminated by \n, \r, \r\n, or EOF. |
long |
readLong()
Reads a long from the present position in the message buffer. |
java.lang.Object |
readObject()
Reads an object, its class, class signature, and the value of the non-transient and nonstatic fields of the class. |
short |
readShort()
Reads a short from the present position in the message buffer. |
java.lang.String |
readString(int length)
Reads a string in the codeset defined by the characterSet member variable. |
int |
readUInt2()
Equivalent to readUnsignedShort(), but readUInt2 is provided for cross-language MQSeries API compatibility. |
int |
readUnsignedByte()
Reads an unsigned byte from the present position in the message buffer. |
int |
readUnsignedShort()
Reads an unsigned short from the present position in the message buffer. |
java.lang.String |
readUTF()
Reads a UTF string, prefixed by a 2-byte length field, from the present position in the message buffer. |
void |
resizeBuffer(int size)
Clues the MQMessage object as to the size of buffer that may be necessary for subsequent get operations. |
void |
restore(com.stc.connector.persistence.bpel.DataInput input)
|
void |
seek(int pos)
Relocates the cursor to the absolute position in the message buffer given by pos. |
void |
setDataOffset(int offset)
Relocates the cursor to the absolute position in the message buffer. |
void |
setVersion(int version)
Sets the version of the structure to be used. |
int |
skipBytes(int numberOfBytes)
Advances n bytes in the message buffer. |
void |
write(byte[] byteArray)
Writes a byte, an array of bytes, or a series of bytes into the message buffer at the present position. |
void |
write(byte[] byteArray,
int offset,
int len)
Writes a byte, an array of bytes, or a series of bytes into the message buffer at the present position. |
void |
write(int byteValue)
Writes a byte, an array of bytes, or a series of bytes into the message buffer at the present position. |
void |
writeBoolean(boolean boolValue)
Writes a Boolean into the message buffer at the present position. |
void |
writeByte(int byteValue)
Writes a byte into the message buffer at the present position. |
void |
writeBytes(java.lang.String stringValue)
Writes the string to the message buffer as a sequence of bytes. |
void |
writeChar(int unicodeChar)
Writes a Unicode character into the message buffer at the present position. |
void |
writeChars(java.lang.String str)
Writes a string as a sequence of Unicode characters into the message buffer at the current position. |
void |
writeDecimal2(short decimal2Value)
Writes a 2-byte packed decimal format number into the message buffer at the present position. |
void |
writeDecimal4(int decimal4Value)
Writes an 4-byte packed decimal format number into the message buffer at the present position. |
void |
writeDecimal8(long decimal8Value)
Writes an 8-byte packed decimal format number into the message buffer at the present position. |
void |
writeDouble(double doubleValue)
Writes a double into the message buffer at the present position. |
void |
writeFloat(float floatValue)
Writes a float into the message buffer at the present position. |
void |
writeInt(int intValue)
Writes an integer into the message buffer at the present position. |
void |
writeInt2(int shortValue)
Writes an integer into the message buffer at the present position. |
void |
writeInt4(int intValue)
Writes an integer into the message buffer at the present position. |
void |
writeInt8(long longValue)
Writes an integer into the message buffer at the present position. |
void |
writeLong(long longValue)
Writes a long into the message buffer at the present position. |
void |
writeObject(java.lang.Object objValue)
Writes the specified object, object class, class signature, and the values of the nontransient and non-static fields of the class and all its supertypes. |
void |
writeShort(int shortValue)
Writes a short into the message buffer at the present position. |
void |
writeString(java.lang.String stringValue)
Writes a string into the message buffer at the present position, converting it to the codeset identified by the characterSet member variable. |
void |
writeUTF(java.lang.String utfString)
Writes a UTF string, prefixed by a 2-byte length field, into the message buffer at the present position. |
| Methods inherited from class com.ibm.mq.MQMessage |
|---|
readMQMDE, unicodeFrom1051, writeMQMDE |
| Methods inherited from class com.ibm.mq.MQMD |
|---|
getVersion, readFrom, writeTo |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Message()
| Method Detail |
|---|
public IMessage.MsgBody getMsgBody()
getMsgBody in interface IMessageMessage.MsgBodypublic IMessage.MsgHeader getMsgHeader()
getMsgHeader in interface IMessageMessage.MsgHeaderpublic void assignEwayConfiguration(MQClientConfiguration cfg)
assignEwayConfiguration in interface IMessagecfg - eWay configuration objectpublic EwayConfiguration getEwayConfiguration()
getEwayConfiguration in interface IMessagepublic void assignSyncpointController(ISyncpointControl sc)
assignSyncpointController in interface IMessagesc - The syncpoint controller.public ISyncpointControl getSyncpointController()
null.
getSyncpointController in interface IMessageISyncpointControl - Returns the syncpoint controller.
public int getTotalMessageLength()
IMessage
getTotalMessageLength in interface IMessagegetTotalMessageLength in class com.ibm.mq.MQMessageint - Returns the total message length.
MQMessage.getTotalMessageLength()
public int getMessageLength()
throws java.io.IOException
IMessage
getMessageLength in interface IMessagegetMessageLength in class com.ibm.mq.MQMessageint - Returns the total number of bytes in the
stored message on the queue
java.io.IOException - Thrown when an error occurs.MQMessage.getMessageLength()
public int getDataLength()
throws java.io.IOException
IMessage
getDataLength in interface IMessagegetDataLength in class com.ibm.mq.MQMessageint - Returns the number of bytes of data remaining
to be read in the message.
java.io.IOException - Thrown when an error occurs.MQMessage.getDataLength()
public void seek(int pos)
throws java.io.IOException
IMessage
seek in interface IMessageseek in class com.ibm.mq.MQMessagepos - Gives the absolute position in the message buffer.
java.io.IOException - Thrown when an error occurs.MQMessage.seek(int)
public void setDataOffset(int offset)
throws java.io.IOException
IMessage
setDataOffset in interface IMessagesetDataOffset in class com.ibm.mq.MQMessageoffset - Gives the absolute position in the message buffer.
java.io.IOException - Thrown when an error occurs.MQMessage.setDataOffset(int)
public int getDataOffset()
throws java.io.IOException
IMessage
getDataOffset in interface IMessagegetDataOffset in class com.ibm.mq.MQMessageint - Returns the current cursor position.
java.io.IOException - Thrown when an error occurs.MQMessage.getDataOffset()
public void clearMessage()
throws java.io.IOException
IMessage
clearMessage in interface IMessageclearMessage in class com.ibm.mq.MQMessagejava.io.IOException - Thrown when an error occurs.MQMessage.clearMessage()
public void resizeBuffer(int size)
throws java.io.IOException
IMessage
resizeBuffer in interface IMessageresizeBuffer in class com.ibm.mq.MQMessagesize - The size of the buffer.
java.io.IOException - Thrown when an error occurs.MQMessage.resizeBuffer(int)
public boolean readBoolean()
throws java.io.EOFException,
java.io.IOException
IMessage
readBoolean in interface IMessagereadBoolean in interface java.io.DataInputreadBoolean in class com.ibm.mq.MQMessageBoolean - Returns a byte from the
current position in the message buffer.
java.io.EOFException - Thrown when an error occurs.
java.io.IOException - Thrown when an error occurs.MQMessage.readBoolean()
public byte readByte()
throws java.io.IOException,
java.io.EOFException
IMessage
readByte in interface IMessagereadByte in interface java.io.DataInputreadByte in class com.ibm.mq.MQMessagebyte - Returns a byte from the
current position in the message buffer.
java.io.EOFException - Thrown when an error occurs.
java.io.IOException - Thrown when an error occurs.MQMessage.readByte()
public char readChar()
throws java.io.EOFException,
java.io.IOException
IMessage
readChar in interface IMessagereadChar in interface java.io.DataInputreadChar in class com.ibm.mq.MQMessagechar - Returns a unicode character from the
current position in the message buffer.
java.io.EOFException - Thrown when an error occurs.
java.io.IOException - Thrown when an error occurs.MQMessage.readChar()
public double readDouble()
throws java.io.EOFException,
java.io.IOException
IMessage
readDouble in interface IMessagereadDouble in interface java.io.DataInputreadDouble in class com.ibm.mq.MQMessagedouble - Returns a double from the
current position in the message buffer.
java.io.EOFException - Thrown when an error occurs.
java.io.IOException - Thrown when an error occurs.MQMessage.readDouble()
public float readFloat()
throws java.io.EOFException,
java.io.IOException
IMessage
readFloat in interface IMessagereadFloat in interface java.io.DataInputreadFloat in class com.ibm.mq.MQMessagefloat - Returns a float from the present
position in the message buffer.
java.io.EOFException - Thrown when an error occurs.
java.io.IOException - Thrown when an error occurs.MQMessage.readFloat()
public void readFully(byte[] buffer)
throws java.io.EOFException,
java.io.IOException
IMessage
readFully in interface IMessagereadFully in interface java.io.DataInputreadFully in class com.ibm.mq.MQMessagebuffer - Data from the message buffer.
java.io.EOFException - Thrown when an error occurs.
java.io.IOException - Thrown when an error occurs.MQMessage.readFully(byte[])
public void readFully(byte[] buffer,
int offset,
int len)
throws java.io.EOFException,
java.io.IOException
IMessage
readFully in interface IMessagereadFully in interface java.io.DataInputreadFully in class com.ibm.mq.MQMessagebuffer - Fills the byte array with data from the
message buffer.offset - The offset at which the fill starts.len - Fills len elements of the byte array
with data from the message buffer.
java.io.EOFException - Thrown when an error occurs.
java.io.IOException - Thrown when an error occurs.MQMessage.readFully(byte[], int, int)
public int readInt()
throws java.io.EOFException,
java.io.IOException
IMessageA value of MQC.MQENC_INTEGER_NORMAL reads a big-endian integer, a value of MQC.MQENC_INTEGER_REVERSED reads a little-endian integer.
readInt in interface IMessagereadInt in interface java.io.DataInputreadInt in class com.ibm.mq.MQMessagejava.io.EOFException - Thrown when an error occurs.
java.io.IOException - Thrown when an error occurs.MQMessage.readInt()
public int readInt4()
throws java.io.EOFException,
java.io.IOException
IMessage
readInt4 in interface IMessagereadInt4 in class com.ibm.mq.MQMessageint - Returns an integer from the current
position in the message buffer.
java.io.EOFException - Thrown when an error occurs.
java.io.IOException - Thrown when an error occurs.MQMessage.readInt4()
public java.lang.String readLine()
throws java.io.IOException
IMessage
readLine in interface IMessagereadLine in interface java.io.DataInputreadLine in class com.ibm.mq.MQMessageString - Returns the unicode characterSet.
java.io.IOException - Thrown when an error occurs.MQMessage.readLine()
public long readLong()
throws java.io.EOFException,
java.io.IOException
IMessageA value of MQC.MQENC_INTEGER_NORMAL reads a big-endian long, a value of MQC.MQENC_INTEGER_REVERSED reads a little-endian long.
readLong in interface IMessagereadLong in interface java.io.DataInputreadLong in class com.ibm.mq.MQMessagelong - Returns a long from the present position
in the message buffer.
java.io.EOFException - Thrown when an error occurs.
java.io.IOException - Thrown when an error occurs.MQMessage.readLong()
public long readInt8()
throws java.io.EOFException,
java.io.IOException
IMessage
readInt8 in interface IMessagereadInt8 in class com.ibm.mq.MQMessagelong - Returns a long from the present position
in the message buffer.
java.io.EOFException - Thrown when an error occurs.
java.io.IOException - Thrown when an error occurs.MQMessage.readInt8()
public java.lang.Object readObject()
throws java.lang.ClassNotFoundException,
java.io.InvalidClassException,
java.io.StreamCorruptedException,
java.io.OptionalDataException,
java.io.IOException
IMessage
readObject in interface IMessagereadObject in class com.ibm.mq.MQMessageobject - Returns an object, its class, class
signature, and vield value.
java.lang.ClassNotFoundException - Thrown when an error occurs.
java.io.InvalidClassException - Thrown when an error occurs.
java.io.StreamCorruptedException - Thrown when an error occurs.
java.io.OptionalDataException - Thrown when an error occurs.
java.io.IOException - Thrown when an error occurs.MQMessage.readObject()
public short readShort()
throws java.io.EOFException,
java.io.IOException
IMessageA value of MQC.MQENC_INTEGER_NORMAL reads a big-endian short, a value of MQC.MQENC_INTEGER_REVERSED reads a little-endian short.
readShort in interface IMessagereadShort in interface java.io.DataInputreadShort in class com.ibm.mq.MQMessageshort - Returns a short from the present position
in the message buffer.
java.io.EOFException - Thrown when an error occurs.
java.io.IOException - Thrown when an error occurs.MQMessage.readShort()
public short readInt2()
throws java.io.EOFException,
java.io.IOException
IMessage
readInt2 in interface IMessagereadInt2 in class com.ibm.mq.MQMessageshort - Returns a short from the present position in the
message buffer.
java.io.EOFException - Thrown when an error occurs.
java.io.IOException - Thrown when an error occurs.MQMessage.readInt2()
public java.lang.String readUTF()
throws java.io.IOException
IMessage
readUTF in interface IMessagereadUTF in interface java.io.DataInputreadUTF in class com.ibm.mq.MQMessageString - Returns a UTF String, beginning with a 2-byte
length field, from the present position in the message buffer.
java.io.IOException - Thrown when an error occurs.MQMessage.readUTF()
public int readUnsignedByte()
throws java.io.EOFException,
java.io.IOException
IMessage
readUnsignedByte in interface IMessagereadUnsignedByte in interface java.io.DataInputreadUnsignedByte in class com.ibm.mq.MQMessagejava.io.EOFException - Thrown when an error occurs.
java.io.IOException - Thrown when an error occurs.MQMessage.readUnsignedByte()
public int readUnsignedShort()
throws java.io.EOFException,
java.io.IOException
IMessageA value of MQC.MQENC_INTEGER_NORMAL reads a big-endian unsigned short, a value of MQC.MQENC_INTEGER_REVERSED reads a little-endian unsigned short.
readUnsignedShort in interface IMessagereadUnsignedShort in interface java.io.DataInputreadUnsignedShort in class com.ibm.mq.MQMessageint - Returns an unsigned byte from the present
position in the message buffer.
java.io.EOFException - Thrown when an error occurs.
java.io.IOException - Thrown when an error occurs.MQMessage.readUnsignedShort()
public int readUInt2()
throws java.io.EOFException,
java.io.IOException
IMessage
readUInt2 in interface IMessagereadUInt2 in class com.ibm.mq.MQMessageint - Returns an unsigned int from the present position
in the message buffer.
java.io.EOFException - Thrown when an error occurs.
java.io.IOException - Thrown when an error occurs.MQMessage.readUInt2()
public java.lang.String readString(int length)
throws java.io.EOFException,
java.io.IOException
IMessage
readString in interface IMessagereadString in class com.ibm.mq.MQMessagelength - The number of characters to read (not the same as the number of bytes).
String - Returns the Unicode value of the string in
the codeset defined by the characterSet member variable.
java.io.EOFException - Thrown when an error occurs.
java.io.IOException - Thrown when an error occurs.MQMessage.readString(int)
public short readDecimal2()
throws java.io.EOFException,
java.io.IOException
IMessage
readDecimal2 in interface IMessagereadDecimal2 in class com.ibm.mq.MQMessageshort - Returns a 2-byte packed decimal number.
java.io.EOFException - Thrown when an error occurs.
java.io.IOException - Thrown when an error occurs.MQMessage.readDecimal2()
public int readDecimal4()
throws java.io.EOFException,
java.io.IOException
IMessageA value of MQC.MQENC_DECIMAL_NORMAL reads a big-endian packed decimal number, and a value of MQC.MQENC_DECIMAL_REVERSED reads a little-endian packed decimal number.
readDecimal4 in interface IMessagereadDecimal4 in class com.ibm.mq.MQMessageint - Returns a 4-byte packed decimal number.
java.io.EOFException - Thrown when an error occurs.
java.io.IOException - Thrown when an error occurs.MQMessage.readDecimal4()
public long readDecimal8()
throws java.io.EOFException,
java.io.IOException
IMessageA value of MQC.MQENC_DECIMAL_NORMAL reads a big-endian packed decimal number, and a value of MQC.MQENC_DECIMAL_REVERSED reads a little-endian packed decimal number.
readDecimal8 in interface IMessagereadDecimal8 in class com.ibm.mq.MQMessagelong - Returns an 8-byte packed decimal number.
java.io.EOFException - Thrown when an error occurs.
java.io.IOException - Thrown when an error occurs.MQMessage.readDecimal8()
public void setVersion(int version)
throws MQException
IMessageThis method is used when it is necessary to force a client to use a version 1 structure when connected to a queue manager that is able to handling version 2 structures. In all other situations, the client determines the correct version by querying the queue manager's capabilities.
setVersion in interface IMessagesetVersion in class com.ibm.mq.MQMDversion - The version number.
MQException - Thrown when an error occurs.MQMD.setVersion(int)
public int skipBytes(int numberOfBytes)
throws java.io.EOFException,
java.io.IOException
IMessage
skipBytes in interface IMessageskipBytes in interface java.io.DataInputskipBytes in class com.ibm.mq.MQMessagenumberOfBytes - Move forward n bytes in the message buffer.
int - Returns the number of bytes skipped, which is always n.
java.io.EOFException - Thrown when an error occurs.
java.io.IOException - Thrown when an error occurs.MQMessage.skipBytes(int)
public void write(int byteValue)
throws java.io.IOException
IMessage
write in interface IMessagewrite in interface java.io.DataOutputwrite in class com.ibm.mq.MQMessagebyteValue -
java.io.IOException - Thrown when an error occurs.MQMessage.write(int)
public void write(byte[] byteArray)
throws java.io.IOException
IMessage
write in interface IMessagewrite in interface java.io.DataOutputwrite in class com.ibm.mq.MQMessagebyteArray - The number of characters to read (not the same as the number of bytes).
java.io.IOException - Thrown when an error occurs.MQMessage.write(byte[])
public void write(byte[] byteArray,
int offset,
int len)
throws java.io.IOException
IMessage
write in interface IMessagewrite in interface java.io.DataOutputwrite in class com.ibm.mq.MQMessagebyteArray - The number of characters to read (not the same as the number of bytes).offset - The offset in the array.len - The number of bytes to be written.
java.io.IOException - Thrown when an error occurs.MQMessage.write(byte[], int, int)
public void writeBoolean(boolean boolValue)
throws java.io.IOException
IMessage
writeBoolean in interface IMessagewriteBoolean in interface java.io.DataOutputwriteBoolean in class com.ibm.mq.MQMessageboolValue - The Boolean value.
java.io.IOException - Thrown when an error occurs.MQMessage.writeBoolean(boolean)
public void writeByte(int byteValue)
throws java.io.IOException
IMessage
writeByte in interface IMessagewriteByte in interface java.io.DataOutputwriteByte in class com.ibm.mq.MQMessagebyteValue - The byte value.
java.io.IOException - Thrown when an error occurs.MQMessage.writeByte(int)
public void writeBytes(java.lang.String stringValue)
throws java.io.IOException
IMessage
writeBytes in interface IMessagewriteBytes in interface java.io.DataOutputwriteBytes in class com.ibm.mq.MQMessagestringValue - The String value.
java.io.IOException - Thrown when an error occurs.MQMessage.writeBytes(java.lang.String)
public void writeChar(int unicodeChar)
throws java.io.IOException
IMessage
writeChar in interface IMessagewriteChar in interface java.io.DataOutputwriteChar in class com.ibm.mq.MQMessageunicodeChar - The Unicode character value.
java.io.IOException - Thrown when an error occurs.MQMessage.writeChar(int)
public void writeChars(java.lang.String str)
throws java.io.IOException
IMessage
writeChars in interface IMessagewriteChars in interface java.io.DataOutputwriteChars in class com.ibm.mq.MQMessagestr - The String value.
java.io.IOException - Thrown when an error occurs.MQMessage.writeChars(java.lang.String)
public void writeDouble(double doubleValue)
throws java.io.IOException
IMessageA value of MQC.MQENC_FLOAT_IEEE_NORMAL or MQC.MQENC_FLOAT_IEEE_REVERSED write IEEE standard floats in big-endian and little-endian formats respectively. A value of MQC.MQENC_FLOAT_S390 writes a System/390 format floating point number. The range of IEEE doubles is greater than the range of S/390 double precision floating point numbers. Very large numbers cannot be converted.
writeDouble in interface IMessagewriteDouble in interface java.io.DataOutputwriteDouble in class com.ibm.mq.MQMessagedoubleValue - The number of characters to read (not the same as the number of bytes).
java.io.IOException - Thrown when an error occurs.MQMessage.writeDouble(double)
public void writeFloat(float floatValue)
throws java.io.IOException
IMessageA Value of MQC.MQENC_FLOAT_IEEE_NORMAL or MQC.MQENC_FLOAT_IEEE_REVERSED write IEEE standard floats in big-endian and little-endian formats respectively. A value of MQC.MQENC_FLOAT_S390 writes a System/390 format floating point number.
writeFloat in interface IMessagewriteFloat in interface java.io.DataOutputwriteFloat in class com.ibm.mq.MQMessagefloatValue - The float value.
java.io.IOException - Thrown when an error occurs.MQMessage.writeFloat(float)
public void writeInt(int intValue)
throws java.io.IOException
IMessageA value of MQC.MQENC_INTEGER_NORMAL writes a big-endian integer. A value of MQC.MQENC_INTEGER_REVERSED writes a little-endian integer.
writeInt in interface IMessagewriteInt in interface java.io.DataOutputwriteInt in class com.ibm.mq.MQMessageintValue - The int value.
java.io.IOException - Thrown when an error occurs.MQMessage.writeInt(int)
public void writeInt4(int intValue)
throws java.io.IOException
IMessage
writeInt4 in interface IMessagewriteInt4 in class com.ibm.mq.MQMessageintValue - The int value.
java.io.IOException - Thrown when an error occurs.MQMessage.writeInt4(int)
public void writeLong(long longValue)
throws java.io.IOException
IMessageA value of MQC.MQENC_INTEGER_NORMAL writes a big-endian long. A value of MQC.MQENC_INTEGER_REVERSED writes a little-endian long.
writeLong in interface IMessagewriteLong in interface java.io.DataOutputwriteLong in class com.ibm.mq.MQMessagelongValue - The long value.
java.io.IOException - Thrown when an error occurs.MQMessage.writeLong(long)
public void writeInt8(long longValue)
throws java.io.IOException
IMessage
writeInt8 in interface IMessagewriteInt8 in class com.ibm.mq.MQMessagelongValue - The long value.
java.io.IOException - Thrown when an error occurs.MQMessage.writeInt8(long)
public void writeObject(java.lang.Object objValue)
throws java.io.IOException
IMessage
writeObject in interface IMessagewriteObject in class com.ibm.mq.MQMessageobjValue - The object value.
java.io.IOException - Thrown when an error occurs.MQMessage.writeObject(java.lang.Object)
public void writeShort(int shortValue)
throws java.io.IOException
IMessageA value of MQC.MQENC_INTEGER_NORMAL writes a big-endian short. A value of MQC.MQENC_INTEGER_REVERSED writes a little-endian short.
writeShort in interface IMessagewriteShort in interface java.io.DataOutputwriteShort in class com.ibm.mq.MQMessageshortValue - The short value.
java.io.IOException - Thrown when an error occurs.MQMessage.writeShort(int)
public void writeInt2(int shortValue)
throws java.io.IOException
IMessage
writeInt2 in interface IMessagewriteInt2 in class com.ibm.mq.MQMessageshortValue - The short value.
java.io.IOException - Thrown when an error occurs.MQMessage.writeInt2(int)
public void writeDecimal2(short decimal2Value)
throws java.io.IOException
IMessageA value of MQC.MQENC_DECIMAL_NORMAL writes a big-endian packed decimal. A value of MQC.MQENC_DECIMAL_REVERSED writes a little-endian packed decimal.
writeDecimal2 in interface IMessagewriteDecimal2 in class com.ibm.mq.MQMessagedecimal2Value - The 2-byte decimal value.
java.io.IOException - Thrown when an error occurs.MQMessage.writeDecimal2(short)
public void writeDecimal4(int decimal4Value)
throws java.io.IOException
IMessageA value of MQC.MQENC_DECIMAL_NORMAL writes a big-endian packed decimal. A value of MQC.MQENC_DECIMAL_REVERSED writes a little-endian packed decimal.
writeDecimal4 in interface IMessagewriteDecimal4 in class com.ibm.mq.MQMessagedecimal4Value - The 4-byte decimal value.
java.io.IOException - Thrown when an error occurs.MQMessage.writeDecimal4(int)
public void writeDecimal8(long decimal8Value)
throws java.io.IOException
IMessageA value of MQC.MQENC_DECIMAL_NORMAL writes a big-endian packed decimal. A value of MQC.MQENC_DECIMAL_REVERSED writes a little-endian packed decimal.
writeDecimal8 in interface IMessagewriteDecimal8 in class com.ibm.mq.MQMessagedecimal8Value - The 8-byte decimal value.
java.io.IOException - Thrown when an error occurs.MQMessage.writeDecimal8(long)
public void writeUTF(java.lang.String utfString)
throws java.io.IOException
IMessage
writeUTF in interface IMessagewriteUTF in interface java.io.DataOutputwriteUTF in class com.ibm.mq.MQMessageutfString - The String value.
java.io.IOException - Thrown when an error occurs.MQMessage.writeUTF(java.lang.String)
public void writeString(java.lang.String stringValue)
throws java.io.IOException
IMessage
writeString in interface IMessagewriteString in class com.ibm.mq.MQMessagestringValue - The String value.
java.io.IOException - Thrown when an error occurs.MQMessage.writeString(java.lang.String)
public void persist(com.stc.connector.persistence.bpel.DataOutput output)
throws java.lang.Exception
persist in interface com.stc.connector.persistence.bpel.PersistableDatajava.lang.Exception
public void restore(com.stc.connector.persistence.bpel.DataInput input)
throws java.lang.Exception
restore in interface com.stc.connector.persistence.bpel.PersistableDatajava.lang.Exception
|
Sun Adapter for Websphere MQ API | |||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||