|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.ObjectSnacCommand
IconCommand
IconRequest
A SNAC command sent to request another user's buddy icon. Normally
responded-to with an IconDataCmd
.
IconDataCmd
0x10
, command 0x04
Field Summary | |
static int |
CODE_DEFAULT
A default value for the "icon request code" sent in an IconRequest . |
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 |
IconRequest(SnacPacket packet)
Generates a new icon request command from the given incoming SNAC packet. |
|
IconRequest(java.lang.String sn,
ExtraInfoBlock iconInfo)
Creates a new outgoing (server-bound) icon request for the icon corresponding to the given icon information block from the given user. |
|
IconRequest(java.lang.String sn,
int code,
ExtraInfoBlock iconInfo)
Creates a new outgoing (server-bound) icon request for the icon corresponding to the given icon information block from the given user. |
Method Summary | |
int |
getCode()
Returns some sort of code included in this request. |
ExtraInfoBlock |
getIconInfo()
Returns the icon information block corresponding to the icon being requested. |
java.lang.String |
getScreenname()
Returns the screenname of the user whose icon is being requested. |
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
IconRequest
.
Constructor Detail |
protected IconRequest(SnacPacket packet)
packet
- an incoming icon request packetpublic IconRequest(java.lang.String sn, ExtraInfoBlock iconInfo)
code
field is set to CODE_DEFAULT
.
sn
- the screenname of the user whose buddy icon is being requestediconInfo
- the icon information block whose corresponding icon is
being requestedpublic IconRequest(java.lang.String sn, int code, ExtraInfoBlock iconInfo)
sn
- the screenname of the user whose buddy icon is being requestedcode
- some sort of code; WinAIM sends CODE_DEFAULT
iconInfo
- the icon information block whose corresponding icon is
being requestedMethod Detail |
public final java.lang.String getScreenname()
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 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 |