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

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

public class SinkSplit<T>
extends java.lang.Object
implements Sink<T>

Split a sink stream and duplicate the operations onto two sinks See also: SinkWrapper


Constructor Summary
SinkSplit(Sink<T> sink1, Sink<T> sink2)
           
 
Method Summary
 void close()
           
 void flush()
           
 void send(T item)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SinkSplit

public SinkSplit(Sink<T> sink1,
                 Sink<T> sink2)
Method Detail

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


Copyright ? 2004, 2005, 2006, 2007, 2008, 2009 Hewlett-Packard Development Company, LP Copyright ? 2010 Talis Systems Ltd. Copyright ? 2010, 2011 Epimorphics Ltd.