📄 vcardupdateextension.java.svn-base
字号:
/**
* $Revision: $
* $Date: $
*
* Copyright (C) 2006 Jive Software. All rights reserved.
*
* This software is published under the terms of the GNU Lesser Public License (LGPL),
* a copy of which is included in this distribution.
*/
package org.jivesoftware.sparkimpl.profile.ext;
import org.jivesoftware.smack.packet.PacketExtension;
public class VCardUpdateExtension implements PacketExtension {
private String photoHash;
public void setPhotoHash(String hash) {
photoHash = hash;
}
public String getElementName() {
return "x";
}
public String getNamespace() {
return "vcard-temp:x:update";
}
public String toXML() {
StringBuffer buf = new StringBuffer();
buf.append("<").append(getElementName()).append(" xmlns=\"").append(getNamespace()).append("\">");
buf.append("<photo>");
buf.append(photoHash);
buf.append("</photo>");
buf.append("</").append(getElementName()).append(">");
return buf.toString();
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -