Ejemplo n.º 1
0
 public void writeText(String str, boolean withParagraph) {
   if ("".equals(str)) return;
   SbApp.trace("ExportHtml.writeText(" + TextUtil.truncateString(str, 32) + ")");
   try {
     String s = "<p>" + str + "</p>";
     if (!withParagraph) s = str;
     outStream.write(s, 0, s.length());
     outStream.flush();
   } catch (IOException ex) {
     SbApp.error("ExportHtml.writeText(" + str + ")", ex);
   }
 }
Ejemplo n.º 2
0
 public String getTitle(boolean truncate) {
   return title == null ? "" : TextUtil.truncateString(title, 30);
 }