Class ZendeskDateTypeAdapter



  • public class ZendeskDateTypeAdapter
    extends <any>
    A somewhat UTC-or-GTFO type adapter. When reading from JSON, it will attempt to parse in UTC format. If the JSON is not in the correct format, it will return null. When writing to JSON, it will write to UTC format. This implementation was adapted from Jackson's IOS8601Utils class. Created by Zendesk on 08/05/2017.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method and Description
      java.util.Date read(JsonReader in) 
      void write(JsonWriter out, java.util.Date value) 
      • Methods inherited from class java.lang.Object

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

      • ZendeskDateTypeAdapter

        public ZendeskDateTypeAdapter()
    • Method Detail

      • write

        public void write(JsonWriter out,
                          java.util.Date value)
                   throws java.io.IOException
        Throws:
        java.io.IOException
      • read

        public java.util.Date read(JsonReader in)
                            throws java.io.IOException
        Throws:
        java.io.IOException