|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.ObjectSnacCommand
IconCommand
IconDataCmd
A SNAC command containing a buddy's icon. Normally sent in response to an
IconRequest
.
IconRequest
0x10
, command 0x05
Field Summary | |
static int |
CODE_DEFAULT
The normal value for the extra icon data code of the extra icon information block 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 | |
protected |
IconDataCmd(SnacPacket packet)
Generates a new icon data command from the given incoming SNAC packet. |
|
IconDataCmd(java.lang.String sn,
ExtraInfoBlock iconInfo,
ByteBlock iconData)
Creates a new client-bound outgoing buddy icon data command with the given properties. |
Method Summary | |
ByteBlock |
getIconData()
The raw buddy icon data. |
ExtraInfoBlock |
getIconInfo()
A block of icon information for this icon. |
java.lang.String |
getScreenname()
Returns the screenname of the user whose buddy icon this command contains. |
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 IconDataCmd(SnacPacket packet)
packet
- an incoming icon data packetpublic IconDataCmd(java.lang.String sn, ExtraInfoBlock iconInfo, ByteBlock iconData)
sn
- the screenname of the user whose buddy icon is contained in
this commandiconInfo
- a block of information about the associated iconiconData
- the raw icon dataMethod Detail |
public final java.lang.String getScreenname()
public final ExtraInfoBlock getIconInfo()
public final ByteBlock getIconData()
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 |