use of org.apache.jena.atlas.io.IndentedWriter in project jena by apache.
the class TurtleWriterBase method write.
@Override
public void write(OutputStream out, Graph graph, PrefixMap prefixMap, String baseURI, Context context) {
IndentedWriter iOut = new IndentedWriter(out);
output$(iOut, graph, prefixMap, baseURI, context);
}
use of org.apache.jena.atlas.io.IndentedWriter in project jena by apache.
the class TriGWriterBase method write.
@Override
public void write(OutputStream out, DatasetGraph dsg, PrefixMap prefixMap, String baseURI, Context context) {
IndentedWriter iOut = new IndentedWriter(out);
output$(iOut, dsg, prefixMap, baseURI, context);
}
use of org.apache.jena.atlas.io.IndentedWriter in project jena by apache.
the class ThriftRDF method dump.
/**
* Debug help - print details of a Thrift stream.
* Destructive on the InputStream.
* @param out OutputStream
* @param in InputStream
*/
public static void dump(OutputStream out, InputStream in) {
IndentedWriter iOut = new IndentedWriter(out);
StreamRowTRDFPrinter printer = new StreamRowTRDFPrinter(iOut);
TProtocol protocol = TRDF.protocol(in);
apply(protocol, z -> TRDF.visit(z, printer));
iOut.flush();
}
use of org.apache.jena.atlas.io.IndentedWriter in project jena by apache.
the class WriterTriX method write.
// Graph
@Override
public void write(OutputStream out, Graph graph, PrefixMap prefixMap, String baseURI, Context context) {
IndentedWriter iOut = new IndentedWriter(out);
write(iOut, graph, prefixMap, baseURI, null);
}
use of org.apache.jena.atlas.io.IndentedWriter in project jena by apache.
the class WriterTriX method write.
// Dataset
@Override
public void write(OutputStream out, DatasetGraph datasetGraph, PrefixMap prefixMap, String baseURI, Context context) {
IndentedWriter iOut = new IndentedWriter(out);
write(iOut, datasetGraph, prefixMap, baseURI, null);
}
Aggregations