|
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
MessageThe message's header fields and body are not cleared.
clearProperties in interface MessageclearProperties in class AQjmsMessageJMSException - if the message properties are not cleared due to some error.
public boolean readBoolean()
throws JMSException
boolean.readBoolean in interface StreamMessagebooleanJMSException - 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 StreamMessagebyteJMSException - 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 StreamMessageshortJMSException - 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 StreamMessagecharJMSException - 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 StreamMessageintJMSException - 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 StreamMessagelongJMSException - 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 StreamMessagefloatJMSException - 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 StreamMessagedoubleJMSException - 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 StreamMessageStringJMSException - 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 StreamMessagevalue - 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 StreamMessagevalue - 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 StreamMessagevalue - 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 StreamMessagevalue - 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 StreamMessagevalue - 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 StreamMessagevalue - 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 StreamMessagevalue - 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 StreamMessagevalue - 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 StreamMessagevalue - 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 StreamMessagevalue - 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 StreamMessagevalue - 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 StreamMessagevalue - 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 StreamMessagevalue - 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 writetype method.readObject in interface StreamMessageint 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 StreamMessageJMSException - 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 MessageclearBody in class AQjmsMessageJMSException - 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 | |||||||||