|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.ObjectSnacCommand
AbstractIcbm
AbstractChatMsgIcbm
A base class for chat-message ICBM commands, both incoming and outgoing.
| Field Summary |
| Fields inherited from class AbstractIcbm |
CHANNEL_CHAT, CHANNEL_IM, CHANNEL_RV |
| Fields inherited from class SnacCommand |
SNACFLAG_DEFAULT |
| Constructor Summary | |
protected |
AbstractChatMsgIcbm(int command,
long messageId,
ChatMsg chatMsg)
Creates a new outgoing chat ICBM with the given properties. |
protected |
AbstractChatMsgIcbm(int command,
SnacPacket packet)
Creates a new chat ICBM with the given SNAC command subtype and with properties read from the given incoming packet. |
| Method Summary | |
protected TlvChain |
getChatTlvs()
Returns the extra command-specific TLV's sent in this chat message. |
ChatMsg |
getMessage()
Returns this ICBM's embedded chat message. |
protected void |
writeChannelData(java.io.OutputStream out)
Writes the channel-specific data for this ICBM command to the given output stream. |
protected abstract void |
writeChatTlvs(java.io.OutputStream out)
Writes the extra command-type-specific TLV's to be sent with this ICBM to the given stream. |
| Methods inherited from class AbstractIcbm |
getChannel, getChannelData, getIcbmChannel, getIcbmMessageId, toString, writeData |
| Methods inherited from class SnacCommand |
getCommand, getFamily, getFlag1, getFlag2 |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
protected AbstractChatMsgIcbm(int command,
SnacPacket packet)
command - the SNAC command subtype of this commandpacket - a chat ICBM packet
protected AbstractChatMsgIcbm(int command,
long messageId,
ChatMsg chatMsg)
command - this ICBM's SNAC command subtypemessageId - a (normally unique) ICBM message IDchatMsg - the message to send to the channel| Method Detail |
public final ChatMsg getMessage()
protected final TlvChain getChatTlvs()
null if this message was not read from an incoming
stream.
protected void writeChannelData(java.io.OutputStream out)
throws java.io.IOException
AbstractIcbm
writeChannelData in class AbstractIcbmout - the stream to write to
java.io.IOException - if an I/O error occurs
protected abstract void writeChatTlvs(java.io.OutputStream out)
throws java.io.IOException
out - the stream to which to write
java.io.IOException - if an I/O error occurs
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||