Class Utils


  • public class Utils
    extends Object
    • Field Detail

      • jsonWriter

        public static final com.fasterxml.jackson.databind.ObjectWriter jsonWriter
      • jsonReader

        public static final com.fasterxml.jackson.databind.ObjectReader jsonReader
      • msgpWriter

        public static final com.fasterxml.jackson.databind.ObjectWriter msgpWriter
      • msgpReader

        public static final com.fasterxml.jackson.databind.ObjectReader msgpReader
    • Constructor Detail

      • Utils

        public Utils()
    • Method Detail

      • parseDate

        public static Date parseDate​(String dateString)
                              throws ParseException
        Parse the date from String. The time-zone should be Z
        Parameters:
        dateString - YYYY-MM-DDTHH:MM:SSZ e.g. 2011-12-03T10:15:30Z
        Returns:
        Date object
        Throws:
        ParseException
      • getDateString

        public static String getDateString​(Date date)
        Get the date formatted as: 2011-12-03T10:15:30Z
        Parameters:
        date - object