Esempio n. 1
0
 /** @see LogReadable#dumpLog */
 public void dumpLog(StringBuffer sb, boolean verbose) {
   sb.append(beginTag());
   super.dumpLog(sb, verbose);
   if (data != null) {
     sb.append("<data>");
     sb.append(TreeUtils.dumpByteArray(data));
     sb.append("</data>");
   }
   dumpLogAdditional(sb, verbose);
   sb.append(endTag());
 }
Esempio n. 2
0
 public String dumpString(int nSpaces, boolean dumpTags) {
   StringBuffer sb = new StringBuffer();
   sb.append(super.dumpString(nSpaces, dumpTags));
   sb.append('\n');
   sb.append(TreeUtils.indent(nSpaces));
   sb.append("<deleted val=\"").append(Boolean.toString(deleted));
   sb.append("\">");
   sb.append('\n');
   sb.append(databaseImpl.dumpString(nSpaces));
   return sb.toString();
 }
Esempio n. 3
0
 public String dumpString(int nSpaces, boolean dumpTags) {
   StringBuffer self = new StringBuffer();
   if (dumpTags) {
     self.append(TreeUtils.indent(nSpaces));
     self.append(beginTag());
     self.append('\n');
   }
   self.append(super.dumpString(nSpaces + 2, true));
   self.append('\n');
   if (data != null) {
     self.append(TreeUtils.indent(nSpaces + 2));
     self.append("<data>");
     self.append(TreeUtils.dumpByteArray(data));
     self.append("</data>");
     self.append('\n');
   }
   if (dumpTags) {
     self.append(TreeUtils.indent(nSpaces));
     self.append(endTag());
   }
   return self.toString();
 }