Package org.eclipse.rdf4j.rio.turtle
Class TurtleWriterFactory
java.lang.Object
org.eclipse.rdf4j.rio.turtle.TurtleWriterFactory
- All Implemented Interfaces:
RDFWriterFactory
An
RDFWriterFactory
for Turtle writers.- Author:
- Arjohn Kampman
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionReturnsRDFFormat.TURTLE
.getWriter
(OutputStream out) Returns a new instance ofTurtleWriter
.getWriter
(OutputStream out, String baseURI) Returns an RDFWriter instance that will write to the supplied output stream.Returns a new instance ofTurtleWriter
.Returns an RDFWriter instance that will write to the supplied writer.
-
Constructor Details
-
TurtleWriterFactory
public TurtleWriterFactory()
-
-
Method Details
-
getRDFFormat
ReturnsRDFFormat.TURTLE
.- Specified by:
getRDFFormat
in interfaceRDFWriterFactory
-
getWriter
Returns a new instance ofTurtleWriter
.- Specified by:
getWriter
in interfaceRDFWriterFactory
- Parameters:
out
- The OutputStream to write the RDF to.
-
getWriter
Description copied from interface:RDFWriterFactory
Returns an RDFWriter instance that will write to the supplied output stream. Using the supplied baseURI to relativize IRIs to relative IRIs.- 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:
URISyntaxException
-
getWriter
Returns a new instance ofTurtleWriter
.- Specified by:
getWriter
in interfaceRDFWriterFactory
- Parameters:
writer
- The Writer to write the RDF to.
-
getWriter
Description copied from interface:RDFWriterFactory
Returns an RDFWriter instance that will write to the supplied writer. Using the supplied baseURI to relativize IRIs to relative IRIs. (Optional operation)- 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:
URISyntaxException
-