コード例 #1
0
 /**
  * Returns string contains given components as plain text. (without style)
  *
  * @param components components to convert to plain text.
  * @return string contains given components as plain text. (without style)
  */
 public static String toPlainText(final BaseComponent... components) {
   final StringBuilder builder = new StringBuilder();
   for (final BaseComponent msg : components) {
     builder.append(msg.toPlainText());
   }
   return builder.toString();
 }
コード例 #2
0
 void toPlainText(final StringBuilder builder) {
   if (this.extra != null) {
     for (final BaseComponent e : this.extra) {
       e.toPlainText(builder);
     }
   }
 }