org.jrdf.writer.rdfxml
Class RdfXmlWriter

java.lang.Object
  extended by org.jrdf.writer.rdfxml.RdfXmlWriter
All Implemented Interfaces:
RdfWriter

public class RdfXmlWriter
extends Object
implements RdfWriter

Writes Graph contents in RDF/XML format.

Author:
TurnerRX

Constructor Summary
RdfXmlWriter(BlankNodeRegistry blankNodeRegistry, RdfNamespaceMap names)
           
 
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.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RdfXmlWriter

public RdfXmlWriter(BlankNodeRegistry blankNodeRegistry,
                    RdfNamespaceMap names)
Method Detail

write

public void write(Graph graph,
                  OutputStream stream)
           throws IOException,
                  WriteException,
                  GraphException
Description copied from interface: RdfWriter
Writes the Graph contents to the OutputStream.

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

write

public void write(Graph graph,
                  Writer writer)
           throws IOException,
                  WriteException,
                  GraphException
Description copied from interface: RdfWriter
Writes the Graph contents to the Writer.

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