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 interfaceConfigurationStorer.Defaultsstatic classConfigurationStorer.FileStorerstatic classConfigurationStorer.OutputStreamStorerstatic classConfigurationStorer.PathStorerstatic classConfigurationStorer.UrlStorer -
Method Summary
Modifier and Type Method Description static ConfigurationStorerNew(File file)Pseudo-constructor method to create a newConfigurationStorer.static ConfigurationStorerNew(File file, Charset charset)Pseudo-constructor method to create a newConfigurationStorer.static ConfigurationStorerNew(OutputStream outputStream)Pseudo-constructor method to create a newConfigurationStorer.static ConfigurationStorerNew(OutputStream outputStream, Charset charset)Pseudo-constructor method to create a newConfigurationStorer.static ConfigurationStorerNew(URL url)Pseudo-constructor method to create a newConfigurationStorer.static ConfigurationStorerNew(URL url, Charset charset)Pseudo-constructor method to create a newConfigurationStorer.static ConfigurationStorerNew(Path path)Pseudo-constructor method to create a newConfigurationStorer.static ConfigurationStorerNew(Path path, Charset charset)Pseudo-constructor method to create a newConfigurationStorer.voidstoreConfiguration(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
-