Ejemplo n.º 1
0
 /** Marks end of node */
 public void endNode() {
   depth--;
   if (tagIsEmpty) {
     String prevTag = (String) elementStack.pop(); // Silently();
     if (!quickNodeValue) {
       writer.write(
           LF
               + WikiTableDriver.DELIM
               + WikiTableDriver.QUOTES
               + WikiTableDriver.END_NODE
               + WikiTableDriver.QUOTES
               + WikiTableDriver.DELIM);
       if (this.useLineSeparateBetweenTags) {
         writer.write(LF + WikiTableDriver.DELIM);
       }
       writer.write(prevTag + WikiTableDriver.DELIM);
     }
     readyForNewLine = false;
   } else {
     String prevTag = (String) elementStack.pop();
     if (!quickNodeValue) {
       writer.write(
           LF
               + WikiTableDriver.DELIM
               + WikiTableDriver.QUOTES
               + WikiTableDriver.END_NODE
               + WikiTableDriver.QUOTES
               + WikiTableDriver.DELIM);
       if (this.useLineSeparateBetweenTags) {
         writer.write(LF + WikiTableDriver.DELIM);
       }
       writer.write(prevTag + WikiTableDriver.DELIM);
     }
   }
   finishTag();
   readyForNewLine = true;
   if (depth == 0) {
     writer.flush();
   }
   quickNodeValue = false;
 }
Ejemplo n.º 2
0
 /** Flushes output */
 public void flush() {
   writer.flush();
 }