public static class StreamRDFWriter.WriterRegistry<T> extends Object
| Constructor and Description |
|---|
StreamRDFWriter.WriterRegistry() |
| Modifier and Type | Method and Description |
|---|---|
RDFFormat |
choose(Lang lang) |
boolean |
contains(RDFFormat serialization)
Return true if the format is registered
|
RDFFormat |
defaultSerialization(Lang lang)
Return the format registered as the default for the language
|
T |
get(RDFFormat serialization)
Return the T for a given RDFFormat.
|
void |
register(Lang lang,
RDFFormat format)
Register the default serialization for the language (replace any existing registration).
|
void |
register(RDFFormat serialization,
T streamWriterFactory)
Register the serialization for datasets and it's associated factory
|
public void register(Lang lang, RDFFormat format)
lang - Languagesformat - The serialization forma to use when the language is used for writing.public void register(RDFFormat serialization, T streamWriterFactory)
serialization - RDFFormat for the output format.streamWriterFactory - Source of writer enginespublic T get(RDFFormat serialization)
serialization - RDFFormat for the output format.public boolean contains(RDFFormat serialization)
serialization - public RDFFormat defaultSerialization(Lang lang)
public RDFFormat choose(Lang lang)
lang - RiotException - if there is no registered formatLicenced under the Apache License, Version 2.0