Module org.apache.jena.arq
Package org.apache.jena.riot.system
Class StreamRDFWriter.WriterRegistry<T>
java.lang.Object
org.apache.jena.riot.system.StreamRDFWriter.WriterRegistry<T>
- Enclosing class:
- StreamRDFWriter
Writer registry
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
Return true if the format is registereddefaultSerialization
(Lang lang) Return the format registered as the default for the languageReturn the T for a given RDFFormat.void
Register the default serialization for the language (replace any existing registration).void
Register the serialization for datasets and it's associated factory
-
Constructor Details
-
WriterRegistry
public WriterRegistry()
-
-
Method Details
-
register
Register the default serialization for the language (replace any existing registration).- Parameters:
lang
- Languagesformat
- The serialization forma to use when the language is used for writing.
-
register
Register the serialization for datasets and it's associated factory- Parameters:
serialization
- RDFFormat for the output format.streamWriterFactory
- Source of writer engines
-
get
Return the T for a given RDFFormat.- Parameters:
serialization
- RDFFormat for the output format.- Returns:
- T Registered thing or null.
-
contains
Return true if the format is registered- Parameters:
serialization
-- Returns:
- boolean
-
defaultSerialization
Return the format registered as the default for the language -
choose
- Parameters:
lang
-- Returns:
- The RDFFormat for the lang
- Throws:
RiotException
- if there is no registered format
-