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 java.lang.Object implements RDFWriterFactory
AnRDFWriterFactory
for TriG parsers.
-
-
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(java.io.OutputStream out)
Returns a new instance ofTriGWriter
.RDFWriter
getWriter(java.io.OutputStream out, java.lang.String baseURI)
Returns a new instance ofTriGWriter
.RDFWriter
getWriter(java.io.Writer writer)
Returns a new instance ofTriGWriter
.RDFWriter
getWriter(java.io.Writer writer, java.lang.String baseURI)
Returns a new instance ofTriGWriter
.
-
-
-
Method Detail
-
getRDFFormat
public RDFFormat getRDFFormat()
ReturnsRDFFormat.TRIG
.- Specified by:
getRDFFormat
in interfaceRDFWriterFactory
-
getWriter
public RDFWriter getWriter(java.io.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(java.io.OutputStream out, java.lang.String baseURI) throws java.net.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:
java.net.URISyntaxException
-
getWriter
public RDFWriter getWriter(java.io.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(java.io.Writer writer, java.lang.String baseURI) throws java.net.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:
java.net.URISyntaxException
-
-