|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.ObjectSnacCommand
SsiCommand
ItemsCmd
A base class for the three item-based commands in this package. These
commands are CreateItemsCmd
, ModifyItemsCmd
, DeleteItemsCmd
.
CreateItemsCmd
,
ModifyItemsCmd
,
DeleteItemsCmd
Field Summary |
Fields inherited from class SsiCommand |
CMD_ACTIVATE, CMD_CREATE_ITEMS, CMD_DATA_CHECK, CMD_DATA_REQ, CMD_DELETE_ITEMS, CMD_MOD_ACK, CMD_MODIFY_ITEMS, CMD_POST_MOD, CMD_PRE_MOD, CMD_RIGHTS, CMD_RIGHTS_REQ, CMD_SSI_DATA, CMD_UNCHANGED, FAMILY_INFO, FAMILY_SSI |
Fields inherited from class SnacCommand |
SNACFLAG_DEFAULT |
Constructor Summary | |
protected |
ItemsCmd(int command,
SnacPacket packet)
Generates a new item-based command from the given incoming SNAC packet. |
protected |
ItemsCmd(int command,
SsiItem[] items)
Creates a new outgoing item-based command with the given list of items. |
protected |
ItemsCmd(int command,
SsiItemObj[] itemObjs)
Creates a new item-based command with a list of SsiItem s
generated from the given list
of item objects. |
Method Summary | |
SsiItem[] |
getItems()
Returns the list of server-stored "items" contained in this command. |
java.lang.String |
toString()
|
void |
writeData(java.io.OutputStream out)
Writes this command's SNAC data block to the given stream. |
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 ItemsCmd(int command, SnacPacket packet)
command
- the SNAC command subtype for this commandpacket
- an incoming item-based command packetprotected ItemsCmd(int command, SsiItemObj[] itemObjs)
SsiItem
s
generated from the given list
of item objects.
command
- the SNAC command subtype of this commanditemObjs
- a list of SSI item objects to use in generating
SsiItem
sprotected ItemsCmd(int command, SsiItem[] items)
command
- the SNAC command subtype for this commanditems
- the list of items to send in this commnadMethod Detail |
public final SsiItem[] getItems()
public void writeData(java.io.OutputStream out) throws java.io.IOException
SnacCommand
writeData
in class SnacCommand
out
- the stream to which to write the SNAC data
java.io.IOException
- if an I/O error occurspublic java.lang.String toString()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |