Interface ConfigurationStorer
- All Known Implementing Classes:
ConfigurationStorer.FileStorer
,ConfigurationStorer.OutputStreamStorer
,ConfigurationStorer.PathStorer
,ConfigurationStorer.UrlStorer
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
@FunctionalInterface public interface ConfigurationStorer
Storer which exports configuration data to external targets.
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static interface
ConfigurationStorer.Defaults
static class
ConfigurationStorer.FileStorer
static class
ConfigurationStorer.OutputStreamStorer
static class
ConfigurationStorer.PathStorer
static class
ConfigurationStorer.UrlStorer
-
Method Summary
Modifier and Type Method Description static ConfigurationStorer
New(File file)
Pseudo-constructor method to create a newConfigurationStorer
.static ConfigurationStorer
New(File file, Charset charset)
Pseudo-constructor method to create a newConfigurationStorer
.static ConfigurationStorer
New(OutputStream outputStream)
Pseudo-constructor method to create a newConfigurationStorer
.static ConfigurationStorer
New(OutputStream outputStream, Charset charset)
Pseudo-constructor method to create a newConfigurationStorer
.static ConfigurationStorer
New(URL url)
Pseudo-constructor method to create a newConfigurationStorer
.static ConfigurationStorer
New(URL url, Charset charset)
Pseudo-constructor method to create a newConfigurationStorer
.static ConfigurationStorer
New(Path path)
Pseudo-constructor method to create a newConfigurationStorer
.static ConfigurationStorer
New(Path path, Charset charset)
Pseudo-constructor method to create a newConfigurationStorer
.void
storeConfiguration(String configurationData)
Stores the configuration data to an external target.
-
Method Details
-
storeConfiguration
Stores the configuration data to an external target.- Parameters:
configurationData
- the data to export
-
New
Pseudo-constructor method to create a newConfigurationStorer
.- Parameters:
path
- the target path- Returns:
- a new
ConfigurationStorer
- See Also:
New(Path, Charset)
,ConfigurationStorer.Defaults.defaultCharset()
-
New
Pseudo-constructor method to create a newConfigurationStorer
.- Parameters:
path
- the target pathcharset
- the charset to use to convert the configuration data into binary form- Returns:
- a new
ConfigurationStorer
-
New
Pseudo-constructor method to create a newConfigurationStorer
.- Parameters:
file
- the target file- Returns:
- a new
ConfigurationStorer
- See Also:
New(File, Charset)
,ConfigurationStorer.Defaults.defaultCharset()
-
New
Pseudo-constructor method to create a newConfigurationStorer
.- Parameters:
file
- the target filecharset
- the charset to use to convert the configuration data into binary form- Returns:
- a new
ConfigurationStorer
-
New
Pseudo-constructor method to create a newConfigurationStorer
.- Parameters:
url
- the target url- Returns:
- a new
ConfigurationStorer
- See Also:
New(URL, Charset)
,ConfigurationStorer.Defaults.defaultCharset()
-
New
Pseudo-constructor method to create a newConfigurationStorer
.- Parameters:
url
- the target urlcharset
- the charset to use to convert the configuration data into binary form- Returns:
- a new
ConfigurationStorer
-
New
Pseudo-constructor method to create a newConfigurationStorer
.- Parameters:
outputStream
- the target output stream- Returns:
- a new
ConfigurationStorer
- See Also:
New(OutputStream, Charset)
,ConfigurationStorer.Defaults.defaultCharset()
-
New
Pseudo-constructor method to create a newConfigurationStorer
.- Parameters:
outputStream
- the target output streamcharset
- the charset to use to convert the configuration data into binary form- Returns:
- a new
ConfigurationStorer
-