mirror of
https://github.com/vanitasvitae/Smack.git
synced 2024-12-23 11:07:57 +01:00
SMACK-413 Put removed public method back in and marked as deprecated. We can remove in major release.
git-svn-id: http://svn.igniterealtime.org/svn/repos/smack/branches/smack_3_3_0@13592 b35dd754-fafc-0310-a699-88a17e54d16e
This commit is contained in:
parent
998245be26
commit
58f56ee31b
1 changed files with 13 additions and 3 deletions
|
@ -85,6 +85,7 @@ import org.jivesoftware.smack.util.StringUtils;
|
||||||
* @author Kirill Maximov (kir@maxkir.com)
|
* @author Kirill Maximov (kir@maxkir.com)
|
||||||
*/
|
*/
|
||||||
public class VCard extends IQ {
|
public class VCard extends IQ {
|
||||||
|
private static final String DEFAULT_MIME_TYPE = "image/jpeg";
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Phone types:
|
* Phone types:
|
||||||
|
@ -93,7 +94,6 @@ public class VCard extends IQ {
|
||||||
private Map<String, String> homePhones = new HashMap<String, String>();
|
private Map<String, String> homePhones = new HashMap<String, String>();
|
||||||
private Map<String, String> workPhones = new HashMap<String, String>();
|
private Map<String, String> workPhones = new HashMap<String, String>();
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Address types:
|
* Address types:
|
||||||
* POSTAL?, PARCEL?, (DOM | INTL)?, PREF?, POBOX?, EXTADR?, STREET?, LOCALITY?,
|
* POSTAL?, PARCEL?, (DOM | INTL)?, PREF?, POBOX?, EXTADR?, STREET?, LOCALITY?,
|
||||||
|
@ -357,7 +357,7 @@ public class VCard extends IQ {
|
||||||
* @param bytes the bytes of the avatar, or null to remove the avatar data
|
* @param bytes the bytes of the avatar, or null to remove the avatar data
|
||||||
*/
|
*/
|
||||||
public void setAvatar(byte[] bytes) {
|
public void setAvatar(byte[] bytes) {
|
||||||
setAvatar(bytes, "image/jpeg");
|
setAvatar(bytes, DEFAULT_MIME_TYPE);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -390,6 +390,16 @@ public class VCard extends IQ {
|
||||||
photoMimeType = mimeType;
|
photoMimeType = mimeType;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Set the encoded avatar string. This is used by the provider.
|
||||||
|
*
|
||||||
|
* @param encodedAvatar the encoded avatar string.
|
||||||
|
* @deprecated Use {@link #setAvatar(String, String)} instead.
|
||||||
|
*/
|
||||||
|
public void setEncodedImage(String encodedAvatar) {
|
||||||
|
setAvatar(encodedAvatar, DEFAULT_MIME_TYPE);
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Return the byte representation of the avatar(if one exists), otherwise returns null if
|
* Return the byte representation of the avatar(if one exists), otherwise returns null if
|
||||||
* no avatar could be found.
|
* no avatar could be found.
|
||||||
|
|
Loading…
Reference in a new issue