org.trippi.io
Class RIOTripleWriter

java.lang.Object
  extended by org.trippi.io.RDFWriter
      extended by org.trippi.io.TripleWriter
          extended by org.trippi.io.RIOTripleWriter

public class RIOTripleWriter
extends TripleWriter

Adapter for using Sesame's RIO RdfDocumentWriters for triple serialization.


Constructor Summary
RIOTripleWriter(org.openrdf.rio.RdfDocumentWriter writer, java.util.Map aliases)
           
 
Method Summary
 int write(TripleIterator iter)
          Write the triples from the iterator, close the iterator, and return the number written.
 
Methods inherited from class org.trippi.io.RDFWriter
enc
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RIOTripleWriter

public RIOTripleWriter(org.openrdf.rio.RdfDocumentWriter writer,
                       java.util.Map aliases)
                throws TrippiException
Throws:
TrippiException
Method Detail

write

public int write(TripleIterator iter)
          throws TrippiException
Description copied from class: TripleWriter
Write the triples from the iterator, close the iterator, and return the number written. Do not close the outputstream.

Specified by:
write in class TripleWriter
Throws:
TrippiException