|
||||||||||
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
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,
java.lang.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 java.io.IOException
sess
- the oscar sessionicon
- the raw data of the icon image file
java.io.IOException
- if an error occurspublic void request(AIMSession sess, java.lang.String sn, byte[] iconcsum) throws java.io.IOException
sess
- the oscar sessionsn
- the screenname of the person whose icon you are requestingiconcsum
- the MD5 checksum of the icon you are requesting
java.io.IOException
- if an error occurspublic void handleSNAC(AIMSession sess, SNACHandler handler, AIMFrame frame, SNAC snac, AIMInputStream buffer) throws java.io.IOException
handleSNAC
in class SNACHandler
sess
- the oscar sessionhandler
- the handlerframe
- the incoming framesnac
- the incoming SNACbuffer
- the incoming buffer
java.io.IOException
- if an error occurs
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |