public final class YamlEngine extends Object
| Constructor and Description |
|---|
YamlEngine() |
| Modifier and Type | Method and Description |
|---|---|
static String |
marshal(Object value)
Marshal YAML.
|
static <T extends YamlConfiguration> |
unmarshal(byte[] yamlBytes,
Class<T> classType)
Unmarshal YAML.
|
static <T extends YamlConfiguration> |
unmarshal(File yamlFile,
Class<T> classType)
Unmarshal YAML.
|
static <T> T |
unmarshal(String yamlContent,
Class<T> classType)
Unmarshal YAML.
|
static <T> T |
unmarshal(String yamlContent,
Class<T> classType,
boolean skipMissingProps)
Unmarshal YAML.
|
public static <T extends YamlConfiguration> T unmarshal(File yamlFile, Class<T> classType) throws IOException
T - type of classyamlFile - YAML fileclassType - class typeIOException - IO Exceptionpublic static <T extends YamlConfiguration> T unmarshal(byte[] yamlBytes, Class<T> classType) throws IOException
T - type of classyamlBytes - YAML bytesclassType - class typeIOException - IO Exceptionpublic static <T> T unmarshal(String yamlContent, Class<T> classType)
T - type of classyamlContent - YAML contentclassType - class typepublic static <T> T unmarshal(String yamlContent, Class<T> classType, boolean skipMissingProps)
T - type of classyamlContent - YAML contentclassType - class typeskipMissingProps - true if missing properties should be skipped, false otherwiseCopyright © 2023 The Apache Software Foundation. All rights reserved.