Package org.eclipse.rdf4j.rio.nquads
Class NQuadsWriterFactory
java.lang.Object
org.eclipse.rdf4j.rio.nquads.NQuadsWriterFactory
- All Implemented Interfaces:
RDFWriterFactory
An
RDFWriterFactory for N-Quads writers.- Author:
- Peter Ansell
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturnsRDFFormat.NQUADS.getWriter(OutputStream out) Returns a new instance ofNQuadsWriter.getWriter(OutputStream out, String baseURI) Returns an RDFWriter instance that will write to the supplied output stream.Returns a new instance ofNQuadsWriter.Returns an RDFWriter instance that will write to the supplied writer.
-
Constructor Details
-
NQuadsWriterFactory
public NQuadsWriterFactory()
-
-
Method Details
-
getRDFFormat
ReturnsRDFFormat.NQUADS.- Specified by:
getRDFFormatin interfaceRDFWriterFactory
-
getWriter
Returns a new instance ofNQuadsWriter.- Specified by:
getWriterin interfaceRDFWriterFactory- Parameters:
out- The OutputStream to write the RDF to.
-
getWriter
Description copied from interface:RDFWriterFactoryReturns an RDFWriter instance that will write to the supplied output stream. Using the supplied baseURI to relativize IRIs to relative IRIs.- Specified by:
getWriterin interfaceRDFWriterFactory- Parameters:
out- The OutputStream to write the RDF to.baseURI- The URI associated with the data in the InputStream.
-
getWriter
Returns a new instance ofNQuadsWriter.- Specified by:
getWriterin interfaceRDFWriterFactory- Parameters:
writer- The Writer to write the RDF to.
-
getWriter
Description copied from interface:RDFWriterFactoryReturns an RDFWriter instance that will write to the supplied writer. Using the supplied baseURI to relativize IRIs to relative IRIs. (Optional operation)- Specified by:
getWriterin interfaceRDFWriterFactory- Parameters:
writer- The Writer to write the RDF to.baseURI- The URI associated with the data in the InputStream.
-