|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.caucho.jms.message.MessageImpl
com.caucho.jms.message.BytesMessageImpl
public class BytesMessageImpl
A byte-stream message.
| Field Summary |
|---|
| Fields inherited from class com.caucho.jms.message.MessageImpl |
|---|
L, log |
| Fields inherited from interface javax.jms.Message |
|---|
DEFAULT_DELIVERY_MODE, DEFAULT_PRIORITY, DEFAULT_TIME_TO_LIVE |
| Constructor Summary | |
|---|---|
BytesMessageImpl()
|
|
| Method Summary | |
|---|---|
java.io.InputStream |
bodyToInputStream()
Serialize the body to an input stream. |
void |
clearBody()
Clears the message and puts it into write mode. |
MessageImpl |
copy()
|
protected void |
copy(BytesMessageImpl newMsg)
|
long |
getBodyLength()
|
protected ReadStream |
getReadStream()
|
MessageType |
getType()
Returns the type enumeration. |
protected WriteStream |
getWriteStream()
|
void |
readBody(java.io.InputStream is)
Read the body from an input stream. |
boolean |
readBoolean()
Read a boolean from the stream. |
byte |
readByte()
Read a byte from the stream. |
int |
readBytes(byte[] value)
Read a byte array object from the stream. |
int |
readBytes(byte[] value,
int length)
Read a byte array object from the stream. |
char |
readChar()
Read a character object from the stream. |
double |
readDouble()
Read a double from the stream. |
float |
readFloat()
Read a float from the stream. |
int |
readInt()
Read an integer from the stream. |
long |
readLong()
Read a long from the stream. |
short |
readShort()
Read a short from the stream. |
int |
readUnsignedByte()
Read an unsigned byte from the stream. |
int |
readUnsignedShort()
Read an unsigned short from the stream. |
java.lang.String |
readUTF()
Read a string from the stream. |
void |
reset()
Set the stream for reading. |
void |
setReceive()
Sets the body for reading. |
java.lang.String |
toString()
|
void |
writeBoolean(boolean b)
Writes a boolean to the stream. |
void |
writeByte(byte b)
Writes a byte to the stream. |
void |
writeBytes(byte[] buf)
Writes a byte array to the stream. |
void |
writeBytes(byte[] buf,
int offset,
int length)
Writes a byte array to the stream. |
void |
writeChar(char ch)
Writes a character to the stream. |
void |
writeDouble(double d)
Writes a double to the stream. |
void |
writeFloat(float f)
Writes a float to the stream. |
void |
writeInt(int i)
Writes an integer to the stream. |
void |
writeLong(long l)
Writes a long to the stream. |
void |
writeObject(java.lang.Object obj)
Writes the next object. |
void |
writeShort(short s)
Writes a short to the stream. |
void |
writeUTF(java.lang.String s)
Writes a string to the stream. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public BytesMessageImpl()
| Method Detail |
|---|
public MessageType getType()
getType in class MessageImpl
public void setReceive()
throws JMSException
setReceive in class MessageImplJMSException
public void reset()
throws JMSException
reset in interface BytesMessageJMSException
public boolean readBoolean()
throws JMSException
readBoolean in interface BytesMessageJMSException
public byte readByte()
throws JMSException
readByte in interface BytesMessageJMSException
public int readUnsignedByte()
throws JMSException
readUnsignedByte in interface BytesMessageJMSException
public short readShort()
throws JMSException
readShort in interface BytesMessageJMSException
public int readUnsignedShort()
throws JMSException
readUnsignedShort in interface BytesMessageJMSException
public int readInt()
throws JMSException
readInt in interface BytesMessageJMSException
public long readLong()
throws JMSException
readLong in interface BytesMessageJMSException
public float readFloat()
throws JMSException
readFloat in interface BytesMessageJMSException
public double readDouble()
throws JMSException
readDouble in interface BytesMessageJMSException
public char readChar()
throws JMSException
readChar in interface BytesMessageJMSException
public java.lang.String readUTF()
throws JMSException
readUTF in interface BytesMessageJMSException
public int readBytes(byte[] value)
throws JMSException
readBytes in interface BytesMessageJMSException
public int readBytes(byte[] value,
int length)
throws JMSException
readBytes in interface BytesMessageJMSException
protected ReadStream getReadStream()
throws JMSException
JMSException
public void clearBody()
throws JMSException
clearBody in interface MessageclearBody in class MessageImplJMSException
public void writeBoolean(boolean b)
throws JMSException
writeBoolean in interface BytesMessageJMSException
public void writeByte(byte b)
throws JMSException
writeByte in interface BytesMessageJMSException
public void writeShort(short s)
throws JMSException
writeShort in interface BytesMessageJMSException
public void writeInt(int i)
throws JMSException
writeInt in interface BytesMessageJMSException
public void writeLong(long l)
throws JMSException
writeLong in interface BytesMessageJMSException
public void writeFloat(float f)
throws JMSException
writeFloat in interface BytesMessageJMSException
public void writeDouble(double d)
throws JMSException
writeDouble in interface BytesMessageJMSException
public void writeUTF(java.lang.String s)
throws JMSException
writeUTF in interface BytesMessageJMSException
public void writeChar(char ch)
throws JMSException
writeChar in interface BytesMessageJMSException
public void writeBytes(byte[] buf)
throws JMSException
writeBytes in interface BytesMessageJMSException
public void writeBytes(byte[] buf,
int offset,
int length)
throws JMSException
writeBytes in interface BytesMessageJMSException
public void writeObject(java.lang.Object obj)
throws JMSException
writeObject in interface BytesMessageJMSException
public long getBodyLength()
throws JMSException
getBodyLength in interface BytesMessageJMSException
protected WriteStream getWriteStream()
throws JMSException
JMSExceptionpublic MessageImpl copy()
copy in class MessageImplprotected void copy(BytesMessageImpl newMsg)
public java.io.InputStream bodyToInputStream()
throws java.io.IOException
bodyToInputStream in class MessageImpljava.io.IOException
public void readBody(java.io.InputStream is)
throws java.io.IOException,
JMSException
readBody in class MessageImpljava.io.IOException
JMSExceptionpublic java.lang.String toString()
toString in class MessageImpl
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||