public class NTriplesWriter extends AbstractRDFWriter implements RDFWriter, org.eclipse.rdf4j.common.io.CharSink
| Modifier and Type | Field and Description |
|---|---|
protected Writer |
writer |
namespaceTable, statementConsumer| Constructor and Description |
|---|
NTriplesWriter(OutputStream out)
Creates a new NTriplesWriter that will write to the supplied OutputStream.
|
NTriplesWriter(Writer writer)
Creates a new NTriplesWriter that will write to the supplied Writer.
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
consumeStatement(org.eclipse.rdf4j.model.Statement st) |
void |
endRDF() |
RDFFormat |
getRDFFormat() |
Collection<RioSetting<?>> |
getSupportedSettings() |
Writer |
getWriter() |
void |
handleComment(String comment) |
void |
handleNamespace(String prefix,
String name) |
void |
startRDF() |
protected void |
writeValue(org.eclipse.rdf4j.model.Value value)
Writes the N-Triples representation of the given
Value. |
checkWritingStarted, getFileFormat, getWriterConfig, handleStatement, isWritingStarted, set, setWriterConfigclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetWriterConfig, set, setWriterConfighandleStatementacceptsFileFormat, getFileFormatprotected final Writer writer
public NTriplesWriter(OutputStream out)
out - The OutputStream to write the N-Triples document to.public NTriplesWriter(Writer writer)
writer - The Writer to write the N-Triples document to.public Writer getWriter()
getWriter in interface org.eclipse.rdf4j.common.io.CharSinkpublic RDFFormat getRDFFormat()
getRDFFormat in interface RDFWriterpublic void startRDF()
throws RDFHandlerException
startRDF in interface RDFHandlerstartRDF in class AbstractRDFWriterRDFHandlerExceptionpublic void endRDF()
throws RDFHandlerException
endRDF in interface RDFHandlerRDFHandlerExceptionpublic void handleNamespace(String prefix, String name)
handleNamespace in interface RDFHandlerhandleNamespace in class AbstractRDFWriterprotected void consumeStatement(org.eclipse.rdf4j.model.Statement st)
consumeStatement in class AbstractRDFWriterpublic void handleComment(String comment) throws RDFHandlerException
handleComment in interface RDFHandlerRDFHandlerExceptionpublic final Collection<RioSetting<?>> getSupportedSettings()
getSupportedSettings in interface RDFWritergetSupportedSettings in class AbstractRDFWriterprotected void writeValue(org.eclipse.rdf4j.model.Value value) throws IOException
Value.value - The value to write.IOExceptionCopyright © 2015-2021 Eclipse Foundation. All Rights Reserved.