Package org.smooks.api.delivery.sax
Annotation Type TextConsumer
-
@Documented @Retention(RUNTIME) @Target(TYPE) @Inherited public @interface TextConsumer
Fragment Text ConsumerSaxNgVisitor
Annotation. Because SAX is a streaming model, you need to tell Smooks to accumulate text events for a specific fragment. For performance reasons, Smooks would never accumulate these events by default, because that could result in a significant memory/performance overhead. This annotation results intext accumulation
being turned on for the fragment targeted by the annotatedSaxNgVisitor
instance. The text event data can then be accessed through the parentSAXElement
instance.- Author:
- tom.fennelly@gmail.com