AQjmsStreamMessage - Oracle 9i

AQjmsStreamMessage
Syntax

All Implemented Interfaces

javax.jms.Message, javax.jms.StreamMessage

Description

This class implements the StreamMessage interface. A StreamMessage is used to send a stream of java primitives

AQjmsStreamMessageAQjmsStreamMessage

Inherited Member Summary

Fields inherited from interface javax.jms.Message

DEFAULT_DELIVERY_MODE, DEFAULT_PRIORITY, DEFAULT_TIME_TO_LIVE

Methods inherited from class AQjmsMessage

Methods inherited from class java.lang.Object

clone, equals, finalize, getClass, hashCode, notify, notifyAll,
toString, wait, wait, wait

Methods inherited from interface javax.jms.Message

Methods
clearBody()

public void clearBody()

Clear out the message body. All other parts of the message are left untouched.

Specified By

javax.jms.Message.clearBody() in interface javax.jms.Message

Overrides

clearBody() in class AQjmsMessage

Throws

JMSException - if JMS fails to due to some internal JMS error.

clearProperties()

public void clearProperties()

Specified By

javax.jms.Message.clearProperties() in interface javax.jms.Message

Overrides

clearProperties() in class AQjmsMessage

readBoolean()

public boolean readBoolean()

Reads a boolean from the stream message

Specified By

javax.jms.StreamMessage.readBoolean() in interface javax.jms.StreamMessage

Throws

MessageNotReadableException - if message in write-only mode.
JMSException - if JMS fails to read message due to some internal JMS error.
MessageEOFException - if end of message stream

readByte()

public byte readByte()

Reads a signed 8-bit value from the stream message

Specified By

javax.jms.StreamMessage.readByte() in interface javax.jms.StreamMessage

Returns
the next byte from the stream message as a signed 8-bit byte

Throws

MessageNotReadableException - if message in write-only mode.
JMSException - if JMS fails to read message due to some internal JMS error.
MessageEOFException - if end of message stream

readBytes(byte[])

public int readBytes(byte[] value)

Read a byte array from the stream message

Specified By

javax.jms.StreamMessage.readBytes(byte[]) in interface javax.jms.StreamMessage

Parameters

value - the buffer into which the data is read

Throws

MessageNotReadableException - if message in write-only mode.
JMSException - if JMS fails to read message due to some internal JMS error.
MessageEOFException - if end of message stream

readChar()

public char readChar()

Read a Unicode character value from the stream message

Specified By

javax.jms.StreamMessage.readChar() in interface javax.jms.StreamMessage

Returns

the next two bytes from the stream message as a Unicode character.

Throws

MessageNotReadableException - if message in write-only mode.
JMSException - if JMS fails to read message due to some internal JMS error.
MessageEOFException - if end of message stream

readDouble()

public double readDouble()

Read a double from the stream message

Specified By

javax.jms.StreamMessage.readDouble() in interface javax.jms.StreamMessage

Returns

the next eight bytes from the stream message, interpreted as a double.

Throws

MessageNotReadableException - if message in write-only mode.
JMSException - if JMS fails to read message due to some internal JMS error.
MessageEOFException - if end of message stream

readFloat()

public float readFloat()

Read a float from the stream message

Specified By

javax.jms.StreamMessage.readFloat() in interface javax.jms.StreamMessage

Returns

the next four bytes from the stream message, interpreted as a float.

Throws

MessageNotReadableException - if message in write-only mode.
JMSException - if JMS fails to read message due to some internal JMS error.
MessageEOFException - if end of message stream

readInt()

public int readInt()

Read a signed 32 bit integer from the stream message

Specified By

javax.jms.StreamMessage.readInt() in interface javax.jms.StreamMessage

Returns

the next four bytes from the stream message, interpreted as a int.

Throws

MessageNotReadableException - if message in write-only mode.
JMSException - if JMS fails to read message due to some internal JMS error.
MessageEOFException - if end of message stream

readLong()

public long readLong()

Read a signed 64 bit integer from the stream message

Specified By

javax.jms.StreamMessage.readLong() in interface javax.jms.StreamMessage

Returns

the next eight bytes from the stream message, interpreted as a long.

Throws

MessageNotReadableException - if message in write-only mode.
JMSException - if JMS fails to read message due to some internal JMS error.
MessageEOFException - if end of message stream

readObject()

public java.lang.Object readObject()
Read a Java object from the stream message.

Note that this method can be used to return in objectified format, an object that had been written to the Stream with the equivalent writeObject method call, or it's equivalent primitive write method.

Specified By

javax.jms.StreamMessage.readObject() in interface javax.jms.StreamMessage

Returns

a Java object from the stream message, in objectified format (ie. if it set as an int, then a Integer is returned).

Throws

JMSException - if JMS fails to read message due to some internal JMS error.
MessageEOFException - if an end of message stream
MessageNotReadableException - if message in write-only mode.

readShort()

public short readShort()

Reads a signed 16-bit value from the stream message

Specified By

javax.jms.StreamMessage.readShort() in interface javax.jms.StreamMessage

Returns

the next two bytes from the stream message, interpreted as a 16-bit number

Throws

MessageNotReadableException - if message in write-only mode.
JMSException - if JMS fails to read message due to some internal JMS error.
MessageEOFException - if end of message stream

readString()

public java.lang.String readString()

Read a string from the stream message

Specified By

javax.jms.StreamMessage.readString() in interface javax.jms.StreamMessage

Returns

string from the stream message

Throws

MessageNotReadableException - if message in write-only mode.
JMSException - if JMS fails to read message due to some internal JMS error.
MessageEOFException - if end of message stream

reset()

public void reset()

Put the message in read-only mode, and reposition the stream of bytes to the beginning.

Specified By

javax.jms.StreamMessage.reset() in interface javax.jms.StreamMessage

Throws

MessageNotWriteableException - if message in write-only mode.
JMSException - if JMS fails to read message due to some internal JMS error.

writeBoolean(boolean)

public void writeBoolean(boolean value)

Write a boolean to the stream message as a 1-byte value. The value true is written out as the value (byte)1; the value false is written out as the value (byte)0.

Specified By

javax.jms.StreamMessage.writeBoolean(boolean) in interface javax.jms.StreamMessage

Parameters

value - the boolean value to be written

Throws

MessageNotWritableException - if message in write-only mode.
JMSException - if JMS fails to read message due to some internal JMS error.

writeByte(byte)

public void writeByte(byte value)

Write out a byte to the stream message as a 1-byte value.

Specified By

javax.jms.StreamMessage.writeByte(byte) in interface javax.jms.StreamMessage

Parameters

value - the byte value to be written

Throws

MessageNotWritableException - if message in write-only mode.
JMSException - if JMS fails to read message due to some internal JMS error.

writeBytes(byte[])

public void writeBytes(byte[] value)

Write a byte array to the stream message

Specified By

javax.jms.StreamMessage.writeBytes(byte[]) in interface javax.jms.StreamMessage

Parameters

value - The byte array to be written

Throws

MessageNotWritableException - if message in write-only mode.
JMSException - if JMS fails to read message due to some internal JMS error.

writeBytes(byte[], int, int)

public void writeBytes(byte[] value, int offset, int length)

Write a portion of byte array to the stream message

Specified By

javax.jms.StreamMessage.writeBytes(byte[], int, int) in interface javax.jms.StreamMessage

Parameters

value - the byte array to be written
offset - the initial offset within the byte array
length - the number of bytes to use

Throws

MessageNotWritableException - if message in write-only mode.
JMSException - if JMS fails to read message due to some internal JMS error.

writeChar(char)

public void writeChar(char value)

Write a char to the stream as a 2-byte, high byte first

Specified By

javax.jms.StreamMessage.writeChar(char) in interface javax.jms.StreamMessage

Parameters

value - the char to be written

Throws

MessageNotWritableException - if message in write-only mode.
JMSException - if JMS fails to read message due to some internal JMS error.

writeDouble(double)

public void writeDouble(double value)

Write a double to the stream as a 8-byte, high byte first

Specified By

javax.jms.StreamMessage.writeDouble(double) in interface javax.jms.StreamMessage

Parameters

value - The double to be written

Throws

MessageNotWritableException - if message in write-only mode.
JMSException - if JMS fails to read message due to some internal JMS error.

writeFloat(float)

public void writeFloat(float value

Write a float to the stream as a 4-byte, high byte first

Specified By

javax.jms.StreamMessage.writeFloat(float) in interface javax.jms.StreamMessage

Parameters

value - the float to be written

Throws

MessageNotWritableException - if message in write-only mode.
JMSException - if JMS fails to read message due to some internal JMS error.

writeInt(int)

public void writeInt(int value)

Write a int to the stream as a 4-byte, high byte first

Specified By

javax.jms.StreamMessage.writeInt(int) in interface javax.jms.StreamMessage

Parameters

value - the int to be written

Throws

MessageNotWritableException - if message in write-only mode.
JMSException - if JMS fails to read message due to some internal JMS error.

writeLong(long)

public void writeLong(long value)

Write a int to the stream as a 4-byte, high byte first

Specified By

javax.jms.StreamMessage.writeLong(long) in interface javax.jms.StreamMessage

Parameters

value - the int to be written

Throws

MessageNotWritableException - if message in write-only mode.
JMSException - if JMS fails to read message due to some internal JMS error.

writeObject(Object)

public void writeObject(java.lang.Object value)

Write a java object to the stream message

Specified By

Javax.jms.StreamMessage.writeObject(java.lang.Object) in interface
javax.jms.StreamMessage

Parameters

value - the java object to be written.

Throws

MessageNotWritableException - if message in write-only mode.
MessageFormatException - if object is invalid type
JMSException - if JMS fails to read message due to some internal JMS error.

writeShort(short)

public void writeShort(short value)

Write a short to the stream as a 2-byte, high byte first

Specified By

javax.jms.StreamMessage.writeShort(short) in interface javax.jms.StreamMessage

Parameters

value - the short to be written

Throws

MessageNotWritableException - if message in write-only mode.
JMSException - if JMS fails to read message due to some internal JMS error.

writeString(String)

public void writeString(java.lang.String value)

Writes a string to the underlying output stream

Specified By

javax.jms.StreamMessage.writeString(java.lang.String) in interface
javax.jms.StreamMessage

Parameters

value - The string to be written

Throws

MessageNotWritableException - if message in write-only mode.
JMSException - if JMS fails to read message due to some internal JMS error.

All rights reserved © 2018 Wisdom IT Services India Pvt. Ltd DMCA.com Protection Status

Oracle 9i Topics