程序包 com.easemob.im

类 JSON.DateTypeAdapter

java.lang.Object
com.google.gson.TypeAdapter<Date>
com.easemob.im.JSON.DateTypeAdapter
封闭类:
JSON

public static class JSON.DateTypeAdapter extends com.google.gson.TypeAdapter<Date>
Gson TypeAdapter for java.util.Date type If the dateFormat is null, ISO8601Utils will be used.
  • 构造器详细资料

    • DateTypeAdapter

      public DateTypeAdapter()
    • DateTypeAdapter

      public DateTypeAdapter(DateFormat dateFormat)
  • 方法详细资料

    • setFormat

      public void setFormat(DateFormat dateFormat)
    • write

      public void write(com.google.gson.stream.JsonWriter out, Date date) throws IOException
      指定者:
      write 在类中 com.google.gson.TypeAdapter<Date>
      抛出:
      IOException
    • read

      public Date read(com.google.gson.stream.JsonReader in) throws IOException
      指定者:
      read 在类中 com.google.gson.TypeAdapter<Date>
      抛出:
      IOException