org.jrdf.writer.rdfxml
Class MemRdfXmlWriter
java.lang.Object
org.jrdf.writer.rdfxml.MemRdfXmlWriter
- All Implemented Interfaces:
- RdfWriter
public class MemRdfXmlWriter
- extends Object
- implements RdfWriter
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
MemRdfXmlWriter
public MemRdfXmlWriter()
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 inputstream
- 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 inputwriter
- 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