org.apache.jena.riot
Interface WriterGraphRIOT

All Known Implementing Classes:
AdapterRDFWriter, NTriplesWriter, RDFJSONWriter, RDFXMLAbbrevWriter, RDFXMLPlainWriter, TurtleWriter, TurtleWriterBase, TurtleWriterBlocks, TurtleWriterFlat, WriterGraphRIOTBase

public interface WriterGraphRIOT

A RIOT serializer for a language. This covers both graphs and datasets. A WriterRIOT is a one-time use object (they may accumulate state, e.g. pretty writers).

See Also:
WriterGraphRIOTBase

Method Summary
 Lang getLang()
           
 void write(OutputStream out, Graph graph, PrefixMap prefixMap, String baseURI, Context context)
           
 void write(Writer out, Graph graph, PrefixMap prefixMap, String baseURI, Context context)
          Use of Writer is discouraged - let the serializer manage character sets in accordance with the format
 

Method Detail

write

void write(OutputStream out,
           Graph graph,
           PrefixMap prefixMap,
           String baseURI,
           Context context)
Parameters:
out - OutputStream
graph - Graph to be written
prefixMap - PrefixMap - maybe null (default should be to use the prefixmapping from the Graph)
baseURI - base URI - may be null for "none"
context - Context (see specific implementation for details)

write

void write(Writer out,
           Graph graph,
           PrefixMap prefixMap,
           String baseURI,
           Context context)
Use of Writer is discouraged - let the serializer manage character sets in accordance with the format

Parameters:
out - Writer
graph - Graph to be written
prefixMap - PrefixMap - maybe null (default should be to use the prefixmapping from the Graph)
baseURI - base URI - may be null for "none"
context - Context (see specific implementation for details)

getLang

Lang getLang()


Licenced under the Apache License, Version 2.0