|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.ObjectSnacCommand
IconCommand
UploadIconAck
A SNAC command sent to acknowledge that a buddy icon has successfully been
uploaded. Normally sent in response to a UploadIconCmd.
UploadIconCmd0x10, command 0x03| Field Summary | |
static int |
CODE_DEFAULT
A default value for the acknowledgement code sent in this command. |
| Fields inherited from class IconCommand |
CMD_ICON_DATA, CMD_ICON_REQ, CMD_UPLOAD_ACK, CMD_UPLOAD_ICON, FAMILY_ICON, FAMILY_INFO |
| Fields inherited from class SnacCommand |
SNACFLAG_DEFAULT |
| Constructor Summary | |
|
UploadIconAck(ExtraInfoBlock iconInfo)
Creates a new outgoing icon upload acknowledgement command with the given icon information block and a code of CODE_DEFAULT. |
|
UploadIconAck(int code,
ExtraInfoBlock iconInfo)
Creates a new outgoing icon upload acknowledgement command with the given icon information block and the given code. |
protected |
UploadIconAck(SnacPacket packet)
Generates an icon upload acknowledgement command from the given incoming SNAC packet. |
| Method Summary | |
int |
getCode()
Returns the acknowledgement code sent in this command. |
ExtraInfoBlock |
getIconInfo()
Returns the icon information block corresponding to the uploaded icon. |
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 CODE_DEFAULT
| Constructor Detail |
protected UploadIconAck(SnacPacket packet)
packet - an incoming icon upload acknowledgement packetpublic UploadIconAck(ExtraInfoBlock iconInfo)
code of CODE_DEFAULT. Using this constructor is equivalent to using new
UploadIconAck(UploadIconAck.CODE_DEFAULT, iconInfo).
iconInfo - an icon information block corresponding to the uploaded
icon
public UploadIconAck(int code,
ExtraInfoBlock iconInfo)
code - some sort of code, normally CODE_DEFAULTiconInfo - an icon information block corresponding to the uploaded
icon| Method Detail |
public final int getCode()
CODE_DEFAULT.
public final ExtraInfoBlock getIconInfo()
public void writeData(java.io.OutputStream out)
throws java.io.IOException
SnacCommand
writeData in class SnacCommandout - 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 | |||||||||