Fuse 6 is no longer supported
As of February 2025, Red Hat Fuse 6 is no longer supported. If you are using Fuse 6, please upgrade to Red Hat build of Apache Camel.Dieser Inhalt ist in der von Ihnen ausgewählten Sprache nicht verfügbar.
12.38. The SAXElement.setWriter
The SAXElement.setWriter lets you control the serialization of sub-fragments you need to reset the
Writer
instance so it diverts serialization of the sub-fragments.
Sometimes you know that the target fragment you are serializing/transforming will never have sub-fragments. In this situation, it is inefficient implement the
SAXVisitBefore.visitBefore
method just to make a call to the SAXElement.getWriter
method to acquire ownership of the Writer
. For this reason, we have the @StreamResultWriter
annotation. Used in combination with the @TextConsumer
annotation, it is only necessary to implement the SAXVisitAfter.visitAfter
method.