Package org.eclipse.rdf4j.rio
Class WriterConfig
- java.lang.Object
-
- org.eclipse.rdf4j.rio.RioConfig
-
- org.eclipse.rdf4j.rio.WriterConfig
-
- All Implemented Interfaces:
Serializable
public class WriterConfig extends RioConfig
A container object for easy setting and passing ofRDFWriter
configuration options.- Author:
- Jeen Broekstra, Peter Ansell
- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from class org.eclipse.rdf4j.rio.RioConfig
log, settings, systemPropertyCache
-
-
Constructor Summary
Constructors Constructor Description WriterConfig()
Creates a ParserConfig object starting with default settings.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description <T> WriterConfig
set(RioSetting<T> setting, T value)
Sets aRioSetting
to have a new value.WriterConfig
useDefaults()
Resets all settings back to their default values.
-
-
-
Method Detail
-
useDefaults
public WriterConfig useDefaults()
Description copied from class:RioConfig
Resets all settings back to their default values.- Overrides:
useDefaults
in classRioConfig
- 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 aRioSetting
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 classRioConfig
- 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.
-
-