|
||||||||||
| 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.TextMessageImpl
public class TextMessageImpl
A text 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 | |
|---|---|
TextMessageImpl()
|
|
TextMessageImpl(TextMessage msg)
|
|
TextMessageImpl(TextMessageImpl msg)
|
|
| Method Summary | |
|---|---|
java.io.InputStream |
bodyToInputStream()
Serialize the body to an input stream. |
void |
clearBody()
Clears the body. |
MessageImpl |
copy()
|
protected void |
copy(TextMessageImpl newMsg)
|
java.lang.String |
getText()
Returns the message text. |
MessageType |
getType()
Returns the type enumeration. |
void |
readBody(java.io.InputStream is)
Read the body from an input stream. |
void |
setText(java.lang.String text)
Returns the message text. |
void |
writeBody(java.io.OutputStream os)
Serialize the body to an output stream. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public TextMessageImpl()
public TextMessageImpl(TextMessage msg)
throws JMSException
JMSExceptionpublic TextMessageImpl(TextMessageImpl msg)
| Method Detail |
|---|
public MessageType getType()
getType in class MessageImpl
public java.lang.String getText()
throws JMSException
getText in interface TextMessageJMSException
public void setText(java.lang.String text)
throws JMSException
setText in interface TextMessageJMSException
public void clearBody()
throws JMSException
clearBody in interface MessageclearBody in class MessageImplJMSExceptionpublic MessageImpl copy()
copy in class MessageImplprotected void copy(TextMessageImpl newMsg)
public java.io.InputStream bodyToInputStream()
throws java.io.IOException
bodyToInputStream in class MessageImpljava.io.IOException
public void writeBody(java.io.OutputStream os)
throws java.io.IOException
writeBody in class MessageImpljava.io.IOException
public void readBody(java.io.InputStream is)
throws java.io.IOException,
JMSException
readBody in class MessageImpljava.io.IOException
JMSException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||