ConfigParser

interface ConfigParser

Interface for parsing and writing configuration data.

Implementations of this interface are responsible for reading configuration files (YAML, JSON, TOML, etc.) into Java objects and writing them back to files.

Properties

Link copied to clipboard

Set of file extensions this parser supports (e.g., "yml", "yaml").

Functions

Link copied to clipboard
abstract fun parse(input: InputStream): Map<String, Any>
Link copied to clipboard
abstract fun <T : Any> write(output: OutputStream, config: T)

Writes the given config object to the output stream.