org.trippi.io
Class SimpleTupleWriter
java.lang.Object
org.trippi.io.RDFWriter
org.trippi.io.TupleWriter
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 java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SimpleTupleWriter
public SimpleTupleWriter(java.io.OutputStream out,
java.util.Map aliases)
throws TrippiException
- Throws:
TrippiException
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)