|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.ObjectSnacCommand
SsiCommand
SsiDataCmd
A SNAC command containing the user's server-stored information. Normally
sent in respose to either of SsiDataCheck
and SsiDataRequest
.
Note that this command is sent multiple times, spreading out the
user's SSI items over multiple commands. To check for this, check to see
whether getLastModDate()
is 0
: if it is, there are more
SsiDataCmd
s to come.
SsiDataCheck
,
SsiDataRequest
0x13
, command 0x06
Field Summary | |
static int |
VERSION_DEFAULT
A default SSI data version; the version number used by WinAIM. |
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 | |
|
SsiDataCmd(int version,
SsiItem[] items,
long lastmod)
Creates a new outgoing SSI data command with the given properties. |
protected |
SsiDataCmd(SnacPacket packet)
Generates a new SSI data command from the given incoming SNAC packet. |
|
SsiDataCmd(SsiItem[] items,
long lastmod)
Creates a new outgoing SSI data command with the given properties and an SSI version of VERSION_DEFAULT . |
Method Summary | |
SsiItem[] |
getItems()
Returns the user's SSI items, as sent in this command. |
long |
getLastModDate()
Returns the last modification date of the user's SSI data, or 0 if more SSI data packets are to follow this one. |
int |
getSsiVersion()
Returns the SSI version being used. |
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 |
Field Detail |
public static final int VERSION_DEFAULT
Constructor Detail |
protected SsiDataCmd(SnacPacket packet)
packet
- an incoming SSI data packetpublic SsiDataCmd(SsiItem[] items, long lastmod)
VERSION_DEFAULT
.
items
- a list of the user's SSI itemslastmod
- the last modification date of the user's SSI data, in
seconds since the unix epochpublic SsiDataCmd(int version, SsiItem[] items, long lastmod)
version
- the SSI version being used, normally VERSION_DEFAULT
items
- a list of the user's SSI itemslastmod
- the last modification date of the user's SSI data, in
seconds since the unix epoch, or 0
to indicate that
this is not the last of a series of SSI data packetsMethod Detail |
public final int getSsiVersion()
VERSION_DEFAULT
.
public final SsiItem[] getItems()
getLastModDate()
will return 0
.
public final long getLastModDate()
0
if more SSI data packets are to follow this one.
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 |