Class SinkWrapper<T>

java.lang.Object
org.apache.jena.atlas.lib.SinkWrapper<T>
All Implemented Interfaces:
Closeable, Sink<T>
Direct Known Subclasses:
SinkCounting

public class SinkWrapper<T> extends Object implements Sink<T>
Wrap one sink in another - to pass on behaviour, the derived Sink must call super.operation See also: SinkSplit
  • Constructor Details

    • SinkWrapper

      public SinkWrapper(Sink<T> sink)
  • Method Details

    • flush

      public void flush()
      Specified by:
      flush in interface Sink<T>
    • send

      public void send(T item)
      Specified by:
      send in interface Sink<T>
    • close

      public void close()
      Specified by:
      close in interface Closeable