思特奇智慧酒店云平台 v0.0.5版本的 MD5 值为:dedb172bb322639d79d7e0e26262fb5c
以下内容为反编译后的 Nick.java 源代码,内容仅作参考
package org.jivesoftware.smackx.nick.packet;
import java.io.IOException;
import org.jivesoftware.smack.packet.ExtensionElement;
import org.jivesoftware.smack.provider.ExtensionElementProvider;
import org.xmlpull.v1.XmlPullParser;
import org.xmlpull.v1.XmlPullParserException;
public class Nick implements ExtensionElement {
public static final String ELEMENT_NAME = "nick";
public static final String NAMESPACE = "http://jabber.org/protocol/nick";
public String name;
public static class Provider extends ExtensionElementProvider<Nick> {
@Override
public Nick parse(XmlPullParser xmlPullParser, int i) throws XmlPullParserException, IOException {
return new Nick(xmlPullParser.nextText());
}
}
public Nick(String str) {
this.name = null;
this.name = str;
}
@Override
public String getElementName() {
return ELEMENT_NAME;
}
public String getName() {
return this.name;
}
@Override
public String getNamespace() {
return NAMESPACE;
}
public void setName(String str) {
this.name = str;
}
@Override
public String toXML(String str) {
return '<' + ELEMENT_NAME + " xmlns=\"" + NAMESPACE + "\">" + getName() + "</" + ELEMENT_NAME + '>';
}
}