类 JSON.ByteArrayAdapter

  • 封闭类:
    JSON

    public static class JSON.ByteArrayAdapter
    extends com.google.gson.TypeAdapter<byte[]>
    Gson TypeAdapter for Byte Array type
    • 构造器详细资料

      • ByteArrayAdapter

        public ByteArrayAdapter()
    • 方法详细资料

      • write

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

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