Class SimpleObjectMapper


  • public class SimpleObjectMapper
    extends java.lang.Object
    the main task of SimpleObjectMapper is to get rid of the checked exceptions
    • Constructor Summary

      Constructors 
      Constructor Description
      SimpleObjectMapper​(com.fasterxml.jackson.databind.ObjectMapper objectMapper)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      <T> T copy​(T value)  
      com.fasterxml.jackson.databind.JsonNode readTree​(java.lang.String content)  
      com.fasterxml.jackson.databind.JsonNode readTree​(java.nio.file.Path path)  
      <T> T readValue​(java.io.File file, java.lang.Class<T> valueType)  
      <T> T readValue​(java.io.InputStream inputStream, java.lang.Class<T> valueType)  
      <T> T readValue​(java.lang.String content, java.lang.Class<T> valueType)  
      <T> T treeToValue​(com.fasterxml.jackson.databind.JsonNode jsonNode, java.lang.Class<T> rootClass)  
      java.lang.String writeTree​(com.fasterxml.jackson.databind.JsonNode node)  
      void writeValue​(java.io.File file, java.lang.Object s)  
      void writeValue​(java.lang.Object object, java.io.OutputStream out)  
      java.lang.String writeValueAsString​(java.lang.Object object)  
      com.fasterxml.jackson.databind.JsonNode writeValueAsTree​(java.lang.Object object)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • SimpleObjectMapper

        public SimpleObjectMapper​(com.fasterxml.jackson.databind.ObjectMapper objectMapper)
    • Method Detail

      • copy

        public <T> T copy​(T value)
      • readValue

        public <T> T readValue​(java.lang.String content,
                               java.lang.Class<T> valueType)
      • readValue

        public <T> T readValue​(java.io.File file,
                               java.lang.Class<T> valueType)
      • readValue

        public <T> T readValue​(java.io.InputStream inputStream,
                               java.lang.Class<T> valueType)
      • writeValue

        public void writeValue​(java.lang.Object object,
                               java.io.OutputStream out)
      • writeValue

        public void writeValue​(java.io.File file,
                               java.lang.Object s)
      • writeValueAsString

        public java.lang.String writeValueAsString​(java.lang.Object object)
      • readTree

        public com.fasterxml.jackson.databind.JsonNode readTree​(java.lang.String content)
      • readTree

        public com.fasterxml.jackson.databind.JsonNode readTree​(java.nio.file.Path path)
      • writeTree

        public java.lang.String writeTree​(com.fasterxml.jackson.databind.JsonNode node)
      • writeValueAsTree

        public com.fasterxml.jackson.databind.JsonNode writeValueAsTree​(java.lang.Object object)
      • treeToValue

        public <T> T treeToValue​(com.fasterxml.jackson.databind.JsonNode jsonNode,
                                 java.lang.Class<T> rootClass)