Class YamlConfigReader
java.lang.Object
io.confluent.security.config.YamlConfigReader
- All Implemented Interfaces:
ResourceLoader
ResourceLoader for reading YAML encoded configurations.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription<T> Tload(InputStream inputStream, Class<T> clazz) Creates a new instance of T based on the contents read from the specifiedInputStream.<T> TCreates a new instance of T based on the contents retrieved from the specifiedURL.
-
Constructor Details
-
YamlConfigReader
public YamlConfigReader()
-
-
Method Details
-
load
Description copied from interface:ResourceLoaderCreates a new instance of T based on the contents retrieved from the specifiedURL.- Specified by:
loadin interfaceResourceLoader- Parameters:
url-URLdefining the returned objectclazz- generic class to defined by the supplied configuration- Returns:
- a new instance of T
-
load
Creates a new instance of T based on the contents read from the specifiedInputStream.- Specified by:
loadin interfaceResourceLoader- Parameters:
inputStream-InputStreamclazz- generic class to defined by the supplied configuration- Returns:
- a new Instance of T
-