java.lang.Object
com.couchbase.analytics.client.java.internal.utils.json.Mapper

public class Mapper extends Object
  • Constructor Details

    • Mapper

      public Mapper()
  • Method Details

    • readTree

      public static com.fasterxml.jackson.databind.JsonNode readTree(byte[] json)
    • convertValue

      public static <T> T convertValue(Object fromValue, com.fasterxml.jackson.core.type.TypeReference<T> toValueType)
    • convertValue

      public static <T> T convertValue(Object fromValue, Class<T> toValueType)
    • readValue

      public static <T> T readValue(String json, Class<T> valueType)
    • readValue

      public static <T> T readValue(byte[] json, Class<T> valueType)
    • writeValueAsString

      public static String writeValueAsString(@Nullable Object value)
    • writeValueAsBytes

      public static byte[] writeValueAsBytes(@Nullable Object value)
    • writeValue

      public static void writeValue(OutputStream outputStream, @Nullable Object value)