Class SinkToCollection<T>

java.lang.Object
org.apache.jena.atlas.lib.SinkToCollection<T>
All Implemented Interfaces:
Closeable, Sink<T>

public class SinkToCollection<T> extends Object implements Sink<T>
Send items to a collection
  • Constructor Details

    • SinkToCollection

      public SinkToCollection(Collection<T> c)
  • Method Details

    • send

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

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

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