org.jrdf.writer
Interface RdfWriter

All Known Implementing Classes:
RdfXmlWriter

public interface RdfWriter

General interface for RDF Writer.

Author:
TurnerRX

Method Summary
 void write(Graph graph, OutputStream stream)
          Writes the Graph contents to the OutputStream.
 void write(Graph graph, Writer writer)
          Writes the Graph contents to the Writer.
 

Method Detail

write

void write(Graph graph,
           OutputStream stream)
           throws WriteException,
                  GraphException,
                  IOException
Writes the Graph contents to the OutputStream.

Parameters:
graph - Graph input
stream - OutputStream output. Caller is responsible for closing stream.
Throws:
WriteException - If the writer encounters an unrecoverable error.
GraphException - If an exception occurrs while reading the graph.
IOException - If output cannot be written.

write

void write(Graph graph,
           Writer writer)
           throws WriteException,
                  GraphException,
                  IOException
Writes the Graph contents to the Writer.

Parameters:
graph - Graph input
writer - Writer output. Caller is responsible for closing writers.
Throws:
WriteException - If the writer encounters an unrecoverable error.
GraphException - If an exception occurrs while reading the graph.
IOException - If output cannot be written.