Package org.eclipse.rdf4j.rio.ntriples
Class NTriplesWriterFactory
- java.lang.Object
-
- org.eclipse.rdf4j.rio.ntriples.NTriplesWriterFactory
-
- All Implemented Interfaces:
RDFWriterFactory
public class NTriplesWriterFactory extends Object implements RDFWriterFactory
AnRDFWriterFactoryfor N-Triples writers.- Author:
- Arjohn Kampman
-
-
Constructor Summary
Constructors Constructor Description NTriplesWriterFactory()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description RDFFormatgetRDFFormat()ReturnsRDFFormat.NTRIPLES.RDFWritergetWriter(OutputStream out)Returns a new instance ofNTriplesWriter.RDFWritergetWriter(OutputStream out, String baseURI)RDFWritergetWriter(Writer writer)Returns a new instance ofNTriplesWriter.RDFWritergetWriter(Writer writer, String baseURI)
-
-
-
Method Detail
-
getRDFFormat
public RDFFormat getRDFFormat()
ReturnsRDFFormat.NTRIPLES.- Specified by:
getRDFFormatin interfaceRDFWriterFactory
-
getWriter
public RDFWriter getWriter(OutputStream out)
Returns a new instance ofNTriplesWriter.- Specified by:
getWriterin interfaceRDFWriterFactory
-
getWriter
public RDFWriter getWriter(OutputStream out, String baseURI)
- Specified by:
getWriterin interfaceRDFWriterFactory
-
getWriter
public RDFWriter getWriter(Writer writer)
Returns a new instance ofNTriplesWriter.- Specified by:
getWriterin interfaceRDFWriterFactory
-
getWriter
public RDFWriter getWriter(Writer writer, String baseURI)
- Specified by:
getWriterin interfaceRDFWriterFactory
-
-