JsonArrayRequest.smali
.class public Lcom/android/volley/toolbox/JsonArrayRequest;
.super Lcom/android/volley/toolbox/JsonRequest;
.source "JsonArrayRequest.java"
# annotations
.annotation system Ldalvik/annotation/Signature;
value = {
"Lcom/android/volley/toolbox/JsonRequest",
"<",
"Lorg/json/JSONArray;",
">;"
}
.end annotation
# direct methods
.method public constructor <init>(ILjava/lang/String;Lorg/json/JSONArray;Lcom/android/volley/Response$Listener;Lcom/android/volley/Response$ErrorListener;)V
.registers 12
.annotation system Ldalvik/annotation/Signature;
value = {
"(I",
"Ljava/lang/String;",
"Lorg/json/JSONArray;",
"Lcom/android/volley/Response$Listener",
"<",
"Lorg/json/JSONArray;",
">;",
"Lcom/android/volley/Response$ErrorListener;",
")V"
}
.end annotation
.prologue
.line 56
if-nez p3, :cond_c
const/4 v3, 0x0
:goto_3
move-object v0, p0
move v1, p1
move-object v2, p2
move-object v4, p4
move-object v5, p5
invoke-direct/range {v0 .. v5}, Lcom/android/volley/toolbox/JsonRequest;-><init>(ILjava/lang/String;Ljava/lang/String;Lcom/android/volley/Response$Listener;Lcom/android/volley/Response$ErrorListener;)V
.line 58
return-void
.line 56
:cond_c
invoke-virtual {p3}, Lorg/json/JSONArray;->toString()Ljava/lang/String;
move-result-object v3
goto :goto_3
.end method
.method public constructor <init>(Ljava/lang/String;Lcom/android/volley/Response$Listener;Lcom/android/volley/Response$ErrorListener;)V
.registers 10
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Ljava/lang/String;",
"Lcom/android/volley/Response$Listener",
"<",
"Lorg/json/JSONArray;",
">;",
"Lcom/android/volley/Response$ErrorListener;",
")V"
}
.end annotation
.prologue
.line 42
const/4 v1, 0x0
const/4 v3, 0x0
move-object v0, p0
move-object v2, p1
move-object v4, p2
move-object v5, p3
invoke-direct/range {v0 .. v5}, Lcom/android/volley/toolbox/JsonRequest;-><init>(ILjava/lang/String;Ljava/lang/String;Lcom/android/volley/Response$Listener;Lcom/android/volley/Response$ErrorListener;)V
.line 43
return-void
.end method
# virtual methods
.method protected parseNetworkResponse(Lcom/android/volley/NetworkResponse;)Lcom/android/volley/Response;
.registers 6
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Lcom/android/volley/NetworkResponse;",
")",
"Lcom/android/volley/Response",
"<",
"Lorg/json/JSONArray;",
">;"
}
.end annotation
.prologue
.line 63
:try_start_0
new-instance v0, Ljava/lang/String;
iget-object v1, p1, Lcom/android/volley/NetworkResponse;->data:[B
iget-object v2, p1, Lcom/android/volley/NetworkResponse;->headers:Ljava/util/Map;
const-string/jumbo v3, "utf-8"
invoke-static {v2, v3}, Lcom/android/volley/toolbox/HttpHeaderParser;->parseCharset(Ljava/util/Map;Ljava/lang/String;)Ljava/lang/String;
move-result-object v2
invoke-direct {v0, v1, v2}, Ljava/lang/String;-><init>([BLjava/lang/String;)V
.line 65
new-instance v1, Lorg/json/JSONArray;
invoke-direct {v1, v0}, Lorg/json/JSONArray;-><init>(Ljava/lang/String;)V
invoke-static {p1}, Lcom/android/volley/toolbox/HttpHeaderParser;->parseCacheHeaders(Lcom/android/volley/NetworkResponse;)Lcom/android/volley/Cache$Entry;
move-result-object v0
invoke-static {v1, v0}, Lcom/android/volley/Response;->success(Ljava/lang/Object;Lcom/android/volley/Cache$Entry;)Lcom/android/volley/Response;
:try_end_1c
.catch Ljava/io/UnsupportedEncodingException; {:try_start_0 .. :try_end_1c} :catch_1e
.catch Lorg/json/JSONException; {:try_start_0 .. :try_end_1c} :catch_29
move-result-object v0
.line 70
:goto_1d
return-object v0
.line 67
:catch_1e
move-exception v0
.line 68
new-instance v1, Lcom/android/volley/ParseError;
invoke-direct {v1, v0}, Lcom/android/volley/ParseError;-><init>(Ljava/lang/Throwable;)V
invoke-static {v1}, Lcom/android/volley/Response;->error(Lcom/android/volley/VolleyError;)Lcom/android/volley/Response;
move-result-object v0
goto :goto_1d
.line 69
:catch_29
move-exception v0
.line 70
new-instance v1, Lcom/android/volley/ParseError;
invoke-direct {v1, v0}, Lcom/android/volley/ParseError;-><init>(Ljava/lang/Throwable;)V
invoke-static {v1}, Lcom/android/volley/Response;->error(Lcom/android/volley/VolleyError;)Lcom/android/volley/Response;
move-result-object v0
goto :goto_1d
.end method