Class SinkWrapper

java.lang.Object
org.apache.maven.doxia.sink.impl.AbstractSink
org.apache.maven.doxia.sink.impl.SinkWrapper
All Implemented Interfaces:
AutoCloseable, Markup, Sink
Direct Known Subclasses:
IndexingSink, RandomAccessSink, UniqueAnchorNamesValidator

public class SinkWrapper extends AbstractSink
By default a SinkWrapper just delegates each method to the wrapped sink's method. For certain sink methods a derived wrapper may modify the sink before/after or instead of calling the delegate's method. Sink wrappers can either be registered manually via Parser.addSinkWrapperFactory(SinkWrapperFactory) or are automatically registered if provided as JSR330 component. In addition Sink wrappers can be used programmatically without an according factory.
Since:
2.0.0