Package org.apache.juneau.config.format
Interface ConfigFormat
- All Known Implementing Classes:
IniConfigFormat,YamlConfigFormat
public interface ConfigFormat
Format strategy for config map persistence.
-
Method Summary
Modifier and TypeMethodDescriptionfromInternal(ConfigMap map) Writes a map to this format.id()Format identifier.toInternal(String contents) Normalizes source format text into INI-style content consumed byConfigMap.
-
Method Details
-
id
Format identifier.- Returns:
- Format identifier.
-
toInternal
Normalizes source format text into INI-style content consumed byConfigMap.- Parameters:
contents- The source contents.- Returns:
- INI-style contents.
- Throws:
IOException- Thrown by underlying stream.
-
fromInternal
Writes a map to this format.- Parameters:
map- The map to write.- Returns:
- Serialized contents in this format.
- Throws:
IOException- Thrown by underlying stream.
-