Package org.eclipse.rdf4j.rio.turtlestar
Class TurtleStarWriterFactory
- java.lang.Object
-
- org.eclipse.rdf4j.rio.turtlestar.TurtleStarWriterFactory
-
- All Implemented Interfaces:
RDFWriterFactory
public class TurtleStarWriterFactory extends Object implements RDFWriterFactory
AnRDFWriterFactory
for Turtle-star writers.- Author:
- Pavel Mihaylov
-
-
Constructor Summary
Constructors Constructor Description TurtleStarWriterFactory()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description RDFFormat
getRDFFormat()
ReturnsRDFFormat.TURTLESTAR
.RDFWriter
getWriter(OutputStream out)
Returns a new instance ofTurtleStarWriter
.RDFWriter
getWriter(OutputStream out, String baseURI)
Returns an RDFWriter instance that will write to the supplied output stream.RDFWriter
getWriter(Writer writer)
Returns a new instance ofTurtleStarWriter
.RDFWriter
getWriter(Writer writer, String baseURI)
Returns an RDFWriter instance that will write to the supplied writer.
-
-
-
Method Detail
-
getRDFFormat
public RDFFormat getRDFFormat()
ReturnsRDFFormat.TURTLESTAR
.- Specified by:
getRDFFormat
in interfaceRDFWriterFactory
-
getWriter
public RDFWriter getWriter(OutputStream out)
Returns a new instance ofTurtleStarWriter
.- Specified by:
getWriter
in interfaceRDFWriterFactory
- Parameters:
out
- The OutputStream to write the RDF to.
-
getWriter
public RDFWriter getWriter(OutputStream out, String baseURI) throws 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:
URISyntaxException
-
getWriter
public RDFWriter getWriter(Writer writer)
Returns a new instance ofTurtleStarWriter
.- Specified by:
getWriter
in interfaceRDFWriterFactory
- Parameters:
writer
- The Writer to write the RDF to.
-
getWriter
public RDFWriter getWriter(Writer writer, String baseURI) throws 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:
URISyntaxException
-
-