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 newBlankNodeRegistry, RdfNamespaceMap newNames)
           
 
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 newBlankNodeRegistry,
                    RdfNamespaceMap newNames)
Method Detail

write

public void write(Graph graph,
                  OutputStream stream)
           throws IOException,
                  WriteException,
                  GraphException,
                  javax.xml.stream.XMLStreamException
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.
javax.xml.stream.XMLStreamException

write

public void write(Graph graph,
                  Writer writer)
           throws IOException,
                  WriteException,
                  GraphException,
                  javax.xml.stream.XMLStreamException
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.
javax.xml.stream.XMLStreamException