org.trippi.io
Class SimpleTupleWriter

java.lang.Object
  extended by org.trippi.io.RDFWriter
      extended by org.trippi.io.TupleWriter
          extended by org.trippi.io.SimpleTupleWriter

public class SimpleTupleWriter
extends TupleWriter

A simple, easy-to-read format for tuples.


Constructor Summary
SimpleTupleWriter(java.io.OutputStream out, java.util.Map aliases)
           
 
Method Summary
 java.lang.String getString(org.jrdf.graph.Node node)
           
static java.lang.String indent(int num)
           
 int write(TupleIterator iter)
          Write the tuples 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

SimpleTupleWriter

public SimpleTupleWriter(java.io.OutputStream out,
                         java.util.Map aliases)
                  throws TrippiException
Throws:
TrippiException
Method Detail

write

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

Specified by:
write in class TupleWriter
Throws:
TrippiException

getString

public java.lang.String getString(org.jrdf.graph.Node node)

indent

public static java.lang.String indent(int num)