コード例 #1
0
 protected void writeEnd(SAXElement element) throws IOException {
   if (!isStartWritten(element)) {
     // It's an empty element...
     SAXElementWriterUtil.writeEmptyElement(
         element, element.getWriter(writerOwner), rewriteEntities);
   } else {
     SAXElementWriterUtil.writeEndElement(element, element.getWriter(writerOwner));
   }
 }
コード例 #2
0
 public void onChildText(SAXElement element, SAXText text, ExecutionContext executionContext)
     throws SmooksException, IOException {
   writeStartElement(element);
   if (element.isWriterOwner(writerOwner)) {
     text.toWriter(element.getWriter(writerOwner), rewriteEntities);
   }
 }
コード例 #3
0
 protected void writeStart(SAXElement element) throws IOException {
   SAXElementWriterUtil.writeStartElement(
       element, element.getWriter(writerOwner), rewriteEntities);
 }
コード例 #4
0
 public void visitBefore(SAXElement element, ExecutionContext executionContext)
     throws SmooksException, IOException {
   // Do nothing here apart from acquiring ownership of the element writer.
   // See is there any child text/elements first...
   element.getWriter(writerOwner);
 }