org.openjena.riot.system
Class SinkExtendTriplesToQuads

java.lang.Object
  extended by org.openjena.riot.system.SinkExtendTriplesToQuads
All Implemented Interfaces:
Closeable, Sink<Triple>

public class SinkExtendTriplesToQuads
extends Object
implements Sink<Triple>

Take a stream of triples and send down a Sink<Quad> The quad will have Quad.tripleInQuad in the G field or a specified node..

See Also:
Quad.tripleInQuad

Constructor Summary
SinkExtendTriplesToQuads(Node gn, Sink<Quad> quadSink)
           
SinkExtendTriplesToQuads(Sink<Quad> quadSink)
           
 
Method Summary
 void close()
           
 void flush()
           
 void send(Triple triple)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SinkExtendTriplesToQuads

public SinkExtendTriplesToQuads(Sink<Quad> quadSink)

SinkExtendTriplesToQuads

public SinkExtendTriplesToQuads(Node gn,
                                Sink<Quad> quadSink)
Method Detail

send

public void send(Triple triple)
Specified by:
send in interface Sink<Triple>

flush

public void flush()
Specified by:
flush in interface Sink<Triple>

close

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


Licenced under the Apache License, Version 2.0