Java 类org.jivesoftware.smackx.vcardtemp.provider.VCardProvider 实例源码

项目:X-Messenger    文件:XMPPManager.java   
public VCard getUserVCard(String jid) {
    //ProviderManager.getInstance().addIQProvider("vCard", "vcard-temp", new VCardProvider());

    VCard vCard = new VCard();

    try {
        vCard.load(XMPPManager.getInstance().getConnection(),JidCreate.entityBareFrom(jid/*+DOMAIN*/));
        VCardProvider vCardProvider = new VCardProvider();

    } catch (Exception e) {
        e.printStackTrace();
    }
    return vCard;
}