|
||||||||||
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(java.lang.String text)
|
|
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(java.lang.String text)
public TextMessageImpl(TextMessage msg) throws JMSException
JMSException
public TextMessageImpl(TextMessageImpl msg)
Method Detail |
---|
public MessageType getType()
getType
in class MessageImpl
public java.lang.String getText() throws JMSException
getText
in interface TextMessage
JMSException
public void setText(java.lang.String text) throws JMSException
setText
in interface TextMessage
JMSException
public void clearBody() throws JMSException
clearBody
in interface Message
clearBody
in class MessageImpl
JMSException
public MessageImpl copy()
copy
in class MessageImpl
protected void copy(TextMessageImpl newMsg)
public java.io.InputStream bodyToInputStream() throws java.io.IOException
bodyToInputStream
in class MessageImpl
java.io.IOException
public void writeBody(java.io.OutputStream os) throws java.io.IOException
writeBody
in class MessageImpl
java.io.IOException
public void readBody(java.io.InputStream is) throws java.io.IOException, JMSException
readBody
in class MessageImpl
java.io.IOException
JMSException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |