Class JsonUtil


  • public class JsonUtil
    extends java.lang.Object
    Author:
    Daniel Meyer
    • Constructor Summary

      Constructors 
      Constructor Description
      JsonUtil()  
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static org.codehaus.jackson.map.ObjectMapper getMapper()  
      static <T> T readObjectFromFile​(java.lang.String filename, java.lang.Class<T> type)  
      static void writeObjectToFile​(java.lang.String filename, java.lang.Object object)  
      • Methods inherited from class java.lang.Object

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

      • JsonUtil

        public JsonUtil()
    • Method Detail

      • writeObjectToFile

        public static void writeObjectToFile​(java.lang.String filename,
                                             java.lang.Object object)
      • readObjectFromFile

        public static <T> T readObjectFromFile​(java.lang.String filename,
                                               java.lang.Class<T> type)
      • getMapper

        public static org.codehaus.jackson.map.ObjectMapper getMapper()