Package org.eclipse.rdf4j.rio.trig
Class TriGWriterFactory
java.lang.Object
org.eclipse.rdf4j.rio.trig.TriGWriterFactory
- All Implemented Interfaces:
RDFWriterFactory
An
RDFWriterFactory
for TriG parsers.- Author:
- Arjohn Kampman
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionReturnsRDFFormat.TRIG
.getWriter
(OutputStream out) Returns a new instance ofTriGWriter
.getWriter
(OutputStream out, String baseURI) Returns a new instance ofTriGWriter
.Returns a new instance ofTriGWriter
.Returns a new instance ofTriGWriter
.
-
Constructor Details
-
TriGWriterFactory
public TriGWriterFactory()
-
-
Method Details
-
getRDFFormat
ReturnsRDFFormat.TRIG
.- Specified by:
getRDFFormat
in interfaceRDFWriterFactory
-
getWriter
Returns a new instance ofTriGWriter
.- Specified by:
getWriter
in interfaceRDFWriterFactory
- Parameters:
out
- The OutputStream to write the RDF to.
-
getWriter
Returns a new instance ofTriGWriter
.- 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 ofTriGWriter
.- Specified by:
getWriter
in interfaceRDFWriterFactory
- Parameters:
writer
- The Writer to write the RDF to.
-
getWriter
Returns a new instance ofTriGWriter
.- 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
-