Class WriterConfig

  • All Implemented Interfaces:
    Serializable

    public class WriterConfig
    extends RioConfig
    A container object for easy setting and passing of RDFWriter configuration options.
    Author:
    Jeen Broekstra, Peter Ansell
    See Also:
    Serialized Form
    • Constructor Detail

      • WriterConfig

        public WriterConfig()
        Creates a ParserConfig object starting with default settings.
    • Method Detail

      • useDefaults

        public WriterConfig useDefaults()
        Description copied from class: RioConfig
        Resets all settings back to their default values.
        Overrides:
        useDefaults in class RioConfig
        Returns:
        Either a copy of this config, if it is immutable, or this object, to allow chaining of method calls.
      • set

        public <T> WriterConfig set​(RioSetting<T> setting,
                                    T value)
        Description copied from class: RioConfig
        Sets a RioSetting to have a new value. If the value is null, the parser setting is removed and the default will be used instead.
        Overrides:
        set in class RioConfig
        Parameters:
        setting - The setting to set a new value for.
        value - The value for the parser setting, or null to reset the parser setting to use the default value.
        Returns:
        Either a copy of this config, if it is immutable, or this object, to allow chaining of method calls.