<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN""http://www.w3.org/TR/REC-html40/loose.dtd">
|
Oracle® Streams Advanced Queuing Java API Reference Release 1 (10.1) B12023-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
Oracle class implementing 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() Clear out the message body. |
void |
clearProperties() Clears a message's properties. |
protected void |
closeContainer() |
protected oracle.sql.ORAData |
getMessageCont() |
protected void |
populateMessageContainer(oracle.jdbc.OracleConnection db_conn, boolean usetemplob) |
boolean |
readBoolean() Reads a boolean from the stream message |
byte |
readByte() Reads a signed 8-bit value from the stream message |
int |
readBytes(byte[] value) Read a byte array from the stream message |
char |
readChar() Read a Unicode character value from the stream message |
double |
readDouble() Read a double from the stream message |
float |
readFloat() Read a float from the stream message |
int |
readInt() Read a signed 32 bit integer from the stream message |
long |
readLong() Read a signed 64 bit integer from the stream message |
java.lang.Object |
readObject() Read a Java object from the stream message. |
short |
readShort() Reads a signed 16-bit value from the stream message |
java.lang.String |
readString() Read a string from the stream message |
void |
reset() Put the message in read-only mode, and reposition the stream of bytes to the beginning. |
protected void |
write_lob(java.sql.Connection db_conn, java.lang.String q_table, byte[] msg_id, boolean gen_pload, boolean is_anydata_dest) |
void |
writeBoolean(boolean value) Write a boolean to the stream message as a 1-byte value. |
void |
writeByte(byte value) Write out a byte to the stream message as a 1-byte value. |
void |
writeBytes(byte[] value) Write a byte array to the stream message |
void |
writeBytes(byte[] value, int offset, int length) Write a portion of byte array to the stream message |
void |
writeChar(char value) Write a char to the stream as a 2-byte, high byte first |
void |
writeDouble(double value) Write a double to the stream as a 8-byte, high byte first |
void |
writeFloat(float value) Write a float to the stream as a 4-byte, high byte first |
void |
writeInt(int value) Write a int to the stream as a 4-byte, high byte first |
void |
writeLong(long value) Write a int to the stream as a 4-byte, high byte first |
void |
writeObject(java.lang.Object value) Write a java object to the stream message |
void |
writeShort(short value) Write a short to the stream as a 2-byte, high byte first |
void |
writeString(java.lang.String value) Writes a string to the underlying output stream |
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 JMS provider fails to clear the message properties due to some internal error.public boolean readBoolean() throws JMSException
readBoolean
in interface StreamMessage
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 streampublic byte readByte() throws JMSException
readByte
in interface StreamMessage
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 streampublic short readShort() throws JMSException
readShort
in interface StreamMessage
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 streampublic char readChar() throws JMSException
readChar
in interface StreamMessage
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 streampublic int readInt() throws JMSException
readInt
in interface StreamMessage
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 streampublic long readLong() throws JMSException
readLong
in interface StreamMessage
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 streampublic float readFloat() throws JMSException
readFloat
in interface StreamMessage
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 streampublic double readDouble() throws JMSException
readDouble
in interface StreamMessage
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 streampublic java.lang.String readString() throws JMSException
readString
in interface StreamMessage
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 streampublic int readBytes(byte[] value) throws JMSException
readBytes
in interface StreamMessage
value
- the buffer into which the data is readMessageNotReadableException
- if message in write-only mode.JMSException
- if JMS fails to read message due to some internal JMS error.MessageEOFException
- if end of message streamStreamMessage.readObject()
public void writeBoolean(boolean value) throws JMSException
writeBoolean
in interface StreamMessage
value
- the boolean value to be writtenMessageNotWritableException
- if message in write-only mode.JMSException
- if JMS fails to read message due to some internal JMS error.public void writeByte(byte value) throws JMSException
writeByte
in interface StreamMessage
value
- the byte value to be writtenMessageNotWritableException
- if message in write-only mode.JMSException
- if JMS fails to read message due to some internal JMS error.public void writeShort(short value) throws JMSException
writeShort
in interface StreamMessage
value
- the short to be writtenMessageNotWritableException
- if message in write-only mode.JMSException
- if JMS fails to read message due to some internal JMS error.public void writeChar(char value) throws JMSException
writeChar
in interface StreamMessage
value
- the char to be writtenMessageNotWritableException
- if message in write-only mode.JMSException
- if JMS fails to read message due to some internal JMS error.public void writeInt(int value) throws JMSException
writeInt
in interface StreamMessage
value
- the int to be writtenMessageNotWritableException
- if message in write-only mode.JMSException
- if JMS fails to read message due to some internal JMS error.public void writeLong(long value) throws JMSException
writeLong
in interface StreamMessage
value
- the int to be writtenMessageNotWritableException
- if message in write-only mode.JMSException
- if JMS fails to read message due to some internal JMS error.public void writeFloat(float value) throws JMSException
writeFloat
in interface StreamMessage
value
- the float to be writtenMessageNotWritableException
- if message in write-only mode.JMSException
- if JMS fails to read message due to some internal JMS error.public void writeDouble(double value) throws JMSException
writeDouble
in interface StreamMessage
value
- The double to be writtenMessageNotWritableException
- if message in write-only mode.JMSException
- if JMS fails to read message due to some internal JMS error.public void writeString(java.lang.String value) throws JMSException
writeString
in interface StreamMessage
value
- The string to be writtenMessageNotWritableException
- if message in write-only mode.JMSException
- if JMS fails to read message due to some internal JMS error.public void writeBytes(byte[] value) throws JMSException
writeBytes
in interface StreamMessage
value
- The byte array to be writtenMessageNotWritableException
- if message in write-only mode.JMSException
- if JMS fails to read message due to some internal JMS error.public void writeBytes(byte[] value, int offset, int length) throws JMSException
writeBytes
in interface StreamMessage
value
- the byte array to be writtenoffset
- the initial offset within the byte arraylength
- the number of bytes to useMessageNotWritableException
- if message in write-only mode.JMSException
- if JMS fails to read message due to some internal JMS error.public void writeObject(java.lang.Object value) throws JMSException
writeObject
in interface StreamMessage
value
- the java object to be written.MessageNotWritableException
- if message in write-only mode.MessageFormatException
- if object is invalid typeJMSException
- if JMS fails to read message due to some internal JMS error.public java.lang.Object readObject() throws JMSException
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<type> method.
readObject
in interface StreamMessage
JMSException
- if JMS fails to read message due to some internal JMS error.MessageEOFException
- if an end of message streamMessageNotReadableException
- if message in write-only mode.StreamMessage.readBytes(byte[] value)
public void reset() throws JMSException
reset
in interface StreamMessage
MessageNotWriteableException
- if message in write-only mode.JMSException
- if JMS fails to read message due to some internal JMS error.public void clearBody() throws JMSException
clearBody
in interface Message
clearBody
in class AQjmsMessage
JMSException
- if JMS fails to due to some internal JMS error.protected oracle.sql.ORAData getMessageCont()
getMessageCont
in class AQjmsMessage
protected void closeContainer()
closeContainer
in class AQjmsMessage
protected void populateMessageContainer(oracle.jdbc.OracleConnection db_conn, boolean usetemplob) throws JMSException, java.sql.SQLException
populateMessageContainer
in class AQjmsMessage
JMSException
java.sql.SQLException
protected void write_lob(java.sql.Connection db_conn, java.lang.String q_table, byte[] msg_id, boolean gen_pload, boolean is_anydata_dest) throws JMSException
write_lob
in class AQjmsMessage
JMSException
|
Oracle® Streams Advanced Queuing Java API Reference Release 1 (10.1) B12023-01 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |