public class Serialization extends Object
Constructor and Description |
---|
Serialization() |
Modifier and Type | Method and Description |
---|---|
static <T> String |
asJson(T object) |
static <T> String |
asYaml(T object) |
static com.fasterxml.jackson.databind.ObjectMapper |
jsonMapper() |
static <T> T |
unmarshal(InputStream is) |
static <T> T |
unmarshal(InputStream is,
Class<T> type) |
static <T> T |
unmarshal(InputStream is,
com.fasterxml.jackson.core.type.TypeReference<T> type) |
static <T> T |
unmarshal(String str,
Class<T> type) |
static com.fasterxml.jackson.databind.ObjectMapper |
yamlMapper() |
public static com.fasterxml.jackson.databind.ObjectMapper jsonMapper()
public static com.fasterxml.jackson.databind.ObjectMapper yamlMapper()
public static <T> String asJson(T object) throws KubernetesClientException
KubernetesClientException
public static <T> String asYaml(T object) throws KubernetesClientException
KubernetesClientException
public static <T> T unmarshal(InputStream is) throws KubernetesClientException
KubernetesClientException
public static <T> T unmarshal(String str, Class<T> type) throws KubernetesClientException
KubernetesClientException
public static <T> T unmarshal(InputStream is, Class<T> type) throws KubernetesClientException
KubernetesClientException
public static <T> T unmarshal(InputStream is, com.fasterxml.jackson.core.type.TypeReference<T> type) throws KubernetesClientException
KubernetesClientException
Copyright © 2015–2017 Red Hat. All rights reserved.