Package org.eclipse.rdf4j.rio.n3
Class N3WriterFactory
- java.lang.Object
-
- org.eclipse.rdf4j.rio.n3.N3WriterFactory
-
- All Implemented Interfaces:
RDFWriterFactory
public class N3WriterFactory extends java.lang.Object implements RDFWriterFactory
AnRDFWriterFactoryfor N3 writers.
-
-
Constructor Summary
Constructors Constructor Description N3WriterFactory()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description RDFFormatgetRDFFormat()ReturnsRDFFormat.N3.RDFWritergetWriter(java.io.OutputStream out)Returns a new instance ofN3Writer.RDFWritergetWriter(java.io.OutputStream out, java.lang.String baseURI)Returns an RDFWriter instance that will write to the supplied output stream.RDFWritergetWriter(java.io.Writer writer)Returns a new instance ofN3Writer.RDFWritergetWriter(java.io.Writer writer, java.lang.String baseURI)Returns an RDFWriter instance that will write to the supplied writer.
-
-
-
Method Detail
-
getRDFFormat
public RDFFormat getRDFFormat()
ReturnsRDFFormat.N3.- Specified by:
getRDFFormatin interfaceRDFWriterFactory
-
getWriter
public RDFWriter getWriter(java.io.OutputStream out)
Returns a new instance ofN3Writer.- Specified by:
getWriterin 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
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.- Throws:
java.net.URISyntaxException
-
getWriter
public RDFWriter getWriter(java.io.Writer writer)
Returns a new instance ofN3Writer.- Specified by:
getWriterin 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
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.- Throws:
java.net.URISyntaxException
-
-