public class AvatarCacheUtils
extends java.lang.Object
Constructor and Description |
---|
AvatarCacheUtils() |
Modifier and Type | Method and Description |
---|---|
static void |
cacheAvatar(Contact protoContact,
byte[] avatarBytes)
Stores avatar bytes in the given Contact.
|
static void |
cacheAvatar(ProtocolProviderService protocolProvider,
byte[] avatarBytes)
Stores avatar bytes for the account corresponding to the given
protocolProvider.
|
static byte[] |
getCachedAvatar(Contact protocolContact)
Returns the bytes of the avatar image stored for the account
corresponding to the given protocol provider.
|
static byte[] |
getCachedAvatar(ProtocolProviderService protocolProvider)
Returns the bytes of the avatar image stored for the account
corresponding to the given protocol provider.
|
static java.lang.String |
getCachedAvatarPath(Contact protocolContact)
Returns the bytes of the avatar image stored for the account
corresponding to the given protocol provider.
|
static java.lang.String |
getCachedAvatarPath(ProtocolProviderService protocolProvider)
Returns the bytes of the avatar image stored for the account
corresponding to the given protocol provider.
|
static java.lang.String |
getCachedAvatarPath(ProtocolProviderService protocolProvider,
java.lang.String contactAddress)
Returns the bytes of the avatar image stored for the account
corresponding to the given protocol provider.
|
public static byte[] getCachedAvatar(ProtocolProviderService protocolProvider)
protocolProvider
- the ProtocolProviderService, which
account avatar image we're looking forpublic static byte[] getCachedAvatar(Contact protocolContact)
protocolProvider
- the ProtocolProviderService, which
account avatar image we're looking forpublic static java.lang.String getCachedAvatarPath(ProtocolProviderService protocolProvider)
protocolProvider
- the ProtocolProviderService, which
account avatar image we're looking forpublic static java.lang.String getCachedAvatarPath(Contact protocolContact)
protocolProvider
- the ProtocolProviderService, which
account avatar image we're looking forpublic static java.lang.String getCachedAvatarPath(ProtocolProviderService protocolProvider, java.lang.String contactAddress)
protocolProvider
- the ProtocolProviderService, which
account avatar image we're looking forpublic static void cacheAvatar(Contact protoContact, byte[] avatarBytes)
protoContact
- The contact in which we store the avatar.avatarBytes
- The avatar image bytes.public static void cacheAvatar(ProtocolProviderService protocolProvider, byte[] avatarBytes)
protocolProvider
- the protocol provider corresponding to the
account, which avatar we're storingavatarBytes
- the avatar image bytes
Jitsi, the OpenSource Java VoIP and Instant Messaging client.
Distributable under Apache license.