|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object soc.message.SOCMessage soc.message.SOCTextMsg
public class SOCTextMsg
This message contains a text message
Field Summary | |
---|---|
private java.lang.String |
channel
Name of channel |
private java.lang.String |
nickname
Nickname of sender |
private static java.lang.String |
sep2
our token seperator |
private static long |
serialVersionUID
|
private java.lang.String |
text
Text message |
Constructor Summary | |
---|---|
SOCTextMsg(java.lang.String ch,
java.lang.String nn,
java.lang.String tm)
Create a TextMsg message. |
Method Summary | |
---|---|
java.lang.String |
getChannel()
|
java.lang.String |
getNickname()
|
java.lang.String |
getText()
|
static SOCTextMsg |
parseDataStr(java.lang.String s)
Parse the command String into a TextMsg message |
java.lang.String |
toCmd()
TEXTMSG sep channel sep2 nickname sep2 text |
static java.lang.String |
toCmd(java.lang.String ch,
java.lang.String nn,
java.lang.String tm)
TEXTMSG sep channel sep2 nickname sep2 text |
java.lang.String |
toString()
Simple human-readable representation, used for debug purposes. |
Methods inherited from class soc.message.SOCMessage |
---|
arrayIntoStringBuf, enumIntoStringBuf, getClassNameShort, getMaximumVersion, getMinimumVersion, getType, isSingleLineAndSafe, isSingleLineAndSafe, toMsg |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
private static final long serialVersionUID
private static java.lang.String sep2
private java.lang.String channel
private java.lang.String nickname
private java.lang.String text
Constructor Detail |
---|
public SOCTextMsg(java.lang.String ch, java.lang.String nn, java.lang.String tm)
ch
- name of chat channelnn
- nickname of sendertm
- text messageMethod Detail |
---|
public java.lang.String getChannel()
public java.lang.String getNickname()
public java.lang.String getText()
public java.lang.String toCmd()
toCmd
in class SOCMessage
public static java.lang.String toCmd(java.lang.String ch, java.lang.String nn, java.lang.String tm)
ch
- the channel namenn
- the nicknametm
- the text message
public static SOCTextMsg parseDataStr(java.lang.String s)
s
- the String to parse
public java.lang.String toString()
SOCMessage
toString
in class SOCMessage
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |