Package org.eclipse.rdf4j.rio.binary
Class BinaryRDFWriter
- java.lang.Object
-
- org.eclipse.rdf4j.rio.helpers.AbstractRDFWriter
-
- org.eclipse.rdf4j.rio.binary.BinaryRDFWriter
-
- All Implemented Interfaces:
org.eclipse.rdf4j.common.io.ByteSink,org.eclipse.rdf4j.common.io.Sink,RDFHandler,RDFWriter
public class BinaryRDFWriter extends AbstractRDFWriter implements RDFWriter, org.eclipse.rdf4j.common.io.ByteSink
ARDFWriterfor the binary RDF format.- Author:
- Arjohn Kampman, Frens Jan Rumph
-
-
Field Summary
-
Fields inherited from class org.eclipse.rdf4j.rio.helpers.AbstractRDFWriter
namespaceTable, statementConsumer
-
-
Constructor Summary
Constructors Constructor Description BinaryRDFWriter(OutputStream out)BinaryRDFWriter(OutputStream out, int bufferSize)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidconsumeStatement(org.eclipse.rdf4j.model.Statement st)voidendRDF()OutputStreamgetOutputStream()RDFFormatgetRDFFormat()Collection<RioSetting<?>>getSupportedSettings()voidhandleComment(String comment)voidhandleNamespace(String prefix, String uri)voidstartRDF()-
Methods inherited from class org.eclipse.rdf4j.rio.helpers.AbstractRDFWriter
checkWritingStarted, getFileFormat, getWriterConfig, handleStatement, isWritingStarted, set, setWriterConfig
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.eclipse.rdf4j.rio.RDFHandler
handleStatement
-
Methods inherited from interface org.eclipse.rdf4j.rio.RDFWriter
getWriterConfig, set, setWriterConfig
-
-
-
-
Constructor Detail
-
BinaryRDFWriter
public BinaryRDFWriter(OutputStream out)
-
BinaryRDFWriter
public BinaryRDFWriter(OutputStream out, int bufferSize)
-
-
Method Detail
-
getRDFFormat
public RDFFormat getRDFFormat()
- Specified by:
getRDFFormatin interfaceRDFWriter
-
getSupportedSettings
public Collection<RioSetting<?>> getSupportedSettings()
- Specified by:
getSupportedSettingsin interfaceRDFWriter- Overrides:
getSupportedSettingsin classAbstractRDFWriter
-
getOutputStream
public OutputStream getOutputStream()
- Specified by:
getOutputStreamin interfaceorg.eclipse.rdf4j.common.io.ByteSink
-
startRDF
public void startRDF() throws RDFHandlerException- Specified by:
startRDFin interfaceRDFHandler- Overrides:
startRDFin classAbstractRDFWriter- Throws:
RDFHandlerException
-
endRDF
public void endRDF() throws RDFHandlerException- Specified by:
endRDFin interfaceRDFHandler- Throws:
RDFHandlerException
-
handleNamespace
public void handleNamespace(String prefix, String uri) throws RDFHandlerException
- Specified by:
handleNamespacein interfaceRDFHandler- Overrides:
handleNamespacein classAbstractRDFWriter- Throws:
RDFHandlerException
-
handleComment
public void handleComment(String comment) throws RDFHandlerException
- Specified by:
handleCommentin interfaceRDFHandler- Throws:
RDFHandlerException
-
consumeStatement
protected void consumeStatement(org.eclipse.rdf4j.model.Statement st)
- Overrides:
consumeStatementin classAbstractRDFWriter
-
-