org.jrdf.writer.rdfxml
Class RdfXmlWriter
java.lang.Object
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
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
RdfXmlWriter
public RdfXmlWriter(BlankNodeRegistry newBlankNodeRegistry,
RdfNamespaceMap newNames)
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 inputstream - 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 inputwriter - 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