Package org.eclipse.rdf4j.rio.binary
Class BinaryRDFWriterFactory
- java.lang.Object
-
- org.eclipse.rdf4j.rio.binary.BinaryRDFWriterFactory
-
- All Implemented Interfaces:
RDFWriterFactory
public class BinaryRDFWriterFactory extends Object implements RDFWriterFactory
AnRDFWriterFactoryfor Binary RDF writers.- Author:
- Arjohn Kampman
-
-
Constructor Summary
Constructors Constructor Description BinaryRDFWriterFactory()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description RDFFormatgetRDFFormat()ReturnsRDFFormat.BINARY.RDFWritergetWriter(OutputStream out)Returns a new instance ofBinaryRDFWriter.RDFWritergetWriter(OutputStream out, String baseURI)Returns an RDFWriter instance that will write to the supplied output stream.RDFWritergetWriter(Writer writer)throws UnsupportedOperationExceptionRDFWritergetWriter(Writer writer, String baseURI)throws UnsupportedOperationException
-
-
-
Method Detail
-
getRDFFormat
public RDFFormat getRDFFormat()
ReturnsRDFFormat.BINARY.- Specified by:
getRDFFormatin interfaceRDFWriterFactory
-
getWriter
public RDFWriter getWriter(OutputStream out)
Returns a new instance ofBinaryRDFWriter.- Specified by:
getWriterin interfaceRDFWriterFactory- Parameters:
out- The OutputStream to write the RDF to.
-
getWriter
public RDFWriter getWriter(OutputStream out, String baseURI)
Description copied from interface:RDFWriterFactoryReturns an RDFWriter instance that will write to the supplied output stream. Using the supplied baseURI to relativize IRIs to relative IRIs.- Specified by:
getWriterin interfaceRDFWriterFactory- Parameters:
out- The OutputStream to write the RDF to.baseURI- The URI associated with the data in the InputStream.
-
getWriter
public RDFWriter getWriter(Writer writer)
throws UnsupportedOperationException- Specified by:
getWriterin interfaceRDFWriterFactory- Parameters:
writer- The Writer to write the RDF to.
-
getWriter
public RDFWriter getWriter(Writer writer, String baseURI)
throws UnsupportedOperationException- Specified by:
getWriterin interfaceRDFWriterFactory- Parameters:
writer- The Writer to write the RDF to.baseURI- The URI associated with the data in the InputStream.
-
-