T - the target type to be produced by this Mapper (the target class may
contain Jackson annotations for due mapping -- e.g.:
@JsonProperty, @JsonIgnore)public class JacksonYAMLToObjectMapper<T> extends JacksonJsonToObjectMapper<T> 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 Jackson's
YAMLMapper.
Additional details may be found at Jackson's official documentation.
| Constructor and Description |
|---|
JacksonYAMLToObjectMapper(Class<T> targetType)
Builds a new YAML mapper with the specified target type.
|
| Modifier and Type | Method and Description |
|---|---|
T |
apply(InputStream inputStream) |
configurationHelperequals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitconfigurationHelperpublic T apply(InputStream inputStream) throws IOException
apply in interface Mapper<T>apply in class JacksonJsonToObjectMapper<T>IOExceptionCopyright © 2021. All rights reserved.