public class Serialization extends Object
| Modifier and Type | Method and Description |
|---|---|
static String |
asJson(Object object) |
static String |
asYaml(Object object) |
static <T> T |
convertValue(Object object,
Class<T> type) |
static com.fasterxml.jackson.databind.ObjectWriter |
jsonWriter() |
static <T> T |
merge(T original,
T overrides) |
static void |
saveJson(File resultFile,
Object value) |
static void |
saveYaml(File resultFile,
Object value) |
static <T> T |
unmarshal(File file) |
static <T> T |
unmarshal(File file,
Class<T> clazz) |
static <T> T |
unmarshal(File file,
com.fasterxml.jackson.core.type.TypeReference<T> type) |
static <T> T |
unmarshal(InputStream is,
Class<T> clazz) |
static <T> T |
unmarshal(InputStream is,
com.fasterxml.jackson.core.type.TypeReference<T> type) |
static <T> T |
unmarshal(String objectAsString) |
static <T> T |
unmarshal(String string,
Class<T> type) |
static <T> T |
unmarshal(String string,
com.fasterxml.jackson.core.type.TypeReference<T> type) |
static <T> T |
unmarshal(URL url) |
static <T> T |
unmarshal(URL url,
Class<T> type) |
static <T> T |
unmarshal(URL url,
com.fasterxml.jackson.core.type.TypeReference<T> type) |
public static <T> T unmarshal(String objectAsString)
public static <T> T unmarshal(URL url) throws IOException
IOExceptionpublic static <T> T unmarshal(File file) throws IOException
IOExceptionpublic static <T> T unmarshal(File file, Class<T> clazz) throws IOException
IOExceptionpublic static <T> T unmarshal(File file, com.fasterxml.jackson.core.type.TypeReference<T> type) throws IOException
IOExceptionpublic static <T> T unmarshal(URL url, Class<T> type) throws IOException
IOExceptionpublic static <T> T unmarshal(URL url, com.fasterxml.jackson.core.type.TypeReference<T> type) throws IOException
IOExceptionpublic static <T> T unmarshal(InputStream is, Class<T> clazz)
public static <T> T unmarshal(InputStream is, com.fasterxml.jackson.core.type.TypeReference<T> type)
public static <T> T unmarshal(String string, com.fasterxml.jackson.core.type.TypeReference<T> type)
public static <T> T merge(T original,
T overrides)
throws IOException
IOExceptionpublic static com.fasterxml.jackson.databind.ObjectWriter jsonWriter()
public static void saveJson(File resultFile, Object value) throws IOException
IOExceptionpublic static void saveYaml(File resultFile, Object value) throws IOException
IOExceptionCopyright © 2024. All rights reserved.