public class BinaryRDFWriter extends AbstractRDFWriter implements RDFWriter, ByteSink
namespaceTable, statementConsumer
Constructor and Description |
---|
BinaryRDFWriter(OutputStream out) |
BinaryRDFWriter(OutputStream out,
int bufferSize) |
Modifier and Type | Method and Description |
---|---|
protected void |
consumeStatement(Statement st)
Consume a statement.
|
void |
endRDF()
Signals the end of the RDF data.
|
OutputStream |
getOutputStream()
get the
OutputStream used by this ByteSink . |
RDFFormat |
getRDFFormat()
Gets the RDF format that this RDFWriter uses.
|
void |
handleComment(String comment)
Handles a comment.
|
void |
handleNamespace(String prefix,
String uri)
Handles a namespace declaration/definition.
|
void |
startRDF()
Signals the start of the RDF data.
|
checkWritingStarted, getFileFormat, getSupportedSettings, getWriterConfig, handleStatement, isWritingStarted, set, setWriterConfig
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getSupportedSettings, getWriterConfig, set, setWriterConfig
handleStatement
acceptsFileFormat, getFileFormat
public BinaryRDFWriter(OutputStream out)
public BinaryRDFWriter(OutputStream out, int bufferSize)
public RDFFormat getRDFFormat()
RDFWriter
getRDFFormat
in interface RDFWriter
public OutputStream getOutputStream()
ByteSink
OutputStream
used by this ByteSink
.getOutputStream
in interface ByteSink
OutputStream
public void startRDF() throws RDFHandlerException
RDFHandler
startRDF
in interface RDFHandler
startRDF
in class AbstractRDFWriter
RDFHandlerException
- If the RDF handler has encountered an unrecoverable error.public void endRDF() throws RDFHandlerException
RDFHandler
endRDF
in interface RDFHandler
RDFHandlerException
- If the RDF handler has encountered an unrecoverable error.public void handleNamespace(String prefix, String uri) throws RDFHandlerException
RDFHandler
handleNamespace
in interface RDFHandler
handleNamespace
in class AbstractRDFWriter
prefix
- The prefix for the namespace, or an empty string in case of a default namespace.uri
- The URI that the prefix maps to.RDFHandlerException
- If the RDF handler has encountered an unrecoverable error.public void handleComment(String comment) throws RDFHandlerException
RDFHandler
handleComment
in interface RDFHandler
comment
- The comment.RDFHandlerException
- If the RDF handler has encountered an unrecoverable error.protected void consumeStatement(Statement st)
AbstractRDFWriter
AbstractRDFWriter.handleStatement(Statement)
in order to
benefit from automatic handling of RDF* conversion or encoding.consumeStatement
in class AbstractRDFWriter
st
- the statement to consume.Copyright © 2015-2020 Eclipse Foundation. All Rights Reserved.