|
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.AQjmsBytesMessage
This is an Oracle class which implements javax.jms.BytesMessage.
| 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. |
long |
getBodyLength()Gets the number of bytes of the message body when the message is in read-only mode. |
boolean |
readBoolean()Reads the next byte from this bytes message and returns it as a boolean. |
byte |
readByte()Reads the next byte from this bytes message and returns it as a byte. |
int |
readBytes(byte[] value)Reads bytes from this bytes message and places them into a byte[] buffer. |
int |
readBytes(byte[] value, int length)Reads bytes from this bytes message and places them into the specified portion of a byte[] buffer. |
char |
readChar()Reads the next two bytes from this bytes message and returns them as a char. |
double |
readDouble()Reads the next eight bytes from this bytes message and returns them as a double. |
float |
readFloat()Reads the next four bytes from this bytes message and returns them as a float. |
int |
readInt()Reads the next four bytes from this bytes message and returns them as an int. |
long |
readLong()Reads the next eight bytes from this bytes message and returns them as a long. |
short |
readShort()Reads the next two bytes from this bytes message and returns them as a short. |
int |
readUnsignedByte()Reads the next byte from this bytes message and returns it as an int. |
int |
readUnsignedShort()Reads the next two bytes from this bytes message and returns them as an int. |
java.lang.String |
readUTF()Reads a string that has been encoded using a modified UTF-8 format from this bytes message. |
void |
reset()Puts the message body into read-only mode, and repositions the byte stream to the beginning. |
void |
writeBoolean(boolean value)Writes a boolean to this bytes message as one byte. |
void |
writeByte(byte value)Writes a byte to this bytes message as a single-byte integer. |
void |
writeBytes(byte[] value)Writes the contents of a byte[] to this bytes message. |
void |
writeBytes(byte[] value, int offset, int length)Writes a portion of a byte[] to this bytes message. |
void |
writeChar(char value)Writes a char to this bytes message as a two-byte value, high byte first. |
void |
writeDouble(double value)Writes a double to this bytes message as an IEEE 754 double-precision number (byte with sign-bit first). |
void |
writeFloat(float value)Writes a float to this bytes message as an IEEE 754 single-precision number (byte with sign-bit first). |
void |
writeInt(int value)Writes an int to this bytes message as a big-endian four-byte integer. |
void |
writeLong(long value)Writes a long to this bytes message as a big-endian eight-byte integer. |
void |
writeObject(java.lang.Object value)Writes a Java object to this bytes message. |
void |
writeShort(short value)Writes a short to this bytes message as a big-endian two-byte integer. |
void |
writeUTF(java.lang.String value)Writes a String to this bytes message using UTF-8 encoding in a machine-independent manner. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
public void clearBody()
throws JMSException
clearBody in interface MessageclearBody in class AQjmsMessageJMSException - if the message body is not cleared due to some error.
public void clearProperties()
throws JMSException
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 BytesMessagebooleanJMSException - if a boolean is not retrieved due to some error.MessageEOFException - if the end of the bytes stream has been reached.MessageNotReadableException - if the message is in write-only mode.
public byte readByte()
throws JMSException
byte.readByte in interface BytesMessageJMSException - if a byte is not retrieved due to some error.MessageEOFException - if the end of the bytes stream has been reached.MessageNotReadableException - if the message is in write-only mode.
public int readUnsignedByte()
throws JMSException
int.readUnsignedByte in interface BytesMessageJMSException - if an int is not retrieved due to some error.MessageEOFException - if the end of the bytes stream has been reached.MessageNotReadableException - if the message is in write-only mode.
public short readShort()
throws JMSException
short.readShort in interface BytesMessageJMSException - if a short is not retrieved due to some error.MessageEOFException - if the end of the bytes stream has been reached.MessageNotReadableException - if the message is in write-only mode.
public int readUnsignedShort()
throws JMSException
int.readUnsignedShort in interface BytesMessageJMSException - if an int is not retrieved due to some error.MessageEOFException - if the end of the bytes stream has been reached.MessageNotReadableException - if the message is in write-only mode.
public char readChar()
throws JMSException
char.readChar in interface BytesMessageJMSException - if a char is not retrieved due to some error.MessageEOFException - if the end of the bytes stream has been reached.MessageNotReadableException - if the message is in write-only mode.
public int readInt()
throws JMSException
int.readInt in interface BytesMessageJMSException - if an int is not retrieved due to some error.MessageEOFException - if the end of the bytes stream has been reached.MessageNotReadableException - if the message is in write-only mode.
public long readLong()
throws JMSException
long.readLong in interface BytesMessageJMSException - if a long is not retrieved due to some error.MessageEOFException - if the end of the bytes stream has been reached.MessageNotReadableException - if the message is in write-only mode.
public float readFloat()
throws JMSException
float.readFloat in interface BytesMessageJMSException - if a float is not retrieved due to some error.MessageEOFException - if the end of the bytes stream has been reached.MessageNotReadableException - if the message is in write-only mode.
public double readDouble()
throws JMSException
double.readDouble in interface BytesMessageJMSException - if a double is not retrieved due to some error.MessageEOFException - if the end of the bytes stream has been reached.MessageNotReadableException - if the message is in write-only mode.
public java.lang.String readUTF()
throws JMSException
readUTF in interface BytesMessageJMSException - if a String is not retrieved due to some error.MessageEOFException - if the end of the bytes stream has been reached.MessageNotReadableException - if the message is in write-only mode.
public int readBytes(byte[] value)
throws JMSException
byte[] buffer.readBytes in interface BytesMessagevalue - the buffer into which the data is readJMSException - if the bytes are not read due to some error.MessageNotReadableException - if the message is in write-only mode.
public int readBytes(byte[] value,
int length)
throws JMSException
byte[] buffer.readBytes in interface BytesMessagevalue - the buffer into which the data is readlength - the number of bytes to readJMSException - if the bytes are not read due to some error.MessageNotReadableException - if the message is in write-only mode.
public void writeBoolean(boolean value)
throws JMSException
boolean to this bytes message as one byte. For true, (byte)1 is written. For false, (byte)0 is written.writeBoolean in interface BytesMessagevalue - the boolean value to be writtenJMSException - if value is not written due to some error.MessageNotWriteableException - if the message is in read-only mode.
public void writeByte(byte value)
throws JMSException
byte to this bytes message as a single-byte integer.writeByte in interface BytesMessagevalue - the byte value to be writtenJMSException - if value is not written due to some error.MessageNotWriteableException - if the message is in read-only mode.
public void writeShort(short value)
throws JMSException
short to this bytes message as a big-endian two-byte integer.writeShort in interface BytesMessagevalue - the short value to be writtenJMSException - if value is not written due to some error.MessageNotWriteableException - if the message is in read-only mode.
public void writeChar(char value)
throws JMSException
char to this bytes message as a two-byte value, high byte first.writeChar in interface BytesMessagevalue - the char value to be writtenJMSException - if value is not written due to some error.MessageNotWriteableException - if the message is in read-only mode.
public void writeInt(int value)
throws JMSException
int to this bytes message as a big-endian four-byte integer.writeInt in interface BytesMessagevalue - the int value to be writtenJMSException - if value is not written due to some error.MessageNotWriteableException - if the message is in read-only mode.
public void writeLong(long value)
throws JMSException
long to this bytes message as a big-endian eight-byte integer.writeLong in interface BytesMessagevalue - the long value to be writtenJMSException - if value is not written due to some error.MessageNotWriteableException - if the message is in read-only mode.
public void writeFloat(float value)
throws JMSException
float to this bytes message as an IEEE 754 single-precision number (byte with sign-bit first).writeFloat in interface BytesMessagevalue - the float value to be writtenJMSException - if value is not written due to some error.MessageNotWriteableException - if the message is in read-only mode.
public void writeDouble(double value)
throws JMSException
double to this bytes message as an IEEE 754 double-precision number (byte with sign-bit first).writeDouble in interface BytesMessagevalue - the double value to be writtenJMSException - if value is not written due to some error.MessageNotWriteableException - if the message is in read-only mode.
public void writeUTF(java.lang.String value)
throws JMSException
String to this bytes message using UTF-8 encoding in a machine-independent manner.writeUTF in interface BytesMessagevalue - the String value to be writtenJMSException - if value is not written due to some error.MessageNotWriteableException - if the message is in read-only mode.
public void writeBytes(byte[] value)
throws JMSException
byte[] to this bytes message.writeBytes in interface BytesMessagevalue - the source arrayJMSException - if the bytes are not written due to some error.MessageNotWriteableException - if the message is in read-only mode.
public void writeBytes(byte[] value,
int offset,
int length)
throws JMSException
byte[] to this bytes message.writeBytes in interface BytesMessagevalue - the source arrayoffset - the initial offset within the source arraylength - the number of bytes to use from the source arrayJMSException - if the bytes are not written due to some error.MessageNotWriteableException - if the message is in read-only mode.
public void writeObject(java.lang.Object value)
throws JMSException
Note that this method only works for the objectified primitive object types (Integer, Double, Long ...), Strings and byte arrays. The output format is the same as for the the equivalent primitive writetype method.
writeObject in interface BytesMessagevalue - the Java object to be writtenJMSException - if value is not written due to some error.MessageFormatException - if the object is of an invalid type.MessageNotWriteableException - if the message is in read-only mode.java.lang.NullPointerException - if the parameter value is null.
public void reset()
throws JMSException
reset in interface BytesMessageJMSException - if the message is not reset due to some error.MessageFormatException - if the message has an invalid format.
public long getBodyLength()
throws JMSException
byte array. The value returned is the entire length of the message body, regardless of where the pointer for reading the message is currently located.getBodyLength in interface BytesMessageJMSException - if the JMS provider fails to read the message due to some internal error.MessageNotReadableException - if the message is in write-only mode.
|
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 | |||||||||