|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--jms4spread.Message | +--jms4spread.BytesMessage
A ByteMessage Object is used to send a stream of uninterpretted bytes
Fields inherited from class jms4spread.Message |
DEFAULT_DELIVERY_MODE, DEFAULT_PRIORITY, DEFAULT_TIME_TO_LIVE |
Method Summary | |
void |
clearBody()
Clears the Message Body |
boolean |
readBoolean()
Reads a boolean from the stream |
byte |
readByte()
Reads a byte from the stream |
int |
readBytes(byte[] value)
Reads a byte array from the stream |
char |
readChar()
Reads a char from the stream |
double |
readDouble()
Reads a double from the stream |
float |
readFloat()
Reads a float from the stream |
int |
readInt()
Reads an int from the stream |
long |
readLong()
Reads a long from the stream |
short |
readShort()
Reads a short from the stream |
int |
readUnsignedByte()
Reads an unsigned Byte from the Stream |
int |
readUnsignedShort()
Reads an unsigned short from the stream |
java.lang.String |
readUTF()
Reads a string from the stream in UTF format |
void |
reset()
Puts the message in read only mode and repositions the stream to beginging |
void |
writeBoolean(boolean value)
Writes a boolean to the stream |
void |
writeByte(byte value)
Writes a byte to the stream |
void |
writeBytes(byte[] value)
Writes an array of bytes to the stream in UTF format |
void |
writeBytes(byte[] value,
int offset,
int length)
Writes an array of bytes to the stream in UTF format |
void |
writeChar(char value)
Writes a char to the stream |
void |
writeDouble(double value)
Writes a double to the stream |
void |
writeFloat(float value)
Writes a float to the stream |
void |
writeInt(int value)
Writes an int to the stream |
void |
writeLong(long value)
Writes a long to the stream |
void |
writeObject(java.lang.Object value)
Writes an array of bytes to the stream in UTF format This method only works for primitive object types |
void |
writeShort(short value)
Writes a short to the stream |
void |
writeUTF(java.lang.String value)
Writes a string to the stream in UTF format |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
public void clearBody() throws JMSException
clearBody
in class Message
JMSException
- if it fails due to some internal errorpublic void reset() throws JMSException
JMSException
- if there in an internal errorpublic int readUnsignedByte() throws JMSException
JMSException
- if there in an internal errorpublic int readUnsignedShort() throws JMSException
JMSException
- if there in an internal errorpublic boolean readBoolean() throws JMSException
JMSException
- if there in an internal errorpublic byte readByte() throws JMSException
JMSException
- if there in an internal errorpublic short readShort() throws JMSException
JMSException
- if there in an internal errorpublic char readChar() throws JMSException
JMSException
- if there in an internal errorpublic int readInt() throws JMSException
JMSException
- if there in an internal errorpublic long readLong() throws JMSException
JMSException
- if there in an internal errorpublic float readFloat() throws JMSException
JMSException
- if there in an internal errorpublic double readDouble() throws JMSException
JMSException
- if there in an internal errorpublic java.lang.String readUTF() throws JMSException
JMSException
- if there in an internal errorpublic int readBytes(byte[] value) throws JMSException
value
- the buffer into which data is readJMSException
- if there in an internal errorpublic void writeBoolean(boolean value) throws JMSException
JMSException
- if there in an internal errorpublic void writeByte(byte value) throws JMSException
JMSException
- if there in an internal errorpublic void writeShort(short value) throws JMSException
JMSException
- if there in an internal errorpublic void writeChar(char value) throws JMSException
JMSException
- if there in an internal errorpublic void writeInt(int value) throws JMSException
JMSException
- if there in an internal errorpublic void writeLong(long value) throws JMSException
JMSException
- if there in an internal errorpublic void writeFloat(float value) throws JMSException
JMSException
- if there in an internal errorpublic void writeDouble(double value) throws JMSException
JMSException
- if there in an internal errorpublic void writeUTF(java.lang.String value) throws JMSException
JMSException
- if there in an internal errorpublic void writeBytes(byte[] value) throws JMSException
value
- the array to be writtenJMSException
- if there in an internal errorpublic void writeBytes(byte[] value, int offset, int length) throws JMSException
value
- the array to be writtenoffset
- the initial offset in the arraylength
- the number of bytes to useJMSException
- if there in an internal errorpublic void writeObject(java.lang.Object value) throws JMSException
value
- the Object to be writtenJMSException
- if there in an internal error
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |