Package org.eclipse.rdf4j.rio.trig
Class TriGWriterFactory
- java.lang.Object
-
- org.eclipse.rdf4j.rio.trig.TriGWriterFactory
-
- All Implemented Interfaces:
RDFWriterFactory
public class TriGWriterFactory extends Object implements RDFWriterFactory
AnRDFWriterFactory
for TriG parsers.- Author:
- Arjohn Kampman
-
-
Constructor Summary
Constructors Constructor Description TriGWriterFactory()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description RDFFormat
getRDFFormat()
ReturnsRDFFormat.TRIG
.RDFWriter
getWriter(OutputStream out)
Returns a new instance ofTriGWriter
.RDFWriter
getWriter(OutputStream out, String baseURI)
Returns a new instance ofTriGWriter
.RDFWriter
getWriter(Writer writer)
Returns a new instance ofTriGWriter
.RDFWriter
getWriter(Writer writer, String baseURI)
Returns a new instance ofTriGWriter
.
-
-
-
Method Detail
-
getRDFFormat
public RDFFormat getRDFFormat()
ReturnsRDFFormat.TRIG
.- Specified by:
getRDFFormat
in interfaceRDFWriterFactory
-
getWriter
public RDFWriter getWriter(OutputStream out)
Returns a new instance ofTriGWriter
.- 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 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
public RDFWriter getWriter(Writer writer)
Returns a new instance ofTriGWriter
.- 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 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
-
-