Class JsonObjectAdapter

java.lang.Object
com.google.gson.TypeAdapter<com.google.gson.JsonObject>
net.reyadeyat.nlp.json.JsonObjectAdapter

public class JsonObjectAdapter extends com.google.gson.TypeAdapter<com.google.gson.JsonObject>
Since:
2023.01.01
Author:
Mohammad Nabil Mostafa code@reyadeyat.net
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    com.google.gson.JsonObject
    read(com.google.gson.stream.JsonReader json_reader)
     
    void
    write(com.google.gson.stream.JsonWriter json_writer, com.google.gson.JsonObject json_object)
     

    Methods inherited from class com.google.gson.TypeAdapter

    fromJson, fromJson, fromJsonTree, nullSafe, toJson, toJson, toJsonTree

    Methods inherited from class java.lang.Object

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

    • JsonObjectAdapter

      public JsonObjectAdapter()
  • Method Details

    • read

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

      public void write(com.google.gson.stream.JsonWriter json_writer, com.google.gson.JsonObject json_object) throws IOException
      Specified by:
      write in class com.google.gson.TypeAdapter<com.google.gson.JsonObject>
      Throws:
      IOException