Class Gson

java.lang.Object
overit.geocall.util.gson.Gson

public class Gson extends Object
Defines the Gson serialization/deserialization incorporating the logic to read and write EuroObjects and DateObjects
  • Field Details

    • _gson

      protected static com.google.gson.Gson _gson
  • Method Details

    • getGson

      public static com.google.gson.Gson getGson()
      Returns the Gson
      Returns:
      The Gson
    • read

      public static Object read(Reader r) throws IOException
      Reads from a reader
      Parameters:
      r - The reader
      Returns:
      The object read
      Throws:
      IOException - if an I/O error occurs
    • read

      public static Object read(com.google.gson.stream.JsonReader jr) throws IOException
      Reads from a JsonReader
      Parameters:
      jr - The JsonReader
      Returns:
      The object read
      Throws:
      IOException - if an I/O error occurs
    • write

      public static void write(Writer w, Object obj, int indent) throws IOException
      Writes
      Parameters:
      w - The Writer
      obj - The object to write
      indent - The indentation
      Throws:
      IOException - if an I/O error occurs