public abstract class RDFWriterBase extends Object implements RDFWriter
RDFWriter
s offering common functionality for RDF
writers.Modifier and Type | Field and Description |
---|---|
protected Map<String,String> |
namespaceTable
Mapping from namespace prefixes to namespace names.
|
Constructor and Description |
---|
RDFWriterBase()
Default constructor.
|
Modifier and Type | Method and Description |
---|---|
Collection<RioSetting<?>> |
getSupportedSettings() |
WriterConfig |
getWriterConfig()
Retrieves the current writer configuration as a single object.
|
void |
handleNamespace(String prefix,
String uri)
Handles a namespace declaration/definition.
|
void |
setWriterConfig(WriterConfig config)
Sets all supplied writer configuration options.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getRDFFormat
endRDF, handleComment, handleStatement, startRDF
public void handleNamespace(String prefix, String uri) throws RDFHandlerException
RDFHandler
handleNamespace
in interface RDFHandler
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 setWriterConfig(WriterConfig config)
RDFWriter
setWriterConfig
in interface RDFWriter
config
- a writer configuration object.public WriterConfig getWriterConfig()
RDFWriter
getWriterConfig
in interface RDFWriter
public Collection<RioSetting<?>> getSupportedSettings()
getSupportedSettings
in interface RDFWriter
RioSetting
s that are supported by this
RDFWriter.Copyright © 2001–2016 Aduna. All rights reserved.