Interface MappedObject.ContentReader<C>

Type Parameters:
C - the content type
Enclosing class:
MappedObject
Functional Interface:
This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

@FunctionalInterface protected static interface MappedObject.ContentReader<C>
Strategy used to read JSON content.
  • Method Summary

    Modifier and Type
    Method
    Description
    com.fasterxml.jackson.databind.JsonNode
    read(com.fasterxml.jackson.databind.ObjectMapper objectMapper, C content)
    Read JSON content as a JsonNode.
  • Method Details

    • read

      com.fasterxml.jackson.databind.JsonNode read(com.fasterxml.jackson.databind.ObjectMapper objectMapper, C content) throws IOException
      Read JSON content as a JsonNode.
      Parameters:
      objectMapper - the source object mapper
      content - the content to read
      Returns:
      a JsonNode
      Throws:
      IOException - on IO error