类 JSONObjectAdapter


  • public class JSONObjectAdapter
    extends com.google.gson.TypeAdapter<JSONObject>
    • 方法概要

      所有方法 实例方法 具体方法 
      修饰符和类型 方法 说明
      JSONObject read​(com.google.gson.stream.JsonReader reader)  
      void write​(com.google.gson.stream.JsonWriter writer, JSONObject object)  
      • 从类继承的方法 com.google.gson.TypeAdapter

        fromJson, fromJson, fromJsonTree, nullSafe, toJson, toJson, toJsonTree
      • 从类继承的方法 java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • 构造器详细资料

      • JSONObjectAdapter

        public JSONObjectAdapter()
    • 方法详细资料

      • write

        public void write​(com.google.gson.stream.JsonWriter writer,
                          JSONObject object)
                   throws java.io.IOException
        指定者:
        write 在类中 com.google.gson.TypeAdapter<JSONObject>
        抛出:
        java.io.IOException
      • read

        public JSONObject read​(com.google.gson.stream.JsonReader reader)
                        throws java.io.IOException
        指定者:
        read 在类中 com.google.gson.TypeAdapter<JSONObject>
        抛出:
        java.io.IOException