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