T - the target type to be produced by this Mapperpublic class YAMLToObjectMapper<T> extends Object implements Mapper<T>
Mapper that loads the contents of a valid YAML Source
(e.g.: file, URL, string) into POJO (Plain Old Java Object), using SnakeYAML.| Constructor and Description |
|---|
YAMLToObjectMapper(Class<T> targetType)
Builds a new YAML mapper with the specified target type.
|
| Modifier and Type | Method and Description |
|---|---|
T |
apply(InputStream input) |
ConfigurationHelper<T> |
configurationHelper(T jsonObject) |
public T apply(InputStream input) throws IOException
apply in interface Mapper<T>IOExceptionpublic ConfigurationHelper<T> configurationHelper(T jsonObject)
configurationHelper in interface Mapper<T>Copyright © 2023. All rights reserved.