Package org.eclipse.rdf4j.rio.turtle
Class TurtleWriterFactory
- java.lang.Object
-
- org.eclipse.rdf4j.rio.turtle.TurtleWriterFactory
-
- All Implemented Interfaces:
RDFWriterFactory
public class TurtleWriterFactory extends java.lang.Object implements RDFWriterFactory
AnRDFWriterFactory
for Turtle writers.
-
-
Constructor Summary
Constructors Constructor Description TurtleWriterFactory()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description RDFFormat
getRDFFormat()
ReturnsRDFFormat.TURTLE
.RDFWriter
getWriter(java.io.OutputStream out)
Returns a new instance ofTurtleWriter
.RDFWriter
getWriter(java.io.OutputStream out, java.lang.String baseURI)
Returns an RDFWriter instance that will write to the supplied output stream.RDFWriter
getWriter(java.io.Writer writer)
Returns a new instance ofTurtleWriter
.RDFWriter
getWriter(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.TURTLE
.- Specified by:
getRDFFormat
in interfaceRDFWriterFactory
-
getWriter
public RDFWriter getWriter(java.io.OutputStream out)
Returns a new instance ofTurtleWriter
.- 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
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:
java.net.URISyntaxException
-
getWriter
public RDFWriter getWriter(java.io.Writer writer)
Returns a new instance ofTurtleWriter
.- 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
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:
java.net.URISyntaxException
-
-