TurtleWriter
internally.@Deprecated public class ArrangedWriter extends AbstractRDFWriter
namespaceTable, statementConsumer
Constructor and Description |
---|
ArrangedWriter(RDFWriter delegate)
Deprecated.
|
ArrangedWriter(RDFWriter delegate,
int size)
Deprecated.
|
ArrangedWriter(RDFWriter delegate,
int size,
boolean repeatBlankNodes)
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
protected void |
consumeStatement(Statement st)
Deprecated.
Consume a statement.
|
void |
endRDF()
Deprecated.
Signals the end of the RDF data.
|
RDFFormat |
getRDFFormat()
Deprecated.
Gets the RDF format that this RDFWriter uses.
|
Collection<RioSetting<?>> |
getSupportedSettings()
Deprecated.
|
WriterConfig |
getWriterConfig()
Deprecated.
Retrieves the current writer configuration as a single object.
|
void |
handleComment(String comment)
Deprecated.
Handles a comment.
|
void |
handleNamespace(String prefix,
String uri)
Deprecated.
Handles a namespace declaration/definition.
|
<T> RDFWriter |
set(RioSetting<T> setting,
T value)
Deprecated.
Set a setting on the writer, and return this writer object to allow chaining.
|
RDFWriter |
setWriterConfig(WriterConfig config)
Deprecated.
Sets all supplied writer configuration options.
|
void |
startRDF()
Deprecated.
Signals the start of the RDF data.
|
checkWritingStarted, getOutputStream, handleStatement, isWritingStarted
public ArrangedWriter(RDFWriter delegate)
public ArrangedWriter(RDFWriter delegate, int size)
public ArrangedWriter(RDFWriter delegate, int size, boolean repeatBlankNodes)
public RDFFormat getRDFFormat()
RDFWriter
public RDFWriter setWriterConfig(WriterConfig config)
RDFWriter
setWriterConfig
in interface RDFWriter
setWriterConfig
in class AbstractRDFWriter
config
- a writer configuration object.public WriterConfig getWriterConfig()
RDFWriter
getWriterConfig
in interface RDFWriter
getWriterConfig
in class AbstractRDFWriter
public Collection<RioSetting<?>> getSupportedSettings()
getSupportedSettings
in interface RDFWriter
getSupportedSettings
in class AbstractRDFWriter
RioSetting
s that are supported by this RDFWriter.public <T> RDFWriter set(RioSetting<T> setting, T value)
RDFWriter
set
in interface RDFWriter
set
in class AbstractRDFWriter
setting
- The setting to change.value
- The value to change.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
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
comment
- The comment.RDFHandlerException
- If the RDF handler has encountered an unrecoverable error.protected void consumeStatement(Statement st) throws RDFHandlerException
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.RDFHandlerException
Copyright © 2015-2020 Eclipse Foundation. All Rights Reserved.