Package org.eclipse.rdf4j.rio.rdfxml
Class RDFXMLWriterFactory
- java.lang.Object
-
- org.eclipse.rdf4j.rio.rdfxml.RDFXMLWriterFactory
-
- All Implemented Interfaces:
RDFWriterFactory
public class RDFXMLWriterFactory extends java.lang.Object implements RDFWriterFactory
AnRDFWriterFactory
for RDF/XML writers.
-
-
Constructor Summary
Constructors Constructor Description RDFXMLWriterFactory()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description RDFFormat
getRDFFormat()
ReturnsRDFFormat.RDFXML
.RDFWriter
getWriter(java.io.OutputStream out)
Returns a new instance ofRDFXMLWriter
.RDFWriter
getWriter(java.io.OutputStream out, java.lang.String baseURI)
Returns a new instance ofRDFXMLWriter
.RDFWriter
getWriter(java.io.Writer writer)
Returns a new instance ofRDFXMLWriter
.RDFWriter
getWriter(java.io.Writer writer, java.lang.String baseURI)
Returns a new instance ofRDFXMLWriter
.
-
-
-
Method Detail
-
getRDFFormat
public RDFFormat getRDFFormat()
ReturnsRDFFormat.RDFXML
.- Specified by:
getRDFFormat
in interfaceRDFWriterFactory
-
getWriter
public RDFWriter getWriter(java.io.OutputStream out)
Returns a new instance ofRDFXMLWriter
.- Specified by:
getWriter
in interfaceRDFWriterFactory
- Parameters:
out
- The OutputStream to write the RDF to.
-
getWriter
public RDFWriter getWriter(java.io.OutputStream out, java.lang.String baseURI) throws java.net.URISyntaxException
Returns a new instance ofRDFXMLWriter
.- Specified by:
getWriter
in interfaceRDFWriterFactory
- Parameters:
out
- The OutputStream to write the RDF to.baseURI
- The URI associated with the data in the InputStream.- Throws:
java.net.URISyntaxException
-
getWriter
public RDFWriter getWriter(java.io.Writer writer)
Returns a new instance ofRDFXMLWriter
.- Specified by:
getWriter
in interfaceRDFWriterFactory
- Parameters:
writer
- The Writer to write the RDF to.
-
getWriter
public RDFWriter getWriter(java.io.Writer writer, java.lang.String baseURI) throws java.net.URISyntaxException
Returns a new instance ofRDFXMLWriter
.- Specified by:
getWriter
in interfaceRDFWriterFactory
- Parameters:
writer
- The Writer to write the RDF to.baseURI
- The URI associated with the data in the InputStream.- Throws:
java.net.URISyntaxException
-
-