org.apache.jena.riot
Class RDFWriterRegistry

java.lang.Object
  extended by org.apache.jena.riot.RDFWriterRegistry

public class RDFWriterRegistry
extends Object


Constructor Summary
RDFWriterRegistry()
           
 
Method Summary
static boolean contains(Lang lang)
          Does the language have a registered output format?
static boolean contains(RDFFormat format)
          Is the RDFFormat registered for use?
static RDFFormat defaultSerialization(Lang lang)
          Return the format registered as the default for the language
static WriterDatasetRIOTFactory getWriterDatasetFactory(Lang lang)
          Get the dataset writer factory asscoiated with the language
static WriterDatasetRIOTFactory getWriterDatasetFactory(RDFFormat serialization)
          Get the dataset writer factory asscoiated with the output format
static WriterGraphRIOTFactory getWriterGraphFactory(Lang lang)
          Get the graph writer factory asscoiated with the language
static WriterGraphRIOTFactory getWriterGraphFactory(RDFFormat serialization)
          Get the graph writer factory asscoiated with the output format
static void init()
           
static void register(Lang lang, RDFFormat format)
          Register the default serialization for the language (replace any existing registration).
static void register(RDFFormat serialization, WriterDatasetRIOTFactory datasetWriterFactory)
          Register the serialization for datasets and it's associated factory
static void register(RDFFormat serialization, WriterGraphRIOTFactory graphWriterFactory)
          Register the serialization for graphs and it's associated factory
static Collection<RDFFormat> registeredDatasetFormats()
          All registered dataset formats
static Collection<RDFFormat> registeredGraphFormats()
          All registered graph formats
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RDFWriterRegistry

public RDFWriterRegistry()
Method Detail

init

public static void init()

register

public static void register(RDFFormat serialization,
                            WriterGraphRIOTFactory graphWriterFactory)
Register the serialization for graphs and it's associated factory

Parameters:
serialization - RDFFormat for the output format.
graphWriterFactory - Source of writer engines

register

public static void register(RDFFormat serialization,
                            WriterDatasetRIOTFactory datasetWriterFactory)
Register the serialization for datasets and it's associated factory

Parameters:
serialization - RDFFormat for the output format.
datasetWriterFactory - Source of writer engines

register

public static void register(Lang lang,
                            RDFFormat format)
Register the default serialization for the language (replace any existing registration).

Parameters:
lang - Languages
format - The serialization forma to use when the language is used for writing.

defaultSerialization

public static RDFFormat defaultSerialization(Lang lang)
Return the format registered as the default for the language


contains

public static boolean contains(Lang lang)
Does the language have a registered output format?


contains

public static boolean contains(RDFFormat format)
Is the RDFFormat registered for use?


registeredGraphFormats

public static Collection<RDFFormat> registeredGraphFormats()
All registered graph formats


registeredDatasetFormats

public static Collection<RDFFormat> registeredDatasetFormats()
All registered dataset formats


getWriterGraphFactory

public static WriterGraphRIOTFactory getWriterGraphFactory(Lang lang)
Get the graph writer factory asscoiated with the language


getWriterGraphFactory

public static WriterGraphRIOTFactory getWriterGraphFactory(RDFFormat serialization)
Get the graph writer factory asscoiated with the output format


getWriterDatasetFactory

public static WriterDatasetRIOTFactory getWriterDatasetFactory(Lang lang)
Get the dataset writer factory asscoiated with the language


getWriterDatasetFactory

public static WriterDatasetRIOTFactory getWriterDatasetFactory(RDFFormat serialization)
Get the dataset writer factory asscoiated with the output format



Licenced under the Apache License, Version 2.0