|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.walluck.oscar.handlers.SNACHandler
org.walluck.oscar.handlers.IconHandler
public class IconHandler
Family 0x0010 - Server stored buddy icons.
Used for storing and retrieving your cute little buddy icon from the AIM servers.
SNACHandler| Constructor Summary | |
|---|---|
IconHandler()
Family 0x0010. |
|
| Method Summary | |
|---|---|
void |
handleSNAC(AIMSession sess,
SNACHandler handler,
AIMFrame frame,
SNAC snac,
AIMInputStream buffer)
Handles incoming SNAC's. |
void |
request(AIMSession sess,
String sn,
byte[] iconcsum)
Subtype 0x0004 - Request someone's icon. |
void |
upload(AIMSession sess,
byte[] icon)
Subtype 0x0002 - Upload your icon. |
| Methods inherited from class org.walluck.oscar.handlers.SNACHandler |
|---|
getFamily, getVersion, setFamily, setVersion |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public IconHandler()
| Method Detail |
|---|
public void upload(AIMSession sess,
byte[] icon)
throws IOException
sess - the oscar sessionicon - the raw data of the icon image file
IOException - if an error occurs
public void request(AIMSession sess,
String sn,
byte[] iconcsum)
throws IOException
sess - the oscar sessionsn - the screenname of the person whose icon you are requestingiconcsum - the MD5 checksum of the icon you are requesting
IOException - if an error occurs
public void handleSNAC(AIMSession sess,
SNACHandler handler,
AIMFrame frame,
SNAC snac,
AIMInputStream buffer)
throws IOException
handleSNAC in class SNACHandlersess - the oscar sessionhandler - the handlerframe - the incoming framesnac - the incoming SNACbuffer - the incoming buffer
IOException - if an error occurs
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||