|
Sun Adapter for TCP/IP HL7 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.stc.connector.message.common.TextMsg
public class TextMsg
This message represents a generic text message implementation.
Field Summary | |
---|---|
static java.lang.String |
version
|
Constructor Summary | |
---|---|
TextMsg(java.lang.String text)
Constructor. |
|
TextMsg(java.lang.String text,
java.lang.String encoding)
Constructor |
Method Summary | |
---|---|
byte[] |
getBytes()
Returns a byte array. |
static java.lang.String |
getDefaultEncoding()
Returns the defaultEncoding. |
java.lang.String |
getEncoding()
Returns the encoding. |
java.lang.String |
getText()
Returns the text string. |
static void |
setDefaultEncoding(java.lang.String defaultEncoding)
Sets the defaultEncoding. |
void |
setEncoding(java.lang.String encoding)
Sets the encoding. |
void |
setText(java.lang.String text)
Sets the text string. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String version
Constructor Detail |
---|
public TextMsg(java.lang.String text, java.lang.String encoding)
text
- The text string to construct the message.encoding
- The encoding code.public TextMsg(java.lang.String text)
text
- The text string to construct the message.Method Detail |
---|
public static java.lang.String getDefaultEncoding()
public static void setDefaultEncoding(java.lang.String defaultEncoding)
defaultEncoding
- The defaultEncoding to setpublic java.lang.String getText()
public void setText(java.lang.String text)
text
- The text string to setpublic java.lang.String getEncoding()
public void setEncoding(java.lang.String encoding)
encoding
- The encoding to setpublic byte[] getBytes() throws java.io.IOException
AbstractMsg
getBytes
in interface AbstractMsg
java.io.IOException
- on errorAbstractMsg.getBytes()
|
Sun Adapter for TCP/IP HL7 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |