org.openjena.atlas.lib
Class SinkCounting<T>

java.lang.Object
  extended by org.openjena.atlas.lib.SinkWrapper<T>
      extended by org.openjena.atlas.lib.SinkCounting<T>
All Implemented Interfaces:
Closeable, Sink<T>

public final class SinkCounting<T>
extends SinkWrapper<T>


Constructor Summary
SinkCounting()
           
SinkCounting(Sink<T> output)
           
 
Method Summary
 long getCount()
           
 void send(T thing)
           
 
Methods inherited from class org.openjena.atlas.lib.SinkWrapper
close, flush
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SinkCounting

public SinkCounting(Sink<T> output)

SinkCounting

public SinkCounting()
Method Detail

send

public void send(T thing)
Specified by:
send in interface Sink<T>
Overrides:
send in class SinkWrapper<T>

getCount

public long getCount()


Licenced under the Apache License, Version 2.0