Package org.smooks.api.delivery.sax
Annotation Type TextConsumer
-
@Documented @Retention(RUNTIME) @Target(TYPE) @Inherited public @interface TextConsumer
Fragment Text ConsumerSaxNgVisitorAnnotation. 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 accumulationbeing turned on for the fragment targeted by the annotatedSaxNgVisitorinstance. The text event data can then be accessed through the parentSAXElementinstance.- Author:
- tom.fennelly@gmail.com