Annotation Type TextConsumer


  • @Documented
    @Retention(RUNTIME)
    @Target(TYPE)
    @Inherited
    public @interface TextConsumer
    Fragment Text Consumer SaxNgVisitor 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 in text accumulation being turned on for the fragment targeted by the annotated SaxNgVisitor instance. The text event data can then be accessed through the parent SAXElement instance.

    Author:
    tom.fennelly@gmail.com