本文整理了Java中org.jivesoftware.smack.packet.Message.addSubject()
方法的一些代码示例,展示了Message.addSubject()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Message.addSubject()
方法的具体详情如下:
包路径:org.jivesoftware.smack.packet.Message
类名称:Message
方法名:addSubject
[英]Adds a subject with a corresponding language.
[中]使用相应的语言添加主题。
代码示例来源:origin: igniterealtime/Smack
/**
* Sets the subject of the message. The subject is a short description of
* message contents.
*
* @param subject the subject of the message.
*/
public void setSubject(String subject) {
if (subject == null) {
removeSubject(""); // use empty string because #removeSubject(null) is ambiguous
return;
}
addSubject(null, subject);
}
代码示例来源:origin: igniterealtime/Smack
message.addSubject(xmlLangSubject, subject);
代码示例来源:origin: org.igniterealtime.smack/smack-core
/**
* Sets the subject of the message. The subject is a short description of
* message contents.
*
* @param subject the subject of the message.
*/
public void setSubject(String subject) {
if (subject == null) {
removeSubject(""); // use empty string because #removeSubject(null) is ambiguous
return;
}
addSubject(null, subject);
}
代码示例来源:origin: org.littleshoot/smack-xmpp-3-2-2
/**
* Sets the subject of the message. The subject is a short description of
* message contents.
*
* @param subject the subject of the message.
*/
public void setSubject(String subject) {
if (subject == null) {
removeSubject(""); // use empty string because #removeSubject(null) is ambiguous
return;
}
addSubject(null, subject);
}
代码示例来源:origin: org.igniterealtime.smack/smack
/**
* Sets the subject of the message. The subject is a short description of
* message contents.
*
* @param subject the subject of the message.
*/
public void setSubject(String subject) {
if (subject == null) {
removeSubject(""); // use empty string because #removeSubject(null) is ambiguous
return;
}
addSubject(null, subject);
}
代码示例来源:origin: tiandawu/IotXmpp
/**
* Sets the subject of the message. The subject is a short description of
* message contents.
*
* @param subject the subject of the message.
*/
public void setSubject(String subject) {
if (subject == null) {
removeSubject(""); // use empty string because #removeSubject(null) is ambiguous
return;
}
addSubject(null, subject);
}
代码示例来源:origin: org.igniterealtime.smack/smack
message.addSubject(xmlLang, subject);
代码示例来源:origin: tiandawu/IotXmpp
message.addSubject(xmlLang, subject);
代码示例来源:origin: org.littleshoot/smack-xmpp-3-2-2
message.addSubject(xmlLang, subject);
代码示例来源:origin: org.igniterealtime.smack/smack-core
message.addSubject(xmlLangSubject, subject);
内容来源于网络,如有侵权,请联系作者删除!