Class GsonTypeAdapters.DateLongFormatTypeAdapter

java.lang.Object
com.google.gson.TypeAdapter<Date>
org.codice.gsonsupport.GsonTypeAdapters.DateLongFormatTypeAdapter
Enclosing class:
GsonTypeAdapters

public static class GsonTypeAdapters.DateLongFormatTypeAdapter extends com.google.gson.TypeAdapter<Date>
Adapter to convert read/write Dates as Longs
  • Constructor Details

    • DateLongFormatTypeAdapter

      public DateLongFormatTypeAdapter()
  • Method Details

    • write

      public void write(com.google.gson.stream.JsonWriter out, Date date) throws IOException
      Specified by:
      write in class com.google.gson.TypeAdapter<Date>
      Throws:
      IOException
    • read

      public Date read(com.google.gson.stream.JsonReader in) throws IOException
      Specified by:
      read in class com.google.gson.TypeAdapter<Date>
      Throws:
      IOException