YamlUtils
Utilities to convert from and to YAML format.
API
class YamlUtils {
Try<T> tryRead(Class<T> mappedType, String stringUtf8, JsonUtils.JacksonCustomizer... customizers) (1)
Try<T> tryRead(Class<T> mappedType, DataSource source, JsonUtils.JacksonCustomizer... customizers) (2)
Try<T> tryReadCustomized(Class<T> mappedType, String stringUtf8, YamlLoadCustomizer loadCustomizer, JsonUtils.JacksonCustomizer... customizers) (3)
Try<T> tryReadCustomized(Class<T> mappedType, DataSource source, YamlLoadCustomizer loadCustomizer, JsonUtils.JacksonCustomizer... customizers) (4)
void write(Object pojo, DataSink sink, JsonUtils.JacksonCustomizer... customizers) (5)
String toStringUtf8(Object pojo, JsonUtils.JacksonCustomizer... customizers) (6)
void writeCustomized(Object pojo, DataSink sink, YamlDumpCustomizer dumpCustomizer, JsonUtils.JacksonCustomizer... customizers) (7)
String toStringUtf8Customized(Object pojo, YamlDumpCustomizer dumpCustomizer, JsonUtils.JacksonCustomizer... customizers) (8)
DumperOptions allowReadOnlyProperties(DumperOptions opts) (9)
}
1 | tryRead(Class, String, JsonUtils_JacksonCustomizer)
Tries to deserialize YAML content from given UTF8 encoded String into an instance of given mappedType . |
2 | tryRead(Class, DataSource, JsonUtils_JacksonCustomizer)
Tries to deserialize YAML content from given DataSource into an instance of given requiredType . |
3 | tryReadCustomized(Class, String, YamlLoadCustomizer, JsonUtils_JacksonCustomizer)
Tries to deserialize YAML content from given UTF8 encoded String into an instance of given mappedType . |
4 | tryReadCustomized(Class, DataSource, YamlLoadCustomizer, JsonUtils_JacksonCustomizer)
Tries to deserialize YAML content from given DataSource into an instance of given requiredType . |
5 | write(Object, DataSink, JsonUtils_JacksonCustomizer)
Writes given pojo to given DataSink . |
6 | toStringUtf8(Object, JsonUtils_JacksonCustomizer)
Converts given pojo to an UTF8 encoded String . |
7 | writeCustomized(Object, DataSink, YamlDumpCustomizer, JsonUtils_JacksonCustomizer)
Writes given pojo to given DataSink . |
8 | toStringUtf8Customized(Object, YamlDumpCustomizer, JsonUtils_JacksonCustomizer)
Converts given pojo to an UTF8 encoded String . |
9 | allowReadOnlyProperties(DumperOptions)
Include read-only JavaBean properties (the ones without setters) in the YAML document. |
Members
tryRead(Class, String, JsonUtils_JacksonCustomizer)
Tries to deserialize YAML content from given UTF8 encoded String into an instance of given mappedType .
tryRead(Class, DataSource, JsonUtils_JacksonCustomizer)
Tries to deserialize YAML content from given DataSource into an instance of given requiredType .
tryReadCustomized(Class, String, YamlLoadCustomizer, JsonUtils_JacksonCustomizer)
Tries to deserialize YAML content from given UTF8 encoded String into an instance of given mappedType .
tryReadCustomized(Class, DataSource, YamlLoadCustomizer, JsonUtils_JacksonCustomizer)
Tries to deserialize YAML content from given DataSource into an instance of given requiredType .
write(Object, DataSink, JsonUtils_JacksonCustomizer)
Writes given pojo to given DataSink .
writeCustomized(Object, DataSink, YamlDumpCustomizer, JsonUtils_JacksonCustomizer)
Writes given pojo to given DataSink .