org.jrdf.writer.rdfxml
Class MemRdfXmlWriter

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

public class MemRdfXmlWriter
extends Object
implements RdfWriter


Constructor Summary
MemRdfXmlWriter()
           
 
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

MemRdfXmlWriter

public MemRdfXmlWriter()
Method Detail

write

public void write(Graph graph,
                  OutputStream stream)
           throws WriteException,
                  GraphException,
                  IOException,
                  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:
WriteException - If the writer encounters an unrecoverable error.
GraphException - If an exception occurrs while reading the graph.
IOException - If output cannot be written.
javax.xml.stream.XMLStreamException

write

public void write(Graph graph,
                  Writer writer)
           throws WriteException,
                  GraphException,
                  IOException,
                  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:
WriteException - If the writer encounters an unrecoverable error.
GraphException - If an exception occurrs while reading the graph.
IOException - If output cannot be written.
javax.xml.stream.XMLStreamException