<!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
MessageThe message's header fields and body are not cleared.
clearProperties in interface MessageclearProperties in class AQjmsMessageJMSException - if the JMS provider fails to clear the message properties due to some internal error.
public boolean readBoolean()
throws JMSException
readBoolean in interface StreamMessageMessageNotReadableException - 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
public byte readByte()
throws JMSException
readByte in interface StreamMessageMessageNotReadableException - 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
public short readShort()
throws JMSException
readShort in interface StreamMessageMessageNotReadableException - 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
public char readChar()
throws JMSException
readChar in interface StreamMessageMessageNotReadableException - 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
public int readInt()
throws JMSException
readInt in interface StreamMessageMessageNotReadableException - 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
public long readLong()
throws JMSException
readLong in interface StreamMessageMessageNotReadableException - 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
public float readFloat()
throws JMSException
readFloat in interface StreamMessageMessageNotReadableException - 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
public double readDouble()
throws JMSException
readDouble in interface StreamMessageMessageNotReadableException - 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
public java.lang.String readString()
throws JMSException
readString in interface StreamMessageMessageNotReadableException - 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
public int readBytes(byte[] value)
throws JMSException
readBytes in interface StreamMessagevalue - 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 StreamMessagevalue - 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 StreamMessagevalue - 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 StreamMessagevalue - 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 StreamMessagevalue - 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 StreamMessagevalue - 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 StreamMessagevalue - 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 StreamMessagevalue - 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 StreamMessagevalue - 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 StreamMessagevalue - 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 StreamMessagevalue - 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 StreamMessagevalue - 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 StreamMessagevalue - 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 StreamMessageJMSException - 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 StreamMessageMessageNotWriteableException - 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 MessageclearBody in class AQjmsMessageJMSException - if JMS fails to due to some internal JMS error.protected oracle.sql.ORAData getMessageCont()
getMessageCont in class AQjmsMessageprotected void closeContainer()
closeContainer in class AQjmsMessage
protected void populateMessageContainer(oracle.jdbc.OracleConnection db_conn,
boolean usetemplob)
throws JMSException,
java.sql.SQLException
populateMessageContainer in class AQjmsMessageJMSExceptionjava.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 AQjmsMessageJMSException
|
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 | |||||||||