org.jivesoftware.smack.packet.Message.removeSubject()方法的使用及代码示例

x33g5p2x  于2022-01-25 转载在 其他  
字(2.0k)|赞(0)|评价(0)|浏览(138)

本文整理了Java中org.jivesoftware.smack.packet.Message.removeSubject()方法的一些代码示例,展示了Message.removeSubject()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Message.removeSubject()方法的具体详情如下:
包路径:org.jivesoftware.smack.packet.Message
类名称:Message
方法名:removeSubject

Message.removeSubject介绍

[英]Removes the subject with the given language from the message.
[中]

代码示例

代码示例来源: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: 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-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);
}

相关文章