com.beem.project.beem.smack.avatar
Class HttpAvatarRetriever

Package class diagram package HttpAvatarRetriever
java.lang.Object
  extended by com.beem.project.beem.smack.avatar.HttpAvatarRetriever
All Implemented Interfaces:
AvatarRetriever

public class HttpAvatarRetriever
extends Object
implements AvatarRetriever

An AvatarRetriever which retrieve the avatar over HTTP.


Constructor Summary
HttpAvatarRetriever(String url)
          Create a HttpAvatarRetriever.
HttpAvatarRetriever(URL url)
          Create a HttpAvatarRetriever.
 
Method Summary
 byte[] getAvatar()
          Retrieve the avatar.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

HttpAvatarRetriever

public HttpAvatarRetriever(URL url)
Create a HttpAvatarRetriever.

Parameters:
url - the url of the avatar to download.

HttpAvatarRetriever

public HttpAvatarRetriever(String url)
Create a HttpAvatarRetriever.

Parameters:
url - the url of the avatar to download.
Method Detail

getAvatar

public byte[] getAvatar()
                 throws IOException
Description copied from interface: AvatarRetriever
Retrieve the avatar.

Specified by:
getAvatar in interface AvatarRetriever
Returns:
the avatar
Throws:
IOException - if an IO error occurs while retrieving the avatar


Copyright © 2009 Beem-project.com. All Rights Reserved.