org.trippi.io
Class TSVTupleWriter
java.lang.Object
org.trippi.io.RDFWriter
org.trippi.io.TupleWriter
org.trippi.io.TSVTupleWriter
public class TSVTupleWriter
- extends TupleWriter
Writes tuples as TSV's (tab-separated values), a format common in
spreadsheet applications.
No escaping or quoting is used, but tabs and newlines within values
are converted to spaces.
Note that this form does not preserve datatype or language attributes
for RDF literals. UTF-8 encoding is used for extended characters.
Constructor Summary |
TSVTupleWriter(java.io.OutputStream out,
java.util.Map aliases)
|
Method Summary |
java.lang.String |
getValue(org.jrdf.graph.Node node)
|
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 |
TSVTupleWriter
public TSVTupleWriter(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
getValue
public java.lang.String getValue(org.jrdf.graph.Node node)