|
Oracle® Streams Advanced Queuing Java API Reference 10g Release 2 (10.2) B14291-01 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object
oracle.jms.AQjmsMessage
oracle.jms.AQjmsStreamMessage
This is an Oracle class which implements javax.jms.StreamMessage
.
Field Summary |
Fields inherited from interface javax.jms.Message |
DEFAULT_DELIVERY_MODE, DEFAULT_PRIORITY, DEFAULT_TIME_TO_LIVE |
Method Summary | |
void |
clearBody() Clears out the message body. |
void |
clearProperties() Clears a message's properties. |
boolean |
readBoolean() Reads the next value from this stream message and returns it as a boolean . |
byte |
readByte() Reads the next value from this stream message and returns it as a byte . |
int |
readBytes(byte[] value) Reads a byte array field from this stream message. |
char |
readChar() Reads the next value from this stream message and returns it as a Unicode character. |
double |
readDouble() Reads the next value from this stream message and returns it as a double . |
float |
readFloat() Reads the next value from this stream message and returns it as a float . |
int |
readInt() Reads the next value from this stream message and returns it as an int . |
long |
readLong() Reads the next value from this stream message and returns it as a long . |
java.lang.Object |
readObject() Reads the next value from this stream message and returns it as a Java object. |
short |
readShort() Reads the next value from this stream message and returns it as a short . |
java.lang.String |
readString() Reads the next value from this stream message and returns it as a String . |
void |
reset() Puts the message body into read-only mode, and repositions the stream to the beginning. |
void |
writeBoolean(boolean value) Writes a boolean value to this stream message. |
void |
writeByte(byte value) Writes a byte value to this stream message. |
void |
writeBytes(byte[] value) Writes a byte[] value to this stream message. |
void |
writeBytes(byte[] value, int offset, int length) Writes a portion of a byte[] to this stream message. |
void |
writeChar(char value) Writes a char value to this stream message. |
void |
writeDouble(double value) Writes a double value to this stream message. |
void |
writeFloat(float value) Writes a float value to this stream message. |
void |
writeInt(int value) Writes an int value to this stream message. |
void |
writeLong(long value) Writes a long value to this stream message. |
void |
writeObject(java.lang.Object value) Writes a Java object to this stream message. |
void |
writeShort(short value) Writes a short value to this stream message. |
void |
writeString(java.lang.String value) Writes a String value to this stream message. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
public void clearProperties() throws JMSException
Message
The message's header fields and body are not cleared.
clearProperties
in interface Message
clearProperties
in class AQjmsMessage
JMSException
- if the message properties are not cleared due to some error.public boolean readBoolean() throws JMSException
boolean
.readBoolean
in interface StreamMessage
boolean
JMSException
- if the value is not read due to some error.MessageEOFException
- if the end of the message stream has been reached.MessageFormatException
- if the conversion is invalid.MessageNotReadableException
- if the message is in write-only mode.public byte readByte() throws JMSException
byte
.readByte
in interface StreamMessage
byte
JMSException
- if the value is not read due to some error.MessageEOFException
- if the end of the message stream has been reached.MessageFormatException
- if the conversion is invalid.MessageNotReadableException
- if the message is in write-only mode.public short readShort() throws JMSException
short
.readShort
in interface StreamMessage
short
JMSException
- if the value is not read due to some error.MessageEOFException
- if the end of the message stream has been reached.MessageFormatException
- if the conversion is invalid.MessageNotReadableException
- if the message is in write-only mode.public char readChar() throws JMSException
readChar
in interface StreamMessage
char
JMSException
- if the value is not read due to some error.MessageEOFException
- if the end of the message stream has been reached.MessageFormatException
- if the conversion is invalid.MessageNotReadableException
- if the message is in write-only mode.public int readInt() throws JMSException
int
.readInt
in interface StreamMessage
int
JMSException
- if the value is not read due to some error.MessageEOFException
- if the end of the message stream has been reached.MessageFormatException
- if the conversion is invalid.MessageNotReadableException
- if the message is in write-only mode.public long readLong() throws JMSException
long
.readLong
in interface StreamMessage
long
JMSException
- if the value is not read due to some error.MessageEOFException
- if the end of the message stream has been reached.MessageFormatException
- if the conversion is invalid.MessageNotReadableException
- if the message is in write-only mode.public float readFloat() throws JMSException
float
.readFloat
in interface StreamMessage
float
JMSException
- if the value is not read due to some error.MessageEOFException
- if the end of the message stream has been reached.MessageFormatException
- if the conversion is invalid.MessageNotReadableException
- if the message is in write-only mode.public double readDouble() throws JMSException
double
.readDouble
in interface StreamMessage
double
JMSException
- if the value is not read due to some error.MessageEOFException
- if the end of the message stream has been reached.MessageFormatException
- if the conversion is invalid.MessageNotReadableException
- if the message is in write-only mode.public java.lang.String readString() throws JMSException
String
.readString
in interface StreamMessage
String
JMSException
- if the value is not read due to some error.MessageEOFException
- if the end of the message stream has been reached.MessageFormatException
- if the conversion is invalid.MessageNotReadableException
- if the message is in write-only mode.public int readBytes(byte[] value) throws JMSException
readBytes
in interface StreamMessage
value
- the buffer into which the data is readJMSException
- if the byte[]
is not read due to some error.MessageEOFException
- if the end of the message stream has been reached.MessageFormatException
- if the next value in the stream is not a byte[]
.MessageNotReadableException
- if the message is in write-only mode.StreamMessage.readObject()
public void writeBoolean(boolean value) throws JMSException
boolean
value to this stream message.writeBoolean
in interface StreamMessage
value
- the boolean
value to be writtenJMSException
- if value
is not written due to some error.MessageNotWriteableException
- if this message is in read-only mode.public void writeByte(byte value) throws JMSException
byte
value to this stream message.writeByte
in interface StreamMessage
value
- the byte
value to be writtenJMSException
- if value
is not written due to some error.MessageNotWriteableException
- if this message is in read-only mode.public void writeShort(short value) throws JMSException
short
value to this stream message.writeShort
in interface StreamMessage
value
- the short
value to be writtenJMSException
- if value
is not written due to some error.MessageNotWriteableException
- if this message is in read-only mode.public void writeChar(char value) throws JMSException
char
value to this stream message.writeChar
in interface StreamMessage
value
- the char
value to be writtenJMSException
- if value
is not written due to some error.MessageNotWriteableException
- if this message is in read-only mode.public void writeInt(int value) throws JMSException
int
value to this stream message.writeInt
in interface StreamMessage
value
- the int
value to be writtenJMSException
- if value
is not written due to some error.MessageNotWriteableException
- if this message is in read-only mode.public void writeLong(long value) throws JMSException
long
value to this stream message.writeLong
in interface StreamMessage
value
- the long
value to be writtenJMSException
- if value
is not written due to some error.MessageNotWriteableException
- if this message is in read-only mode.public void writeFloat(float value) throws JMSException
float
value to this stream message.writeFloat
in interface StreamMessage
value
- the float
value to be writtenJMSException
- if value
is not written due to some error.MessageNotWriteableException
- if this message is in read-only mode.public void writeDouble(double value) throws JMSException
double
value to this stream message.writeDouble
in interface StreamMessage
value
- the double
value to be writtenJMSException
- if value
is not written due to some error.MessageNotWriteableException
- if this message is in read-only mode.public void writeString(java.lang.String value) throws JMSException
String
value to this stream message.writeString
in interface StreamMessage
value
- the String
value to be writtenJMSException
- if value
is not written due to some error.MessageNotWriteableException
- if this message is in read-only mode.public void writeBytes(byte[] value) throws JMSException
byte[]
value to this stream message.writeBytes
in interface StreamMessage
value
- the byte[]
value to be writtenJMSException
- if value
is not written due to some error.MessageNotWriteableException
- if this message is in read-only mode.public void writeBytes(byte[] value, int offset, int length) throws JMSException
byte[]
to this stream message.writeBytes
in interface StreamMessage
value
- the source arrayoffset
- the initial offset within the source arraylength
- the number of bytes to use from the source arrayJMSException
- if the portion is not written due to some error.MessageNotWriteableException
- if this message is in read-only mode.public void writeObject(java.lang.Object value) throws JMSException
writeObject
in interface StreamMessage
value
- the Java object to be writtenJMSException
- if value
is not written due to some error.MessageFormatException
- if the object is invalid.MessageNotWriteableException
- if this message is in read-only mode.public java.lang.Object readObject() throws JMSException
writeObject
method or the format's equivalent primitive write
type method.readObject
in interface StreamMessage
int
is converted to Integer
)JMSException
- if the value is not read due to some error.MessageEOFException
- if the end of the message stream has been reached.MessageFormatException
- if the conversion is invalid.MessageNotReadableException
- if the message is in write-only mode.StreamMessage.readBytes(byte[] value)
public void reset() throws JMSException
reset
in interface StreamMessage
JMSException
- if the message is not reset due to some error.MessageFormatException
- if the message has an invalid format.public void clearBody() throws JMSException
clearBody
in interface Message
clearBody
in class AQjmsMessage
JMSException
- if the message body is not cleared due to some error.
|
Oracle® Streams Advanced Queuing Java API Reference 10g Release 2 (10.2) B14291-01 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |