44 lines
1.3 KiB
Java
44 lines
1.3 KiB
Java
package o;
|
|
|
|
import com.google.gson.Gson;
|
|
import com.google.gson.TypeAdapter;
|
|
import com.google.gson.stream.JsonReader;
|
|
import com.google.gson.stream.JsonToken;
|
|
import com.google.gson.stream.JsonWriter;
|
|
import java.io.IOException;
|
|
|
|
/* renamed from: o.gsz, reason: case insensitive filesystem */
|
|
/* loaded from: classes.dex */
|
|
public final class C15530gsz extends TypeAdapter implements HJa {
|
|
private PYE b;
|
|
private Gson c;
|
|
private InterfaceC15734iCu d;
|
|
|
|
public C15530gsz(Gson gson, InterfaceC15734iCu interfaceC15734iCu, PYE pye) {
|
|
this.c = gson;
|
|
this.d = interfaceC15734iCu;
|
|
this.b = pye;
|
|
}
|
|
|
|
@Override // com.google.gson.TypeAdapter
|
|
public final void write(JsonWriter jsonWriter, Object obj) throws IOException {
|
|
if (obj == null) {
|
|
jsonWriter.nullValue();
|
|
} else {
|
|
((gsI) obj).c(this.c, jsonWriter, this.b);
|
|
}
|
|
}
|
|
|
|
@Override // com.google.gson.TypeAdapter
|
|
/* renamed from: read */
|
|
public final Object read2(JsonReader jsonReader) throws IOException {
|
|
if (jsonReader.peek() == JsonToken.NULL) {
|
|
jsonReader.skipValue();
|
|
return null;
|
|
}
|
|
gsI gsi = new gsI();
|
|
gsi.c(this.c, jsonReader, this.d);
|
|
return gsi;
|
|
}
|
|
}
|