예제 #1
0
 public String getSubject(int len) {
   StringBuilder tmp = new StringBuilder();
   for (int i = 0; i < this.lev; i++) {
     tmp.append("&nbsp;");
   }
   return CommonUtil.showHtml(tmp + CommonUtil.cropByte(this.subject, len, "..."));
 }
예제 #2
0
 public String getContentView() {
   if ("1".equals(this.html)) {
     return HttpLinker.getLinkedSource(CommonUtil.rplc(this.content, "<", "&lt;"));
   } else if ("0".equals(this.html)) {
     return HttpLinker.getLinkedSource(CommonUtil.showHtml(this.content));
   }
   return HttpLinker.getLinkedSource(this.content);
 }
예제 #3
0
 public String getWhen(String format) {
   if (this.when == null) return "";
   return CommonUtil.formatDate(this.when, format);
 }
예제 #4
0
 public String getWriter(int len) {
   return CommonUtil.showHtml(CommonUtil.cropByte(getWriter(), len, "."));
 }