This commit is contained in:
2022-06-10 21:38:30 +09:00
commit 27f5152838
51323 changed files with 12934539 additions and 0 deletions
+598
View File
@@ -0,0 +1,598 @@
.class public abstract Ljg/a;
.super Ljava/lang/Object;
.source "AbstractMessageParser.java"
# interfaces
.implements Llg/c;
# annotations
.annotation build Lcz/msebera/android/httpclient/annotation/NotThreadSafe;
.end annotation
.annotation system Ldalvik/annotation/Signature;
value = {
"<T::",
"Ldf/p;",
">",
"Ljava/lang/Object;",
"Llg/c<",
"TT;>;"
}
.end annotation
# static fields
.field public static final g:I = 0x0
.field public static final h:I = 0x1
# instance fields
.field public final a:Llg/h;
.field public final b:Lpf/c;
.field public final c:Ljava/util/List;
.annotation system Ldalvik/annotation/Signature;
value = {
"Ljava/util/List<",
"Lcz/msebera/android/httpclient/util/CharArrayBuffer;",
">;"
}
.end annotation
.end field
.field public final d:Lmg/q;
.field public e:I
.field public f:Ldf/p;
.annotation system Ldalvik/annotation/Signature;
value = {
"TT;"
}
.end annotation
.end field
# direct methods
.method public constructor <init>(Llg/h;Lmg/q;Lng/i;)V
.locals 1
.annotation runtime Ljava/lang/Deprecated;
.end annotation
.line 1
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
const-string v0, "Session input buffer"
.line 2
invoke-static {p1, v0}, Lqg/a;->h(Ljava/lang/Object;Ljava/lang/String;)Ljava/lang/Object;
const-string v0, "HTTP parameters"
.line 3
invoke-static {p3, v0}, Lqg/a;->h(Ljava/lang/Object;Ljava/lang/String;)Ljava/lang/Object;
.line 4
iput-object p1, p0, Ljg/a;->a:Llg/h;
.line 5
invoke-static {p3}, Lng/h;->b(Lng/i;)Lpf/c;
move-result-object p1
iput-object p1, p0, Ljg/a;->b:Lpf/c;
if-eqz p2, :cond_0
goto :goto_0
.line 6
:cond_0
sget-object p2, Lmg/k;->c:Lmg/k;
:goto_0
iput-object p2, p0, Ljg/a;->d:Lmg/q;
.line 7
new-instance p1, Ljava/util/ArrayList;
invoke-direct {p1}, Ljava/util/ArrayList;-><init>()V
iput-object p1, p0, Ljg/a;->c:Ljava/util/List;
const/4 p1, 0x0
.line 8
iput p1, p0, Ljg/a;->e:I
return-void
.end method
.method public constructor <init>(Llg/h;Lmg/q;Lpf/c;)V
.locals 1
.line 9
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
const-string v0, "Session input buffer"
.line 10
invoke-static {p1, v0}, Lqg/a;->h(Ljava/lang/Object;Ljava/lang/String;)Ljava/lang/Object;
move-result-object p1
check-cast p1, Llg/h;
iput-object p1, p0, Ljg/a;->a:Llg/h;
if-eqz p2, :cond_0
goto :goto_0
.line 11
:cond_0
sget-object p2, Lmg/k;->c:Lmg/k;
:goto_0
iput-object p2, p0, Ljg/a;->d:Lmg/q;
if-eqz p3, :cond_1
goto :goto_1
.line 12
:cond_1
sget-object p3, Lpf/c;->c:Lpf/c;
:goto_1
iput-object p3, p0, Ljg/a;->b:Lpf/c;
.line 13
new-instance p1, Ljava/util/ArrayList;
invoke-direct {p1}, Ljava/util/ArrayList;-><init>()V
iput-object p1, p0, Ljg/a;->c:Ljava/util/List;
const/4 p1, 0x0
.line 14
iput p1, p0, Ljg/a;->e:I
return-void
.end method
.method public static b(Llg/h;IILmg/q;)[Ldf/d;
.locals 1
.annotation system Ldalvik/annotation/Throws;
value = {
Lcz/msebera/android/httpclient/HttpException;,
Ljava/io/IOException;
}
.end annotation
.line 1
new-instance v0, Ljava/util/ArrayList;
invoke-direct {v0}, Ljava/util/ArrayList;-><init>()V
if-eqz p3, :cond_0
goto :goto_0
.line 2
:cond_0
sget-object p3, Lmg/k;->c:Lmg/k;
:goto_0
invoke-static {p0, p1, p2, p3, v0}, Ljg/a;->c(Llg/h;IILmg/q;Ljava/util/List;)[Ldf/d;
move-result-object p0
return-object p0
.end method
.method public static c(Llg/h;IILmg/q;Ljava/util/List;)[Ldf/d;
.locals 8
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Llg/h;",
"II",
"Lmg/q;",
"Ljava/util/List<",
"Lcz/msebera/android/httpclient/util/CharArrayBuffer;",
">;)[",
"Ldf/d;"
}
.end annotation
.annotation system Ldalvik/annotation/Throws;
value = {
Lcz/msebera/android/httpclient/HttpException;,
Ljava/io/IOException;
}
.end annotation
const-string v0, "Session input buffer"
.line 1
invoke-static {p0, v0}, Lqg/a;->h(Ljava/lang/Object;Ljava/lang/String;)Ljava/lang/Object;
const-string v0, "Line parser"
.line 2
invoke-static {p3, v0}, Lqg/a;->h(Ljava/lang/Object;Ljava/lang/String;)Ljava/lang/Object;
const-string v0, "Header line list"
.line 3
invoke-static {p4, v0}, Lqg/a;->h(Ljava/lang/Object;Ljava/lang/String;)Ljava/lang/Object;
const/4 v0, 0x0
move-object v1, v0
move-object v2, v1
:cond_0
:goto_0
if-nez v1, :cond_1
.line 4
new-instance v1, Lcz/msebera/android/httpclient/util/CharArrayBuffer;
const/16 v3, 0x40
invoke-direct {v1, v3}, Lcz/msebera/android/httpclient/util/CharArrayBuffer;-><init>(I)V
goto :goto_1
.line 5
:cond_1
invoke-virtual {v1}, Lcz/msebera/android/httpclient/util/CharArrayBuffer;->clear()V
.line 6
:goto_1
invoke-interface {p0, v1}, Llg/h;->a(Lcz/msebera/android/httpclient/util/CharArrayBuffer;)I
move-result v3
const/4 v4, -0x1
const/4 v5, 0x0
if-eq v3, v4, :cond_a
.line 7
invoke-virtual {v1}, Lcz/msebera/android/httpclient/util/CharArrayBuffer;->length()I
move-result v3
const/4 v4, 0x1
if-ge v3, v4, :cond_2
goto :goto_6
.line 8
:cond_2
invoke-virtual {v1, v5}, Lcz/msebera/android/httpclient/util/CharArrayBuffer;->charAt(I)C
move-result v3
const/16 v6, 0x9
const/16 v7, 0x20
if-eq v3, v7, :cond_3
invoke-virtual {v1, v5}, Lcz/msebera/android/httpclient/util/CharArrayBuffer;->charAt(I)C
move-result v3
if-ne v3, v6, :cond_8
:cond_3
if-eqz v2, :cond_8
.line 9
:goto_2
invoke-virtual {v1}, Lcz/msebera/android/httpclient/util/CharArrayBuffer;->length()I
move-result v3
if-ge v5, v3, :cond_5
.line 10
invoke-virtual {v1, v5}, Lcz/msebera/android/httpclient/util/CharArrayBuffer;->charAt(I)C
move-result v3
if-eq v3, v7, :cond_4
if-eq v3, v6, :cond_4
goto :goto_3
:cond_4
add-int/lit8 v5, v5, 0x1
goto :goto_2
:cond_5
:goto_3
if-lez p2, :cond_7
.line 11
invoke-virtual {v2}, Lcz/msebera/android/httpclient/util/CharArrayBuffer;->length()I
move-result v3
add-int/2addr v3, v4
invoke-virtual {v1}, Lcz/msebera/android/httpclient/util/CharArrayBuffer;->length()I
move-result v4
add-int/2addr v4, v3
sub-int/2addr v4, v5
if-gt v4, p2, :cond_6
goto :goto_4
.line 12
:cond_6
new-instance p0, Lcz/msebera/android/httpclient/MessageConstraintException;
const-string p1, "Maximum line length limit exceeded"
invoke-direct {p0, p1}, Lcz/msebera/android/httpclient/MessageConstraintException;-><init>(Ljava/lang/String;)V
throw p0
.line 13
:cond_7
:goto_4
invoke-virtual {v2, v7}, Lcz/msebera/android/httpclient/util/CharArrayBuffer;->append(C)V
.line 14
invoke-virtual {v1}, Lcz/msebera/android/httpclient/util/CharArrayBuffer;->length()I
move-result v3
sub-int/2addr v3, v5
invoke-virtual {v2, v1, v5, v3}, Lcz/msebera/android/httpclient/util/CharArrayBuffer;->append(Lcz/msebera/android/httpclient/util/CharArrayBuffer;II)V
goto :goto_5
.line 15
:cond_8
invoke-interface {p4, v1}, Ljava/util/List;->add(Ljava/lang/Object;)Z
move-object v2, v1
move-object v1, v0
:goto_5
if-lez p1, :cond_0
.line 16
invoke-interface {p4}, Ljava/util/List;->size()I
move-result v3
if-ge v3, p1, :cond_9
goto :goto_0
.line 17
:cond_9
new-instance p0, Lcz/msebera/android/httpclient/MessageConstraintException;
const-string p1, "Maximum header count exceeded"
invoke-direct {p0, p1}, Lcz/msebera/android/httpclient/MessageConstraintException;-><init>(Ljava/lang/String;)V
throw p0
.line 18
:cond_a
:goto_6
invoke-interface {p4}, Ljava/util/List;->size()I
move-result p0
new-array p0, p0, [Ldf/d;
.line 19
:goto_7
invoke-interface {p4}, Ljava/util/List;->size()I
move-result p1
if-ge v5, p1, :cond_b
.line 20
invoke-interface {p4, v5}, Ljava/util/List;->get(I)Ljava/lang/Object;
move-result-object p1
check-cast p1, Lcz/msebera/android/httpclient/util/CharArrayBuffer;
.line 21
:try_start_0
invoke-interface {p3, p1}, Lmg/q;->d(Lcz/msebera/android/httpclient/util/CharArrayBuffer;)Ldf/d;
move-result-object p1
aput-object p1, p0, v5
:try_end_0
.catch Lcz/msebera/android/httpclient/ParseException; {:try_start_0 .. :try_end_0} :catch_0
add-int/lit8 v5, v5, 0x1
goto :goto_7
:catch_0
move-exception p0
.line 22
new-instance p1, Lcz/msebera/android/httpclient/ProtocolException;
invoke-virtual {p0}, Ljava/lang/RuntimeException;->getMessage()Ljava/lang/String;
move-result-object p0
invoke-direct {p1, p0}, Lcz/msebera/android/httpclient/ProtocolException;-><init>(Ljava/lang/String;)V
throw p1
:cond_b
return-object p0
.end method
# virtual methods
.method public abstract a(Llg/h;)Ldf/p;
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Llg/h;",
")TT;"
}
.end annotation
.annotation system Ldalvik/annotation/Throws;
value = {
Ljava/io/IOException;,
Lcz/msebera/android/httpclient/HttpException;,
Lcz/msebera/android/httpclient/ParseException;
}
.end annotation
.end method
.method public parse()Ldf/p;
.locals 5
.annotation system Ldalvik/annotation/Signature;
value = {
"()TT;"
}
.end annotation
.annotation system Ldalvik/annotation/Throws;
value = {
Ljava/io/IOException;,
Lcz/msebera/android/httpclient/HttpException;
}
.end annotation
.line 1
iget v0, p0, Ljg/a;->e:I
const/4 v1, 0x1
if-eqz v0, :cond_1
if-ne v0, v1, :cond_0
goto :goto_0
.line 2
:cond_0
new-instance v0, Ljava/lang/IllegalStateException;
const-string v1, "Inconsistent parser state"
invoke-direct {v0, v1}, Ljava/lang/IllegalStateException;-><init>(Ljava/lang/String;)V
throw v0
.line 3
:cond_1
:try_start_0
iget-object v0, p0, Ljg/a;->a:Llg/h;
invoke-virtual {p0, v0}, Ljg/a;->a(Llg/h;)Ldf/p;
move-result-object v0
iput-object v0, p0, Ljg/a;->f:Ldf/p;
:try_end_0
.catch Lcz/msebera/android/httpclient/ParseException; {:try_start_0 .. :try_end_0} :catch_0
.line 4
iput v1, p0, Ljg/a;->e:I
.line 5
:goto_0
iget-object v0, p0, Ljg/a;->a:Llg/h;
iget-object v1, p0, Ljg/a;->b:Lpf/c;
.line 6
invoke-virtual {v1}, Lpf/c;->d()I
move-result v1
iget-object v2, p0, Ljg/a;->b:Lpf/c;
.line 7
invoke-virtual {v2}, Lpf/c;->e()I
move-result v2
iget-object v3, p0, Ljg/a;->d:Lmg/q;
iget-object v4, p0, Ljg/a;->c:Ljava/util/List;
.line 8
invoke-static {v0, v1, v2, v3, v4}, Ljg/a;->c(Llg/h;IILmg/q;Ljava/util/List;)[Ldf/d;
move-result-object v0
.line 9
iget-object v1, p0, Ljg/a;->f:Ldf/p;
invoke-interface {v1, v0}, Ldf/p;->f([Ldf/d;)V
.line 10
iget-object v0, p0, Ljg/a;->f:Ldf/p;
const/4 v1, 0x0
.line 11
iput-object v1, p0, Ljg/a;->f:Ldf/p;
.line 12
iget-object v1, p0, Ljg/a;->c:Ljava/util/List;
invoke-interface {v1}, Ljava/util/List;->clear()V
const/4 v1, 0x0
.line 13
iput v1, p0, Ljg/a;->e:I
return-object v0
:catch_0
move-exception v0
.line 14
new-instance v1, Lcz/msebera/android/httpclient/ProtocolException;
invoke-virtual {v0}, Ljava/lang/RuntimeException;->getMessage()Ljava/lang/String;
move-result-object v2
invoke-direct {v1, v2, v0}, Lcz/msebera/android/httpclient/ProtocolException;-><init>(Ljava/lang/String;Ljava/lang/Throwable;)V
throw v1
.end method
+54
View File
@@ -0,0 +1,54 @@
.class public Ljg/a0;
.super Ljg/d;
.source "SocketOutputBuffer.java"
# annotations
.annotation build Lcz/msebera/android/httpclient/annotation/NotThreadSafe;
.end annotation
.annotation runtime Ljava/lang/Deprecated;
.end annotation
# direct methods
.method public constructor <init>(Ljava/net/Socket;ILng/i;)V
.locals 1
.annotation system Ldalvik/annotation/Throws;
value = {
Ljava/io/IOException;
}
.end annotation
.line 1
invoke-direct {p0}, Ljg/d;-><init>()V
const-string v0, "Socket"
.line 2
invoke-static {p1, v0}, Lqg/a;->h(Ljava/lang/Object;Ljava/lang/String;)Ljava/lang/Object;
if-gez p2, :cond_0
.line 3
invoke-virtual {p1}, Ljava/net/Socket;->getSendBufferSize()I
move-result p2
:cond_0
const/16 v0, 0x400
if-ge p2, v0, :cond_1
move p2, v0
.line 4
:cond_1
invoke-virtual {p1}, Ljava/net/Socket;->getOutputStream()Ljava/io/OutputStream;
move-result-object p1
invoke-virtual {p0, p1, p2, p3}, Ljg/d;->f(Ljava/io/OutputStream;ILng/i;)V
return-void
.end method
+199
View File
@@ -0,0 +1,199 @@
.class public abstract Ljg/b;
.super Ljava/lang/Object;
.source "AbstractMessageWriter.java"
# interfaces
.implements Llg/e;
# annotations
.annotation build Lcz/msebera/android/httpclient/annotation/NotThreadSafe;
.end annotation
.annotation system Ldalvik/annotation/Signature;
value = {
"<T::",
"Ldf/p;",
">",
"Ljava/lang/Object;",
"Llg/e<",
"TT;>;"
}
.end annotation
# instance fields
.field public final a:Llg/i;
.field public final b:Lcz/msebera/android/httpclient/util/CharArrayBuffer;
.field public final c:Lmg/p;
# direct methods
.method public constructor <init>(Llg/i;Lmg/p;)V
.locals 1
.line 6
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
const-string v0, "Session input buffer"
.line 7
invoke-static {p1, v0}, Lqg/a;->h(Ljava/lang/Object;Ljava/lang/String;)Ljava/lang/Object;
move-result-object p1
check-cast p1, Llg/i;
iput-object p1, p0, Ljg/b;->a:Llg/i;
if-eqz p2, :cond_0
goto :goto_0
.line 8
:cond_0
sget-object p2, Lmg/j;->b:Lmg/j;
:goto_0
iput-object p2, p0, Ljg/b;->c:Lmg/p;
.line 9
new-instance p1, Lcz/msebera/android/httpclient/util/CharArrayBuffer;
const/16 p2, 0x80
invoke-direct {p1, p2}, Lcz/msebera/android/httpclient/util/CharArrayBuffer;-><init>(I)V
iput-object p1, p0, Ljg/b;->b:Lcz/msebera/android/httpclient/util/CharArrayBuffer;
return-void
.end method
.method public constructor <init>(Llg/i;Lmg/p;Lng/i;)V
.locals 0
.annotation runtime Ljava/lang/Deprecated;
.end annotation
.line 1
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
const-string p3, "Session input buffer"
.line 2
invoke-static {p1, p3}, Lqg/a;->h(Ljava/lang/Object;Ljava/lang/String;)Ljava/lang/Object;
.line 3
iput-object p1, p0, Ljg/b;->a:Llg/i;
.line 4
new-instance p1, Lcz/msebera/android/httpclient/util/CharArrayBuffer;
const/16 p3, 0x80
invoke-direct {p1, p3}, Lcz/msebera/android/httpclient/util/CharArrayBuffer;-><init>(I)V
iput-object p1, p0, Ljg/b;->b:Lcz/msebera/android/httpclient/util/CharArrayBuffer;
if-eqz p2, :cond_0
goto :goto_0
.line 5
:cond_0
sget-object p2, Lmg/j;->b:Lmg/j;
:goto_0
iput-object p2, p0, Ljg/b;->c:Lmg/p;
return-void
.end method
# virtual methods
.method public a(Ldf/p;)V
.locals 4
.annotation system Ldalvik/annotation/Signature;
value = {
"(TT;)V"
}
.end annotation
.annotation system Ldalvik/annotation/Throws;
value = {
Ljava/io/IOException;,
Lcz/msebera/android/httpclient/HttpException;
}
.end annotation
const-string v0, "HTTP message"
.line 1
invoke-static {p1, v0}, Lqg/a;->h(Ljava/lang/Object;Ljava/lang/String;)Ljava/lang/Object;
.line 2
invoke-virtual {p0, p1}, Ljg/b;->b(Ldf/p;)V
.line 3
invoke-interface {p1}, Ldf/p;->headerIterator()Ldf/g;
move-result-object p1
:goto_0
invoke-interface {p1}, Ldf/g;->hasNext()Z
move-result v0
if-eqz v0, :cond_0
.line 4
invoke-interface {p1}, Ldf/g;->nextHeader()Ldf/d;
move-result-object v0
.line 5
iget-object v1, p0, Ljg/b;->a:Llg/i;
iget-object v2, p0, Ljg/b;->c:Lmg/p;
iget-object v3, p0, Ljg/b;->b:Lcz/msebera/android/httpclient/util/CharArrayBuffer;
.line 6
invoke-interface {v2, v3, v0}, Lmg/p;->a(Lcz/msebera/android/httpclient/util/CharArrayBuffer;Ldf/d;)Lcz/msebera/android/httpclient/util/CharArrayBuffer;
move-result-object v0
invoke-interface {v1, v0}, Llg/i;->a(Lcz/msebera/android/httpclient/util/CharArrayBuffer;)V
goto :goto_0
.line 7
:cond_0
iget-object p1, p0, Ljg/b;->b:Lcz/msebera/android/httpclient/util/CharArrayBuffer;
invoke-virtual {p1}, Lcz/msebera/android/httpclient/util/CharArrayBuffer;->clear()V
.line 8
iget-object p1, p0, Ljg/b;->a:Llg/i;
iget-object v0, p0, Ljg/b;->b:Lcz/msebera/android/httpclient/util/CharArrayBuffer;
invoke-interface {p1, v0}, Llg/i;->a(Lcz/msebera/android/httpclient/util/CharArrayBuffer;)V
return-void
.end method
.method public abstract b(Ldf/p;)V
.annotation system Ldalvik/annotation/Signature;
value = {
"(TT;)V"
}
.end annotation
.annotation system Ldalvik/annotation/Throws;
value = {
Ljava/io/IOException;
}
.end annotation
.end method
File diff suppressed because it is too large Load Diff
+885
View File
@@ -0,0 +1,885 @@
.class public abstract Ljg/d;
.super Ljava/lang/Object;
.source "AbstractSessionOutputBuffer.java"
# interfaces
.implements Llg/i;
.implements Llg/a;
# annotations
.annotation build Lcz/msebera/android/httpclient/annotation/NotThreadSafe;
.end annotation
.annotation runtime Ljava/lang/Deprecated;
.end annotation
# static fields
.field public static final k:[B
# instance fields
.field public a:Ljava/io/OutputStream;
.field public b:Lcz/msebera/android/httpclient/util/ByteArrayBuffer;
.field public c:Ljava/nio/charset/Charset;
.field public d:Z
.field public e:I
.field public f:Ljg/u;
.field public g:Ljava/nio/charset/CodingErrorAction;
.field public h:Ljava/nio/charset/CodingErrorAction;
.field public i:Ljava/nio/charset/CharsetEncoder;
.field public j:Ljava/nio/ByteBuffer;
# direct methods
.method public static constructor <clinit>()V
.locals 1
const/4 v0, 0x2
new-array v0, v0, [B
.line 1
fill-array-data v0, :array_0
sput-object v0, Ljg/d;->k:[B
return-void
nop
:array_0
.array-data 1
0xdt
0xat
.end array-data
.end method
.method public constructor <init>()V
.locals 0
.line 13
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
return-void
.end method
.method public constructor <init>(Ljava/io/OutputStream;ILjava/nio/charset/Charset;ILjava/nio/charset/CodingErrorAction;Ljava/nio/charset/CodingErrorAction;)V
.locals 1
.line 1
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
const-string v0, "Input stream"
.line 2
invoke-static {p1, v0}, Lqg/a;->h(Ljava/lang/Object;Ljava/lang/String;)Ljava/lang/Object;
const-string v0, "Buffer size"
.line 3
invoke-static {p2, v0}, Lqg/a;->f(ILjava/lang/String;)I
.line 4
iput-object p1, p0, Ljg/d;->a:Ljava/io/OutputStream;
.line 5
new-instance p1, Lcz/msebera/android/httpclient/util/ByteArrayBuffer;
invoke-direct {p1, p2}, Lcz/msebera/android/httpclient/util/ByteArrayBuffer;-><init>(I)V
iput-object p1, p0, Ljg/d;->b:Lcz/msebera/android/httpclient/util/ByteArrayBuffer;
if-eqz p3, :cond_0
goto :goto_0
.line 6
:cond_0
sget-object p3, Ldf/b;->f:Ljava/nio/charset/Charset;
:goto_0
iput-object p3, p0, Ljg/d;->c:Ljava/nio/charset/Charset;
.line 7
sget-object p1, Ldf/b;->f:Ljava/nio/charset/Charset;
invoke-virtual {p3, p1}, Ljava/nio/charset/Charset;->equals(Ljava/lang/Object;)Z
move-result p1
iput-boolean p1, p0, Ljg/d;->d:Z
const/4 p1, 0x0
.line 8
iput-object p1, p0, Ljg/d;->i:Ljava/nio/charset/CharsetEncoder;
if-ltz p4, :cond_1
goto :goto_1
:cond_1
const/16 p4, 0x200
.line 9
:goto_1
iput p4, p0, Ljg/d;->e:I
.line 10
invoke-virtual {p0}, Ljg/d;->c()Ljg/u;
move-result-object p1
iput-object p1, p0, Ljg/d;->f:Ljg/u;
if-eqz p5, :cond_2
goto :goto_2
.line 11
:cond_2
sget-object p5, Ljava/nio/charset/CodingErrorAction;->REPORT:Ljava/nio/charset/CodingErrorAction;
:goto_2
iput-object p5, p0, Ljg/d;->g:Ljava/nio/charset/CodingErrorAction;
if-eqz p6, :cond_3
goto :goto_3
.line 12
:cond_3
sget-object p6, Ljava/nio/charset/CodingErrorAction;->REPORT:Ljava/nio/charset/CodingErrorAction;
:goto_3
iput-object p6, p0, Ljg/d;->h:Ljava/nio/charset/CodingErrorAction;
return-void
.end method
# virtual methods
.method public a(Lcz/msebera/android/httpclient/util/CharArrayBuffer;)V
.locals 4
.annotation system Ldalvik/annotation/Throws;
value = {
Ljava/io/IOException;
}
.end annotation
if-nez p1, :cond_0
return-void
.line 1
:cond_0
iget-boolean v0, p0, Ljg/d;->d:Z
const/4 v1, 0x0
if-eqz v0, :cond_3
.line 2
invoke-virtual {p1}, Lcz/msebera/android/httpclient/util/CharArrayBuffer;->length()I
move-result v0
:goto_0
if-lez v0, :cond_4
.line 3
iget-object v2, p0, Ljg/d;->b:Lcz/msebera/android/httpclient/util/ByteArrayBuffer;
invoke-virtual {v2}, Lcz/msebera/android/httpclient/util/ByteArrayBuffer;->capacity()I
move-result v2
iget-object v3, p0, Ljg/d;->b:Lcz/msebera/android/httpclient/util/ByteArrayBuffer;
invoke-virtual {v3}, Lcz/msebera/android/httpclient/util/ByteArrayBuffer;->length()I
move-result v3
sub-int/2addr v2, v3
.line 4
invoke-static {v2, v0}, Ljava/lang/Math;->min(II)I
move-result v2
if-lez v2, :cond_1
.line 5
iget-object v3, p0, Ljg/d;->b:Lcz/msebera/android/httpclient/util/ByteArrayBuffer;
invoke-virtual {v3, p1, v1, v2}, Lcz/msebera/android/httpclient/util/ByteArrayBuffer;->append(Lcz/msebera/android/httpclient/util/CharArrayBuffer;II)V
.line 6
:cond_1
iget-object v3, p0, Ljg/d;->b:Lcz/msebera/android/httpclient/util/ByteArrayBuffer;
invoke-virtual {v3}, Lcz/msebera/android/httpclient/util/ByteArrayBuffer;->isFull()Z
move-result v3
if-eqz v3, :cond_2
.line 7
invoke-virtual {p0}, Ljg/d;->d()V
:cond_2
add-int/2addr v1, v2
sub-int/2addr v0, v2
goto :goto_0
.line 8
:cond_3
invoke-virtual {p1}, Lcz/msebera/android/httpclient/util/CharArrayBuffer;->buffer()[C
move-result-object v0
invoke-virtual {p1}, Lcz/msebera/android/httpclient/util/CharArrayBuffer;->length()I
move-result p1
invoke-static {v0, v1, p1}, Ljava/nio/CharBuffer;->wrap([CII)Ljava/nio/CharBuffer;
move-result-object p1
.line 9
invoke-virtual {p0, p1}, Ljg/d;->g(Ljava/nio/CharBuffer;)V
.line 10
:cond_4
sget-object p1, Ljg/d;->k:[B
invoke-virtual {p0, p1}, Ljg/d;->write([B)V
return-void
.end method
.method public available()I
.locals 2
.line 1
invoke-virtual {p0}, Ljg/d;->b()I
move-result v0
invoke-virtual {p0}, Ljg/d;->length()I
move-result v1
sub-int/2addr v0, v1
return v0
.end method
.method public b()I
.locals 1
.line 1
iget-object v0, p0, Ljg/d;->b:Lcz/msebera/android/httpclient/util/ByteArrayBuffer;
invoke-virtual {v0}, Lcz/msebera/android/httpclient/util/ByteArrayBuffer;->capacity()I
move-result v0
return v0
.end method
.method public c()Ljg/u;
.locals 1
.line 1
new-instance v0, Ljg/u;
invoke-direct {v0}, Ljg/u;-><init>()V
return-object v0
.end method
.method public d()V
.locals 4
.annotation system Ldalvik/annotation/Throws;
value = {
Ljava/io/IOException;
}
.end annotation
.line 1
iget-object v0, p0, Ljg/d;->b:Lcz/msebera/android/httpclient/util/ByteArrayBuffer;
invoke-virtual {v0}, Lcz/msebera/android/httpclient/util/ByteArrayBuffer;->length()I
move-result v0
if-lez v0, :cond_0
.line 2
iget-object v1, p0, Ljg/d;->a:Ljava/io/OutputStream;
iget-object v2, p0, Ljg/d;->b:Lcz/msebera/android/httpclient/util/ByteArrayBuffer;
invoke-virtual {v2}, Lcz/msebera/android/httpclient/util/ByteArrayBuffer;->buffer()[B
move-result-object v2
const/4 v3, 0x0
invoke-virtual {v1, v2, v3, v0}, Ljava/io/OutputStream;->write([BII)V
.line 3
iget-object v1, p0, Ljg/d;->b:Lcz/msebera/android/httpclient/util/ByteArrayBuffer;
invoke-virtual {v1}, Lcz/msebera/android/httpclient/util/ByteArrayBuffer;->clear()V
.line 4
iget-object v1, p0, Ljg/d;->f:Ljg/u;
int-to-long v2, v0
invoke-virtual {v1, v2, v3}, Ljg/u;->a(J)V
:cond_0
return-void
.end method
.method public final e(Ljava/nio/charset/CoderResult;)V
.locals 1
.annotation system Ldalvik/annotation/Throws;
value = {
Ljava/io/IOException;
}
.end annotation
.line 1
invoke-virtual {p1}, Ljava/nio/charset/CoderResult;->isError()Z
move-result v0
if-eqz v0, :cond_0
.line 2
invoke-virtual {p1}, Ljava/nio/charset/CoderResult;->throwException()V
.line 3
:cond_0
iget-object p1, p0, Ljg/d;->j:Ljava/nio/ByteBuffer;
invoke-virtual {p1}, Ljava/nio/ByteBuffer;->flip()Ljava/nio/Buffer;
.line 4
:goto_0
iget-object p1, p0, Ljg/d;->j:Ljava/nio/ByteBuffer;
invoke-virtual {p1}, Ljava/nio/ByteBuffer;->hasRemaining()Z
move-result p1
if-eqz p1, :cond_1
.line 5
iget-object p1, p0, Ljg/d;->j:Ljava/nio/ByteBuffer;
invoke-virtual {p1}, Ljava/nio/ByteBuffer;->get()B
move-result p1
invoke-virtual {p0, p1}, Ljg/d;->write(I)V
goto :goto_0
.line 6
:cond_1
iget-object p1, p0, Ljg/d;->j:Ljava/nio/ByteBuffer;
invoke-virtual {p1}, Ljava/nio/ByteBuffer;->compact()Ljava/nio/ByteBuffer;
return-void
.end method
.method public f(Ljava/io/OutputStream;ILng/i;)V
.locals 1
const-string v0, "Input stream"
.line 1
invoke-static {p1, v0}, Lqg/a;->h(Ljava/lang/Object;Ljava/lang/String;)Ljava/lang/Object;
const-string v0, "Buffer size"
.line 2
invoke-static {p2, v0}, Lqg/a;->f(ILjava/lang/String;)I
const-string v0, "HTTP parameters"
.line 3
invoke-static {p3, v0}, Lqg/a;->h(Ljava/lang/Object;Ljava/lang/String;)Ljava/lang/Object;
.line 4
iput-object p1, p0, Ljg/d;->a:Ljava/io/OutputStream;
.line 5
new-instance p1, Lcz/msebera/android/httpclient/util/ByteArrayBuffer;
invoke-direct {p1, p2}, Lcz/msebera/android/httpclient/util/ByteArrayBuffer;-><init>(I)V
iput-object p1, p0, Ljg/d;->b:Lcz/msebera/android/httpclient/util/ByteArrayBuffer;
const-string p1, "http.protocol.element-charset"
.line 6
invoke-interface {p3, p1}, Lng/i;->getParameter(Ljava/lang/String;)Ljava/lang/Object;
move-result-object p1
check-cast p1, Ljava/lang/String;
if-eqz p1, :cond_0
.line 7
invoke-static {p1}, Ljava/nio/charset/Charset;->forName(Ljava/lang/String;)Ljava/nio/charset/Charset;
move-result-object p1
goto :goto_0
:cond_0
sget-object p1, Ldf/b;->f:Ljava/nio/charset/Charset;
:goto_0
iput-object p1, p0, Ljg/d;->c:Ljava/nio/charset/Charset;
.line 8
sget-object p2, Ldf/b;->f:Ljava/nio/charset/Charset;
invoke-virtual {p1, p2}, Ljava/nio/charset/Charset;->equals(Ljava/lang/Object;)Z
move-result p1
iput-boolean p1, p0, Ljg/d;->d:Z
const/4 p1, 0x0
.line 9
iput-object p1, p0, Ljg/d;->i:Ljava/nio/charset/CharsetEncoder;
const/16 p1, 0x200
const-string p2, "http.connection.min-chunk-limit"
.line 10
invoke-interface {p3, p2, p1}, Lng/i;->getIntParameter(Ljava/lang/String;I)I
move-result p1
iput p1, p0, Ljg/d;->e:I
.line 11
invoke-virtual {p0}, Ljg/d;->c()Ljg/u;
move-result-object p1
iput-object p1, p0, Ljg/d;->f:Ljg/u;
const-string p1, "http.malformed.input.action"
.line 12
invoke-interface {p3, p1}, Lng/i;->getParameter(Ljava/lang/String;)Ljava/lang/Object;
move-result-object p1
check-cast p1, Ljava/nio/charset/CodingErrorAction;
if-eqz p1, :cond_1
goto :goto_1
.line 13
:cond_1
sget-object p1, Ljava/nio/charset/CodingErrorAction;->REPORT:Ljava/nio/charset/CodingErrorAction;
:goto_1
iput-object p1, p0, Ljg/d;->g:Ljava/nio/charset/CodingErrorAction;
const-string p1, "http.unmappable.input.action"
.line 14
invoke-interface {p3, p1}, Lng/i;->getParameter(Ljava/lang/String;)Ljava/lang/Object;
move-result-object p1
check-cast p1, Ljava/nio/charset/CodingErrorAction;
if-eqz p1, :cond_2
goto :goto_2
.line 15
:cond_2
sget-object p1, Ljava/nio/charset/CodingErrorAction;->REPORT:Ljava/nio/charset/CodingErrorAction;
:goto_2
iput-object p1, p0, Ljg/d;->h:Ljava/nio/charset/CodingErrorAction;
return-void
.end method
.method public flush()V
.locals 1
.annotation system Ldalvik/annotation/Throws;
value = {
Ljava/io/IOException;
}
.end annotation
.line 1
invoke-virtual {p0}, Ljg/d;->d()V
.line 2
iget-object v0, p0, Ljg/d;->a:Ljava/io/OutputStream;
invoke-virtual {v0}, Ljava/io/OutputStream;->flush()V
return-void
.end method
.method public final g(Ljava/nio/CharBuffer;)V
.locals 3
.annotation system Ldalvik/annotation/Throws;
value = {
Ljava/io/IOException;
}
.end annotation
.line 1
invoke-virtual {p1}, Ljava/nio/CharBuffer;->hasRemaining()Z
move-result v0
if-nez v0, :cond_0
return-void
.line 2
:cond_0
iget-object v0, p0, Ljg/d;->i:Ljava/nio/charset/CharsetEncoder;
if-nez v0, :cond_1
.line 3
iget-object v0, p0, Ljg/d;->c:Ljava/nio/charset/Charset;
invoke-virtual {v0}, Ljava/nio/charset/Charset;->newEncoder()Ljava/nio/charset/CharsetEncoder;
move-result-object v0
iput-object v0, p0, Ljg/d;->i:Ljava/nio/charset/CharsetEncoder;
.line 4
iget-object v1, p0, Ljg/d;->g:Ljava/nio/charset/CodingErrorAction;
invoke-virtual {v0, v1}, Ljava/nio/charset/CharsetEncoder;->onMalformedInput(Ljava/nio/charset/CodingErrorAction;)Ljava/nio/charset/CharsetEncoder;
.line 5
iget-object v0, p0, Ljg/d;->i:Ljava/nio/charset/CharsetEncoder;
iget-object v1, p0, Ljg/d;->h:Ljava/nio/charset/CodingErrorAction;
invoke-virtual {v0, v1}, Ljava/nio/charset/CharsetEncoder;->onUnmappableCharacter(Ljava/nio/charset/CodingErrorAction;)Ljava/nio/charset/CharsetEncoder;
.line 6
:cond_1
iget-object v0, p0, Ljg/d;->j:Ljava/nio/ByteBuffer;
if-nez v0, :cond_2
const/16 v0, 0x400
.line 7
invoke-static {v0}, Ljava/nio/ByteBuffer;->allocate(I)Ljava/nio/ByteBuffer;
move-result-object v0
iput-object v0, p0, Ljg/d;->j:Ljava/nio/ByteBuffer;
.line 8
:cond_2
iget-object v0, p0, Ljg/d;->i:Ljava/nio/charset/CharsetEncoder;
invoke-virtual {v0}, Ljava/nio/charset/CharsetEncoder;->reset()Ljava/nio/charset/CharsetEncoder;
.line 9
:goto_0
invoke-virtual {p1}, Ljava/nio/CharBuffer;->hasRemaining()Z
move-result v0
if-eqz v0, :cond_3
.line 10
iget-object v0, p0, Ljg/d;->i:Ljava/nio/charset/CharsetEncoder;
iget-object v1, p0, Ljg/d;->j:Ljava/nio/ByteBuffer;
const/4 v2, 0x1
invoke-virtual {v0, p1, v1, v2}, Ljava/nio/charset/CharsetEncoder;->encode(Ljava/nio/CharBuffer;Ljava/nio/ByteBuffer;Z)Ljava/nio/charset/CoderResult;
move-result-object v0
.line 11
invoke-virtual {p0, v0}, Ljg/d;->e(Ljava/nio/charset/CoderResult;)V
goto :goto_0
.line 12
:cond_3
iget-object p1, p0, Ljg/d;->i:Ljava/nio/charset/CharsetEncoder;
iget-object v0, p0, Ljg/d;->j:Ljava/nio/ByteBuffer;
invoke-virtual {p1, v0}, Ljava/nio/charset/CharsetEncoder;->flush(Ljava/nio/ByteBuffer;)Ljava/nio/charset/CoderResult;
move-result-object p1
.line 13
invoke-virtual {p0, p1}, Ljg/d;->e(Ljava/nio/charset/CoderResult;)V
.line 14
iget-object p1, p0, Ljg/d;->j:Ljava/nio/ByteBuffer;
invoke-virtual {p1}, Ljava/nio/ByteBuffer;->clear()Ljava/nio/Buffer;
return-void
.end method
.method public getMetrics()Llg/g;
.locals 1
.line 1
iget-object v0, p0, Ljg/d;->f:Ljg/u;
return-object v0
.end method
.method public length()I
.locals 1
.line 1
iget-object v0, p0, Ljg/d;->b:Lcz/msebera/android/httpclient/util/ByteArrayBuffer;
invoke-virtual {v0}, Lcz/msebera/android/httpclient/util/ByteArrayBuffer;->length()I
move-result v0
return v0
.end method
.method public write(I)V
.locals 1
.annotation system Ldalvik/annotation/Throws;
value = {
Ljava/io/IOException;
}
.end annotation
.line 9
iget-object v0, p0, Ljg/d;->b:Lcz/msebera/android/httpclient/util/ByteArrayBuffer;
invoke-virtual {v0}, Lcz/msebera/android/httpclient/util/ByteArrayBuffer;->isFull()Z
move-result v0
if-eqz v0, :cond_0
.line 10
invoke-virtual {p0}, Ljg/d;->d()V
.line 11
:cond_0
iget-object v0, p0, Ljg/d;->b:Lcz/msebera/android/httpclient/util/ByteArrayBuffer;
invoke-virtual {v0, p1}, Lcz/msebera/android/httpclient/util/ByteArrayBuffer;->append(I)V
return-void
.end method
.method public write([B)V
.locals 2
.annotation system Ldalvik/annotation/Throws;
value = {
Ljava/io/IOException;
}
.end annotation
if-nez p1, :cond_0
return-void
:cond_0
const/4 v0, 0x0
.line 8
array-length v1, p1
invoke-virtual {p0, p1, v0, v1}, Ljg/d;->write([BII)V
return-void
.end method
.method public write([BII)V
.locals 2
.annotation system Ldalvik/annotation/Throws;
value = {
Ljava/io/IOException;
}
.end annotation
if-nez p1, :cond_0
return-void
.line 1
:cond_0
iget v0, p0, Ljg/d;->e:I
if-gt p3, v0, :cond_3
iget-object v0, p0, Ljg/d;->b:Lcz/msebera/android/httpclient/util/ByteArrayBuffer;
invoke-virtual {v0}, Lcz/msebera/android/httpclient/util/ByteArrayBuffer;->capacity()I
move-result v0
if-le p3, v0, :cond_1
goto :goto_0
.line 2
:cond_1
iget-object v0, p0, Ljg/d;->b:Lcz/msebera/android/httpclient/util/ByteArrayBuffer;
invoke-virtual {v0}, Lcz/msebera/android/httpclient/util/ByteArrayBuffer;->capacity()I
move-result v0
iget-object v1, p0, Ljg/d;->b:Lcz/msebera/android/httpclient/util/ByteArrayBuffer;
invoke-virtual {v1}, Lcz/msebera/android/httpclient/util/ByteArrayBuffer;->length()I
move-result v1
sub-int/2addr v0, v1
if-le p3, v0, :cond_2
.line 3
invoke-virtual {p0}, Ljg/d;->d()V
.line 4
:cond_2
iget-object v0, p0, Ljg/d;->b:Lcz/msebera/android/httpclient/util/ByteArrayBuffer;
invoke-virtual {v0, p1, p2, p3}, Lcz/msebera/android/httpclient/util/ByteArrayBuffer;->append([BII)V
goto :goto_1
.line 5
:cond_3
:goto_0
invoke-virtual {p0}, Ljg/d;->d()V
.line 6
iget-object v0, p0, Ljg/d;->a:Ljava/io/OutputStream;
invoke-virtual {v0, p1, p2, p3}, Ljava/io/OutputStream;->write([BII)V
.line 7
iget-object p1, p0, Ljg/d;->f:Ljg/u;
int-to-long p2, p3
invoke-virtual {p1, p2, p3}, Ljg/u;->a(J)V
:goto_1
return-void
.end method
.method public writeLine(Ljava/lang/String;)V
.locals 2
.annotation system Ldalvik/annotation/Throws;
value = {
Ljava/io/IOException;
}
.end annotation
if-nez p1, :cond_0
return-void
.line 1
:cond_0
invoke-virtual {p1}, Ljava/lang/String;->length()I
move-result v0
if-lez v0, :cond_2
.line 2
iget-boolean v0, p0, Ljg/d;->d:Z
if-eqz v0, :cond_1
const/4 v0, 0x0
.line 3
:goto_0
invoke-virtual {p1}, Ljava/lang/String;->length()I
move-result v1
if-ge v0, v1, :cond_2
.line 4
invoke-virtual {p1, v0}, Ljava/lang/String;->charAt(I)C
move-result v1
invoke-virtual {p0, v1}, Ljg/d;->write(I)V
add-int/lit8 v0, v0, 0x1
goto :goto_0
.line 5
:cond_1
invoke-static {p1}, Ljava/nio/CharBuffer;->wrap(Ljava/lang/CharSequence;)Ljava/nio/CharBuffer;
move-result-object p1
.line 6
invoke-virtual {p0, p1}, Ljg/d;->g(Ljava/nio/CharBuffer;)V
.line 7
:cond_2
sget-object p1, Ljg/d;->k:[B
invoke-virtual {p0, p1}, Ljg/d;->write([B)V
return-void
.end method
+690
View File
@@ -0,0 +1,690 @@
.class public Ljg/e;
.super Ljava/io/InputStream;
.source "ChunkedInputStream.java"
# annotations
.annotation build Lcz/msebera/android/httpclient/annotation/NotThreadSafe;
.end annotation
# static fields
.field public static final i:I = 0x1
.field public static final j:I = 0x2
.field public static final k:I = 0x3
.field public static final l:I = 0x800
# instance fields
.field public final a:Llg/h;
.field public final b:Lcz/msebera/android/httpclient/util/CharArrayBuffer;
.field public c:I
.field public d:I
.field public e:I
.field public f:Z
.field public g:Z
.field public h:[Ldf/d;
# direct methods
.method public constructor <init>(Llg/h;)V
.locals 2
.line 1
invoke-direct {p0}, Ljava/io/InputStream;-><init>()V
const/4 v0, 0x0
.line 2
iput-boolean v0, p0, Ljg/e;->f:Z
.line 3
iput-boolean v0, p0, Ljg/e;->g:Z
new-array v1, v0, [Ldf/d;
.line 4
iput-object v1, p0, Ljg/e;->h:[Ldf/d;
const-string v1, "Session input buffer"
.line 5
invoke-static {p1, v1}, Lqg/a;->h(Ljava/lang/Object;Ljava/lang/String;)Ljava/lang/Object;
move-result-object p1
check-cast p1, Llg/h;
iput-object p1, p0, Ljg/e;->a:Llg/h;
.line 6
iput v0, p0, Ljg/e;->e:I
.line 7
new-instance p1, Lcz/msebera/android/httpclient/util/CharArrayBuffer;
const/16 v0, 0x10
invoke-direct {p1, v0}, Lcz/msebera/android/httpclient/util/CharArrayBuffer;-><init>(I)V
iput-object p1, p0, Ljg/e;->b:Lcz/msebera/android/httpclient/util/CharArrayBuffer;
const/4 p1, 0x1
.line 8
iput p1, p0, Ljg/e;->c:I
return-void
.end method
# virtual methods
.method public final a()I
.locals 5
.annotation system Ldalvik/annotation/Throws;
value = {
Ljava/io/IOException;
}
.end annotation
.line 1
iget v0, p0, Ljg/e;->c:I
const/4 v1, -0x1
const/4 v2, 0x1
const/4 v3, 0x0
if-eq v0, v2, :cond_3
const/4 v4, 0x3
if-ne v0, v4, :cond_2
.line 2
iget-object v0, p0, Ljg/e;->b:Lcz/msebera/android/httpclient/util/CharArrayBuffer;
invoke-virtual {v0}, Lcz/msebera/android/httpclient/util/CharArrayBuffer;->clear()V
.line 3
iget-object v0, p0, Ljg/e;->a:Llg/h;
iget-object v4, p0, Ljg/e;->b:Lcz/msebera/android/httpclient/util/CharArrayBuffer;
invoke-interface {v0, v4}, Llg/h;->a(Lcz/msebera/android/httpclient/util/CharArrayBuffer;)I
move-result v0
if-ne v0, v1, :cond_0
return v3
.line 4
:cond_0
iget-object v0, p0, Ljg/e;->b:Lcz/msebera/android/httpclient/util/CharArrayBuffer;
invoke-virtual {v0}, Lcz/msebera/android/httpclient/util/CharArrayBuffer;->isEmpty()Z
move-result v0
if-eqz v0, :cond_1
.line 5
iput v2, p0, Ljg/e;->c:I
goto :goto_0
.line 6
:cond_1
new-instance v0, Lcz/msebera/android/httpclient/MalformedChunkCodingException;
const-string v1, "Unexpected content at the end of chunk"
invoke-direct {v0, v1}, Lcz/msebera/android/httpclient/MalformedChunkCodingException;-><init>(Ljava/lang/String;)V
throw v0
.line 7
:cond_2
new-instance v0, Ljava/lang/IllegalStateException;
const-string v1, "Inconsistent codec state"
invoke-direct {v0, v1}, Ljava/lang/IllegalStateException;-><init>(Ljava/lang/String;)V
throw v0
.line 8
:cond_3
:goto_0
iget-object v0, p0, Ljg/e;->b:Lcz/msebera/android/httpclient/util/CharArrayBuffer;
invoke-virtual {v0}, Lcz/msebera/android/httpclient/util/CharArrayBuffer;->clear()V
.line 9
iget-object v0, p0, Ljg/e;->a:Llg/h;
iget-object v2, p0, Ljg/e;->b:Lcz/msebera/android/httpclient/util/CharArrayBuffer;
invoke-interface {v0, v2}, Llg/h;->a(Lcz/msebera/android/httpclient/util/CharArrayBuffer;)I
move-result v0
if-ne v0, v1, :cond_4
return v3
.line 10
:cond_4
iget-object v0, p0, Ljg/e;->b:Lcz/msebera/android/httpclient/util/CharArrayBuffer;
const/16 v1, 0x3b
invoke-virtual {v0, v1}, Lcz/msebera/android/httpclient/util/CharArrayBuffer;->indexOf(I)I
move-result v0
if-gez v0, :cond_5
.line 11
iget-object v0, p0, Ljg/e;->b:Lcz/msebera/android/httpclient/util/CharArrayBuffer;
invoke-virtual {v0}, Lcz/msebera/android/httpclient/util/CharArrayBuffer;->length()I
move-result v0
.line 12
:cond_5
:try_start_0
iget-object v1, p0, Ljg/e;->b:Lcz/msebera/android/httpclient/util/CharArrayBuffer;
invoke-virtual {v1, v3, v0}, Lcz/msebera/android/httpclient/util/CharArrayBuffer;->substringTrimmed(II)Ljava/lang/String;
move-result-object v0
const/16 v1, 0x10
invoke-static {v0, v1}, Ljava/lang/Integer;->parseInt(Ljava/lang/String;I)I
move-result v0
:try_end_0
.catch Ljava/lang/NumberFormatException; {:try_start_0 .. :try_end_0} :catch_0
return v0
.line 13
:catch_0
new-instance v0, Lcz/msebera/android/httpclient/MalformedChunkCodingException;
const-string v1, "Bad chunk header"
invoke-direct {v0, v1}, Lcz/msebera/android/httpclient/MalformedChunkCodingException;-><init>(Ljava/lang/String;)V
throw v0
.end method
.method public available()I
.locals 3
.annotation system Ldalvik/annotation/Throws;
value = {
Ljava/io/IOException;
}
.end annotation
.line 1
iget-object v0, p0, Ljg/e;->a:Llg/h;
instance-of v1, v0, Llg/a;
if-eqz v1, :cond_0
.line 2
check-cast v0, Llg/a;
invoke-interface {v0}, Llg/a;->length()I
move-result v0
.line 3
iget v1, p0, Ljg/e;->d:I
iget v2, p0, Ljg/e;->e:I
sub-int/2addr v1, v2
invoke-static {v0, v1}, Ljava/lang/Math;->min(II)I
move-result v0
return v0
:cond_0
const/4 v0, 0x0
return v0
.end method
.method public b()[Ldf/d;
.locals 1
.line 1
iget-object v0, p0, Ljg/e;->h:[Ldf/d;
invoke-virtual {v0}, [Ldf/d;->clone()Ljava/lang/Object;
move-result-object v0
check-cast v0, [Ldf/d;
return-object v0
.end method
.method public final c()V
.locals 2
.annotation system Ldalvik/annotation/Throws;
value = {
Ljava/io/IOException;
}
.end annotation
.line 1
invoke-virtual {p0}, Ljg/e;->a()I
move-result v0
iput v0, p0, Ljg/e;->d:I
if-ltz v0, :cond_1
const/4 v1, 0x2
.line 2
iput v1, p0, Ljg/e;->c:I
const/4 v1, 0x0
.line 3
iput v1, p0, Ljg/e;->e:I
if-nez v0, :cond_0
const/4 v0, 0x1
.line 4
iput-boolean v0, p0, Ljg/e;->f:Z
.line 5
invoke-virtual {p0}, Ljg/e;->d()V
:cond_0
return-void
.line 6
:cond_1
new-instance v0, Lcz/msebera/android/httpclient/MalformedChunkCodingException;
const-string v1, "Negative chunk size"
invoke-direct {v0, v1}, Lcz/msebera/android/httpclient/MalformedChunkCodingException;-><init>(Ljava/lang/String;)V
throw v0
.end method
.method public close()V
.locals 3
.annotation system Ldalvik/annotation/Throws;
value = {
Ljava/io/IOException;
}
.end annotation
.line 1
iget-boolean v0, p0, Ljg/e;->g:Z
if-nez v0, :cond_1
const/4 v0, 0x1
.line 2
:try_start_0
iget-boolean v1, p0, Ljg/e;->f:Z
if-nez v1, :cond_0
const/16 v1, 0x800
new-array v1, v1, [B
.line 3
:goto_0
invoke-virtual {p0, v1}, Ljg/e;->read([B)I
move-result v2
:try_end_0
.catchall {:try_start_0 .. :try_end_0} :catchall_0
if-ltz v2, :cond_0
goto :goto_0
.line 4
:cond_0
iput-boolean v0, p0, Ljg/e;->f:Z
.line 5
iput-boolean v0, p0, Ljg/e;->g:Z
goto :goto_1
:catchall_0
move-exception v1
.line 6
iput-boolean v0, p0, Ljg/e;->f:Z
.line 7
iput-boolean v0, p0, Ljg/e;->g:Z
throw v1
:cond_1
:goto_1
return-void
.end method
.method public final d()V
.locals 4
.annotation system Ldalvik/annotation/Throws;
value = {
Ljava/io/IOException;
}
.end annotation
.line 1
:try_start_0
iget-object v0, p0, Ljg/e;->a:Llg/h;
const/4 v1, 0x0
const/4 v2, -0x1
.line 2
invoke-static {v0, v2, v2, v1}, Ljg/a;->b(Llg/h;IILmg/q;)[Ldf/d;
move-result-object v0
iput-object v0, p0, Ljg/e;->h:[Ldf/d;
:try_end_0
.catch Lcz/msebera/android/httpclient/HttpException; {:try_start_0 .. :try_end_0} :catch_0
return-void
:catch_0
move-exception v0
.line 3
new-instance v1, Lcz/msebera/android/httpclient/MalformedChunkCodingException;
const-string v2, "Invalid footer: "
invoke-static {v2}, Landroid/support/v4/media/d;->a(Ljava/lang/String;)Ljava/lang/StringBuilder;
move-result-object v2
.line 4
invoke-virtual {v0}, Ljava/lang/Exception;->getMessage()Ljava/lang/String;
move-result-object v3
invoke-virtual {v2, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
invoke-virtual {v2}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
move-result-object v2
invoke-direct {v1, v2}, Lcz/msebera/android/httpclient/MalformedChunkCodingException;-><init>(Ljava/lang/String;)V
.line 5
invoke-virtual {v1, v0}, Ljava/io/IOException;->initCause(Ljava/lang/Throwable;)Ljava/lang/Throwable;
.line 6
throw v1
.end method
.method public read()I
.locals 3
.annotation system Ldalvik/annotation/Throws;
value = {
Ljava/io/IOException;
}
.end annotation
.line 1
iget-boolean v0, p0, Ljg/e;->g:Z
if-nez v0, :cond_3
.line 2
iget-boolean v0, p0, Ljg/e;->f:Z
const/4 v1, -0x1
if-eqz v0, :cond_0
return v1
.line 3
:cond_0
iget v0, p0, Ljg/e;->c:I
const/4 v2, 0x2
if-eq v0, v2, :cond_1
.line 4
invoke-virtual {p0}, Ljg/e;->c()V
.line 5
iget-boolean v0, p0, Ljg/e;->f:Z
if-eqz v0, :cond_1
return v1
.line 6
:cond_1
iget-object v0, p0, Ljg/e;->a:Llg/h;
invoke-interface {v0}, Llg/h;->read()I
move-result v0
if-eq v0, v1, :cond_2
.line 7
iget v1, p0, Ljg/e;->e:I
add-int/lit8 v1, v1, 0x1
iput v1, p0, Ljg/e;->e:I
.line 8
iget v2, p0, Ljg/e;->d:I
if-lt v1, v2, :cond_2
const/4 v1, 0x3
.line 9
iput v1, p0, Ljg/e;->c:I
:cond_2
return v0
.line 10
:cond_3
new-instance v0, Ljava/io/IOException;
const-string v1, "Attempted read from closed stream."
invoke-direct {v0, v1}, Ljava/io/IOException;-><init>(Ljava/lang/String;)V
throw v0
.end method
.method public read([B)I
.locals 2
.annotation system Ldalvik/annotation/Throws;
value = {
Ljava/io/IOException;
}
.end annotation
.line 23
array-length v0, p1
const/4 v1, 0x0
invoke-virtual {p0, p1, v1, v0}, Ljg/e;->read([BII)I
move-result p1
return p1
.end method
.method public read([BII)I
.locals 4
.annotation system Ldalvik/annotation/Throws;
value = {
Ljava/io/IOException;
}
.end annotation
.line 11
iget-boolean v0, p0, Ljg/e;->g:Z
if-nez v0, :cond_4
.line 12
iget-boolean v0, p0, Ljg/e;->f:Z
const/4 v1, -0x1
if-eqz v0, :cond_0
return v1
.line 13
:cond_0
iget v0, p0, Ljg/e;->c:I
const/4 v2, 0x2
if-eq v0, v2, :cond_1
.line 14
invoke-virtual {p0}, Ljg/e;->c()V
.line 15
iget-boolean v0, p0, Ljg/e;->f:Z
if-eqz v0, :cond_1
return v1
.line 16
:cond_1
iget-object v0, p0, Ljg/e;->a:Llg/h;
iget v2, p0, Ljg/e;->d:I
iget v3, p0, Ljg/e;->e:I
sub-int/2addr v2, v3
invoke-static {p3, v2}, Ljava/lang/Math;->min(II)I
move-result p3
invoke-interface {v0, p1, p2, p3}, Llg/h;->read([BII)I
move-result p1
if-eq p1, v1, :cond_3
.line 17
iget p2, p0, Ljg/e;->e:I
add-int/2addr p2, p1
iput p2, p0, Ljg/e;->e:I
.line 18
iget p3, p0, Ljg/e;->d:I
if-lt p2, p3, :cond_2
const/4 p2, 0x3
.line 19
iput p2, p0, Ljg/e;->c:I
:cond_2
return p1
:cond_3
const/4 p1, 0x1
.line 20
iput-boolean p1, p0, Ljg/e;->f:Z
.line 21
new-instance p1, Lcz/msebera/android/httpclient/TruncatedChunkException;
const-string p2, "Truncated chunk ( expected size: "
invoke-static {p2}, Landroid/support/v4/media/d;->a(Ljava/lang/String;)Ljava/lang/StringBuilder;
move-result-object p2
iget p3, p0, Ljg/e;->d:I
invoke-virtual {p2, p3}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;
const-string p3, "; actual size: "
invoke-virtual {p2, p3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
iget p3, p0, Ljg/e;->e:I
const-string v0, ")"
invoke-static {p2, p3, v0}, Landroid/support/v4/media/c;->a(Ljava/lang/StringBuilder;ILjava/lang/String;)Ljava/lang/String;
move-result-object p2
invoke-direct {p1, p2}, Lcz/msebera/android/httpclient/TruncatedChunkException;-><init>(Ljava/lang/String;)V
throw p1
.line 22
:cond_4
new-instance p1, Ljava/io/IOException;
const-string p2, "Attempted read from closed stream."
invoke-direct {p1, p2}, Ljava/io/IOException;-><init>(Ljava/lang/String;)V
throw p1
.end method
+408
View File
@@ -0,0 +1,408 @@
.class public Ljg/f;
.super Ljava/io/OutputStream;
.source "ChunkedOutputStream.java"
# annotations
.annotation build Lcz/msebera/android/httpclient/annotation/NotThreadSafe;
.end annotation
# instance fields
.field public final a:Llg/i;
.field public final b:[B
.field public c:I
.field public d:Z
.field public e:Z
# direct methods
.method public constructor <init>(ILlg/i;)V
.locals 1
.line 3
invoke-direct {p0}, Ljava/io/OutputStream;-><init>()V
const/4 v0, 0x0
.line 4
iput v0, p0, Ljg/f;->c:I
.line 5
iput-boolean v0, p0, Ljg/f;->d:Z
.line 6
iput-boolean v0, p0, Ljg/f;->e:Z
.line 7
new-array p1, p1, [B
iput-object p1, p0, Ljg/f;->b:[B
.line 8
iput-object p2, p0, Ljg/f;->a:Llg/i;
return-void
.end method
.method public constructor <init>(Llg/i;)V
.locals 1
.annotation system Ldalvik/annotation/Throws;
value = {
Ljava/io/IOException;
}
.end annotation
.annotation runtime Ljava/lang/Deprecated;
.end annotation
const/16 v0, 0x800
.line 2
invoke-direct {p0, v0, p1}, Ljg/f;-><init>(ILlg/i;)V
return-void
.end method
.method public constructor <init>(Llg/i;I)V
.locals 0
.annotation system Ldalvik/annotation/Throws;
value = {
Ljava/io/IOException;
}
.end annotation
.annotation runtime Ljava/lang/Deprecated;
.end annotation
.line 1
invoke-direct {p0, p2, p1}, Ljg/f;-><init>(ILlg/i;)V
return-void
.end method
# virtual methods
.method public a()V
.locals 1
.annotation system Ldalvik/annotation/Throws;
value = {
Ljava/io/IOException;
}
.end annotation
.line 1
iget-boolean v0, p0, Ljg/f;->d:Z
if-nez v0, :cond_0
.line 2
invoke-virtual {p0}, Ljg/f;->b()V
.line 3
invoke-virtual {p0}, Ljg/f;->d()V
const/4 v0, 0x1
.line 4
iput-boolean v0, p0, Ljg/f;->d:Z
:cond_0
return-void
.end method
.method public b()V
.locals 4
.annotation system Ldalvik/annotation/Throws;
value = {
Ljava/io/IOException;
}
.end annotation
.line 1
iget v0, p0, Ljg/f;->c:I
if-lez v0, :cond_0
.line 2
iget-object v1, p0, Ljg/f;->a:Llg/i;
invoke-static {v0}, Ljava/lang/Integer;->toHexString(I)Ljava/lang/String;
move-result-object v0
invoke-interface {v1, v0}, Llg/i;->writeLine(Ljava/lang/String;)V
.line 3
iget-object v0, p0, Ljg/f;->a:Llg/i;
iget-object v1, p0, Ljg/f;->b:[B
iget v2, p0, Ljg/f;->c:I
const/4 v3, 0x0
invoke-interface {v0, v1, v3, v2}, Llg/i;->write([BII)V
.line 4
iget-object v0, p0, Ljg/f;->a:Llg/i;
const-string v1, ""
invoke-interface {v0, v1}, Llg/i;->writeLine(Ljava/lang/String;)V
.line 5
iput v3, p0, Ljg/f;->c:I
:cond_0
return-void
.end method
.method public c([BII)V
.locals 4
.annotation system Ldalvik/annotation/Throws;
value = {
Ljava/io/IOException;
}
.end annotation
.line 1
iget-object v0, p0, Ljg/f;->a:Llg/i;
iget v1, p0, Ljg/f;->c:I
add-int/2addr v1, p3
invoke-static {v1}, Ljava/lang/Integer;->toHexString(I)Ljava/lang/String;
move-result-object v1
invoke-interface {v0, v1}, Llg/i;->writeLine(Ljava/lang/String;)V
.line 2
iget-object v0, p0, Ljg/f;->a:Llg/i;
iget-object v1, p0, Ljg/f;->b:[B
iget v2, p0, Ljg/f;->c:I
const/4 v3, 0x0
invoke-interface {v0, v1, v3, v2}, Llg/i;->write([BII)V
.line 3
iget-object v0, p0, Ljg/f;->a:Llg/i;
invoke-interface {v0, p1, p2, p3}, Llg/i;->write([BII)V
.line 4
iget-object p1, p0, Ljg/f;->a:Llg/i;
const-string p2, ""
invoke-interface {p1, p2}, Llg/i;->writeLine(Ljava/lang/String;)V
.line 5
iput v3, p0, Ljg/f;->c:I
return-void
.end method
.method public close()V
.locals 1
.annotation system Ldalvik/annotation/Throws;
value = {
Ljava/io/IOException;
}
.end annotation
.line 1
iget-boolean v0, p0, Ljg/f;->e:Z
if-nez v0, :cond_0
const/4 v0, 0x1
.line 2
iput-boolean v0, p0, Ljg/f;->e:Z
.line 3
invoke-virtual {p0}, Ljg/f;->a()V
.line 4
iget-object v0, p0, Ljg/f;->a:Llg/i;
invoke-interface {v0}, Llg/i;->flush()V
:cond_0
return-void
.end method
.method public d()V
.locals 2
.annotation system Ldalvik/annotation/Throws;
value = {
Ljava/io/IOException;
}
.end annotation
.line 1
iget-object v0, p0, Ljg/f;->a:Llg/i;
const-string v1, "0"
invoke-interface {v0, v1}, Llg/i;->writeLine(Ljava/lang/String;)V
.line 2
iget-object v0, p0, Ljg/f;->a:Llg/i;
const-string v1, ""
invoke-interface {v0, v1}, Llg/i;->writeLine(Ljava/lang/String;)V
return-void
.end method
.method public flush()V
.locals 1
.annotation system Ldalvik/annotation/Throws;
value = {
Ljava/io/IOException;
}
.end annotation
.line 1
invoke-virtual {p0}, Ljg/f;->b()V
.line 2
iget-object v0, p0, Ljg/f;->a:Llg/i;
invoke-interface {v0}, Llg/i;->flush()V
return-void
.end method
.method public write(I)V
.locals 2
.annotation system Ldalvik/annotation/Throws;
value = {
Ljava/io/IOException;
}
.end annotation
.line 1
iget-boolean v0, p0, Ljg/f;->e:Z
if-nez v0, :cond_1
.line 2
iget-object v0, p0, Ljg/f;->b:[B
iget v1, p0, Ljg/f;->c:I
int-to-byte p1, p1
aput-byte p1, v0, v1
add-int/lit8 v1, v1, 0x1
.line 3
iput v1, p0, Ljg/f;->c:I
.line 4
array-length p1, v0
if-ne v1, p1, :cond_0
.line 5
invoke-virtual {p0}, Ljg/f;->b()V
:cond_0
return-void
.line 6
:cond_1
new-instance p1, Ljava/io/IOException;
const-string v0, "Attempted write to closed stream."
invoke-direct {p1, v0}, Ljava/io/IOException;-><init>(Ljava/lang/String;)V
throw p1
.end method
.method public write([B)V
.locals 2
.annotation system Ldalvik/annotation/Throws;
value = {
Ljava/io/IOException;
}
.end annotation
.line 7
array-length v0, p1
const/4 v1, 0x0
invoke-virtual {p0, p1, v1, v0}, Ljg/f;->write([BII)V
return-void
.end method
.method public write([BII)V
.locals 3
.annotation system Ldalvik/annotation/Throws;
value = {
Ljava/io/IOException;
}
.end annotation
.line 8
iget-boolean v0, p0, Ljg/f;->e:Z
if-nez v0, :cond_1
.line 9
iget-object v0, p0, Ljg/f;->b:[B
array-length v1, v0
iget v2, p0, Ljg/f;->c:I
sub-int/2addr v1, v2
if-lt p3, v1, :cond_0
.line 10
invoke-virtual {p0, p1, p2, p3}, Ljg/f;->c([BII)V
goto :goto_0
.line 11
:cond_0
invoke-static {p1, p2, v0, v2, p3}, Ljava/lang/System;->arraycopy(Ljava/lang/Object;ILjava/lang/Object;II)V
.line 12
iget p1, p0, Ljg/f;->c:I
add-int/2addr p1, p3
iput p1, p0, Ljg/f;->c:I
:goto_0
return-void
.line 13
:cond_1
new-instance p1, Ljava/io/IOException;
const-string p2, "Attempted write to closed stream."
invoke-direct {p1, p2}, Ljava/io/IOException;-><init>(Ljava/lang/String;)V
throw p1
.end method
+484
View File
@@ -0,0 +1,484 @@
.class public Ljg/g;
.super Ljava/io/InputStream;
.source "ContentLengthInputStream.java"
# annotations
.annotation build Lcz/msebera/android/httpclient/annotation/NotThreadSafe;
.end annotation
# static fields
.field public static final e:I = 0x800
# instance fields
.field public final a:J
.field public b:J
.field public c:Z
.field public d:Llg/h;
# direct methods
.method public constructor <init>(Llg/h;J)V
.locals 2
.line 1
invoke-direct {p0}, Ljava/io/InputStream;-><init>()V
const-wide/16 v0, 0x0
.line 2
iput-wide v0, p0, Ljg/g;->b:J
const/4 v0, 0x0
.line 3
iput-boolean v0, p0, Ljg/g;->c:Z
const/4 v0, 0x0
.line 4
iput-object v0, p0, Ljg/g;->d:Llg/h;
const-string v0, "Session input buffer"
.line 5
invoke-static {p1, v0}, Lqg/a;->h(Ljava/lang/Object;Ljava/lang/String;)Ljava/lang/Object;
move-result-object p1
check-cast p1, Llg/h;
iput-object p1, p0, Ljg/g;->d:Llg/h;
const-string p1, "Content length"
.line 6
invoke-static {p2, p3, p1}, Lqg/a;->g(JLjava/lang/String;)J
move-result-wide p1
iput-wide p1, p0, Ljg/g;->a:J
return-void
.end method
# virtual methods
.method public available()I
.locals 5
.annotation system Ldalvik/annotation/Throws;
value = {
Ljava/io/IOException;
}
.end annotation
.line 1
iget-object v0, p0, Ljg/g;->d:Llg/h;
instance-of v1, v0, Llg/a;
if-eqz v1, :cond_0
.line 2
check-cast v0, Llg/a;
invoke-interface {v0}, Llg/a;->length()I
move-result v0
.line 3
iget-wide v1, p0, Ljg/g;->a:J
iget-wide v3, p0, Ljg/g;->b:J
sub-long/2addr v1, v3
long-to-int v1, v1
invoke-static {v0, v1}, Ljava/lang/Math;->min(II)I
move-result v0
return v0
:cond_0
const/4 v0, 0x0
return v0
.end method
.method public close()V
.locals 5
.annotation system Ldalvik/annotation/Throws;
value = {
Ljava/io/IOException;
}
.end annotation
.line 1
iget-boolean v0, p0, Ljg/g;->c:Z
if-nez v0, :cond_1
const/4 v0, 0x1
.line 2
:try_start_0
iget-wide v1, p0, Ljg/g;->b:J
iget-wide v3, p0, Ljg/g;->a:J
cmp-long v1, v1, v3
if-gez v1, :cond_0
const/16 v1, 0x800
new-array v1, v1, [B
.line 3
:goto_0
invoke-virtual {p0, v1}, Ljg/g;->read([B)I
move-result v2
:try_end_0
.catchall {:try_start_0 .. :try_end_0} :catchall_0
if-ltz v2, :cond_0
goto :goto_0
.line 4
:cond_0
iput-boolean v0, p0, Ljg/g;->c:Z
goto :goto_1
:catchall_0
move-exception v1
iput-boolean v0, p0, Ljg/g;->c:Z
throw v1
:cond_1
:goto_1
return-void
.end method
.method public read()I
.locals 5
.annotation system Ldalvik/annotation/Throws;
value = {
Ljava/io/IOException;
}
.end annotation
.line 1
iget-boolean v0, p0, Ljg/g;->c:Z
if-nez v0, :cond_3
.line 2
iget-wide v0, p0, Ljg/g;->b:J
iget-wide v2, p0, Ljg/g;->a:J
cmp-long v0, v0, v2
const/4 v1, -0x1
if-ltz v0, :cond_0
return v1
.line 3
:cond_0
iget-object v0, p0, Ljg/g;->d:Llg/h;
invoke-interface {v0}, Llg/h;->read()I
move-result v0
if-ne v0, v1, :cond_2
.line 4
iget-wide v1, p0, Ljg/g;->b:J
iget-wide v3, p0, Ljg/g;->a:J
cmp-long v1, v1, v3
if-ltz v1, :cond_1
goto :goto_0
.line 5
:cond_1
new-instance v0, Lcz/msebera/android/httpclient/ConnectionClosedException;
const-string v1, "Premature end of Content-Length delimited message body (expected: "
invoke-static {v1}, Landroid/support/v4/media/d;->a(Ljava/lang/String;)Ljava/lang/StringBuilder;
move-result-object v1
iget-wide v2, p0, Ljg/g;->a:J
invoke-virtual {v1, v2, v3}, Ljava/lang/StringBuilder;->append(J)Ljava/lang/StringBuilder;
const-string v2, "; received: "
invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
iget-wide v2, p0, Ljg/g;->b:J
invoke-virtual {v1, v2, v3}, Ljava/lang/StringBuilder;->append(J)Ljava/lang/StringBuilder;
invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
move-result-object v1
invoke-direct {v0, v1}, Lcz/msebera/android/httpclient/ConnectionClosedException;-><init>(Ljava/lang/String;)V
throw v0
.line 6
:cond_2
iget-wide v1, p0, Ljg/g;->b:J
const-wide/16 v3, 0x1
add-long/2addr v1, v3
iput-wide v1, p0, Ljg/g;->b:J
:goto_0
return v0
.line 7
:cond_3
new-instance v0, Ljava/io/IOException;
const-string v1, "Attempted read from closed stream."
invoke-direct {v0, v1}, Ljava/io/IOException;-><init>(Ljava/lang/String;)V
throw v0
.end method
.method public read([B)I
.locals 2
.annotation system Ldalvik/annotation/Throws;
value = {
Ljava/io/IOException;
}
.end annotation
.line 15
array-length v0, p1
const/4 v1, 0x0
invoke-virtual {p0, p1, v1, v0}, Ljg/g;->read([BII)I
move-result p1
return p1
.end method
.method public read([BII)I
.locals 8
.annotation system Ldalvik/annotation/Throws;
value = {
Ljava/io/IOException;
}
.end annotation
.line 8
iget-boolean v0, p0, Ljg/g;->c:Z
if-nez v0, :cond_5
.line 9
iget-wide v0, p0, Ljg/g;->b:J
iget-wide v2, p0, Ljg/g;->a:J
cmp-long v4, v0, v2
const/4 v5, -0x1
if-ltz v4, :cond_0
return v5
:cond_0
int-to-long v6, p3
add-long/2addr v6, v0
cmp-long v4, v6, v2
if-lez v4, :cond_1
sub-long/2addr v2, v0
long-to-int p3, v2
.line 10
:cond_1
iget-object v0, p0, Ljg/g;->d:Llg/h;
invoke-interface {v0, p1, p2, p3}, Llg/h;->read([BII)I
move-result p1
if-ne p1, v5, :cond_3
.line 11
iget-wide p2, p0, Ljg/g;->b:J
iget-wide v0, p0, Ljg/g;->a:J
cmp-long p2, p2, v0
if-ltz p2, :cond_2
goto :goto_0
.line 12
:cond_2
new-instance p1, Lcz/msebera/android/httpclient/ConnectionClosedException;
const-string p2, "Premature end of Content-Length delimited message body (expected: "
invoke-static {p2}, Landroid/support/v4/media/d;->a(Ljava/lang/String;)Ljava/lang/StringBuilder;
move-result-object p2
iget-wide v0, p0, Ljg/g;->a:J
invoke-virtual {p2, v0, v1}, Ljava/lang/StringBuilder;->append(J)Ljava/lang/StringBuilder;
const-string p3, "; received: "
invoke-virtual {p2, p3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
iget-wide v0, p0, Ljg/g;->b:J
invoke-virtual {p2, v0, v1}, Ljava/lang/StringBuilder;->append(J)Ljava/lang/StringBuilder;
invoke-virtual {p2}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
move-result-object p2
invoke-direct {p1, p2}, Lcz/msebera/android/httpclient/ConnectionClosedException;-><init>(Ljava/lang/String;)V
throw p1
:cond_3
:goto_0
if-lez p1, :cond_4
.line 13
iget-wide p2, p0, Ljg/g;->b:J
int-to-long v0, p1
add-long/2addr p2, v0
iput-wide p2, p0, Ljg/g;->b:J
:cond_4
return p1
.line 14
:cond_5
new-instance p1, Ljava/io/IOException;
const-string p2, "Attempted read from closed stream."
invoke-direct {p1, p2}, Ljava/io/IOException;-><init>(Ljava/lang/String;)V
throw p1
.end method
.method public skip(J)J
.locals 8
.annotation system Ldalvik/annotation/Throws;
value = {
Ljava/io/IOException;
}
.end annotation
const-wide/16 v0, 0x0
cmp-long v2, p1, v0
if-gtz v2, :cond_0
return-wide v0
:cond_0
const/16 v2, 0x800
new-array v2, v2, [B
.line 1
iget-wide v3, p0, Ljg/g;->a:J
iget-wide v5, p0, Ljg/g;->b:J
sub-long/2addr v3, v5
invoke-static {p1, p2, v3, v4}, Ljava/lang/Math;->min(JJ)J
move-result-wide p1
move-wide v3, v0
:goto_0
cmp-long v5, p1, v0
if-lez v5, :cond_2
const/4 v5, 0x0
const-wide/16 v6, 0x800
.line 2
invoke-static {v6, v7, p1, p2}, Ljava/lang/Math;->min(JJ)J
move-result-wide v6
long-to-int v6, v6
invoke-virtual {p0, v2, v5, v6}, Ljg/g;->read([BII)I
move-result v5
const/4 v6, -0x1
if-ne v5, v6, :cond_1
goto :goto_1
:cond_1
int-to-long v5, v5
add-long/2addr v3, v5
sub-long/2addr p1, v5
goto :goto_0
:cond_2
:goto_1
return-wide v3
.end method
+233
View File
@@ -0,0 +1,233 @@
.class public Ljg/h;
.super Ljava/io/OutputStream;
.source "ContentLengthOutputStream.java"
# annotations
.annotation build Lcz/msebera/android/httpclient/annotation/NotThreadSafe;
.end annotation
# instance fields
.field public final a:Llg/i;
.field public final b:J
.field public c:J
.field public d:Z
# direct methods
.method public constructor <init>(Llg/i;J)V
.locals 2
.line 1
invoke-direct {p0}, Ljava/io/OutputStream;-><init>()V
const-wide/16 v0, 0x0
.line 2
iput-wide v0, p0, Ljg/h;->c:J
const/4 v0, 0x0
.line 3
iput-boolean v0, p0, Ljg/h;->d:Z
const-string v0, "Session output buffer"
.line 4
invoke-static {p1, v0}, Lqg/a;->h(Ljava/lang/Object;Ljava/lang/String;)Ljava/lang/Object;
move-result-object p1
check-cast p1, Llg/i;
iput-object p1, p0, Ljg/h;->a:Llg/i;
const-string p1, "Content length"
.line 5
invoke-static {p2, p3, p1}, Lqg/a;->g(JLjava/lang/String;)J
move-result-wide p1
iput-wide p1, p0, Ljg/h;->b:J
return-void
.end method
# virtual methods
.method public close()V
.locals 1
.annotation system Ldalvik/annotation/Throws;
value = {
Ljava/io/IOException;
}
.end annotation
.line 1
iget-boolean v0, p0, Ljg/h;->d:Z
if-nez v0, :cond_0
const/4 v0, 0x1
.line 2
iput-boolean v0, p0, Ljg/h;->d:Z
.line 3
iget-object v0, p0, Ljg/h;->a:Llg/i;
invoke-interface {v0}, Llg/i;->flush()V
:cond_0
return-void
.end method
.method public flush()V
.locals 1
.annotation system Ldalvik/annotation/Throws;
value = {
Ljava/io/IOException;
}
.end annotation
.line 1
iget-object v0, p0, Ljg/h;->a:Llg/i;
invoke-interface {v0}, Llg/i;->flush()V
return-void
.end method
.method public write(I)V
.locals 4
.annotation system Ldalvik/annotation/Throws;
value = {
Ljava/io/IOException;
}
.end annotation
.line 7
iget-boolean v0, p0, Ljg/h;->d:Z
if-nez v0, :cond_1
.line 8
iget-wide v0, p0, Ljg/h;->c:J
iget-wide v2, p0, Ljg/h;->b:J
cmp-long v0, v0, v2
if-gez v0, :cond_0
.line 9
iget-object v0, p0, Ljg/h;->a:Llg/i;
invoke-interface {v0, p1}, Llg/i;->write(I)V
.line 10
iget-wide v0, p0, Ljg/h;->c:J
const-wide/16 v2, 0x1
add-long/2addr v0, v2
iput-wide v0, p0, Ljg/h;->c:J
:cond_0
return-void
.line 11
:cond_1
new-instance p1, Ljava/io/IOException;
const-string v0, "Attempted write to closed stream."
invoke-direct {p1, v0}, Ljava/io/IOException;-><init>(Ljava/lang/String;)V
throw p1
.end method
.method public write([B)V
.locals 2
.annotation system Ldalvik/annotation/Throws;
value = {
Ljava/io/IOException;
}
.end annotation
.line 6
array-length v0, p1
const/4 v1, 0x0
invoke-virtual {p0, p1, v1, v0}, Ljg/h;->write([BII)V
return-void
.end method
.method public write([BII)V
.locals 5
.annotation system Ldalvik/annotation/Throws;
value = {
Ljava/io/IOException;
}
.end annotation
.line 1
iget-boolean v0, p0, Ljg/h;->d:Z
if-nez v0, :cond_2
.line 2
iget-wide v0, p0, Ljg/h;->c:J
iget-wide v2, p0, Ljg/h;->b:J
cmp-long v4, v0, v2
if-gez v4, :cond_1
sub-long/2addr v2, v0
int-to-long v0, p3
cmp-long v0, v0, v2
if-lez v0, :cond_0
long-to-int p3, v2
.line 3
:cond_0
iget-object v0, p0, Ljg/h;->a:Llg/i;
invoke-interface {v0, p1, p2, p3}, Llg/i;->write([BII)V
.line 4
iget-wide p1, p0, Ljg/h;->c:J
int-to-long v0, p3
add-long/2addr p1, v0
iput-wide p1, p0, Ljg/h;->c:J
:cond_1
return-void
.line 5
:cond_2
new-instance p1, Ljava/io/IOException;
const-string p2, "Attempted write to closed stream."
invoke-direct {p1, p2}, Ljava/io/IOException;-><init>(Ljava/lang/String;)V
throw p1
.end method
+196
View File
@@ -0,0 +1,196 @@
.class public Ljg/i;
.super Ljg/a;
.source "DefaultHttpRequestParser.java"
# annotations
.annotation build Lcz/msebera/android/httpclient/annotation/NotThreadSafe;
.end annotation
.annotation system Ldalvik/annotation/Signature;
value = {
"Ljg/a<",
"Ldf/q;",
">;"
}
.end annotation
# instance fields
.field public final i:Ldf/r;
.field public final j:Lcz/msebera/android/httpclient/util/CharArrayBuffer;
# direct methods
.method public constructor <init>(Llg/h;)V
.locals 2
.line 8
sget-object v0, Lpf/c;->c:Lpf/c;
const/4 v1, 0x0
invoke-direct {p0, p1, v1, v1, v0}, Ljg/i;-><init>(Llg/h;Lmg/q;Ldf/r;Lpf/c;)V
return-void
.end method
.method public constructor <init>(Llg/h;Lmg/q;Ldf/r;Lng/i;)V
.locals 0
.annotation runtime Ljava/lang/Deprecated;
.end annotation
.line 1
invoke-direct {p0, p1, p2, p4}, Ljg/a;-><init>(Llg/h;Lmg/q;Lng/i;)V
const-string p1, "Request factory"
.line 2
invoke-static {p3, p1}, Lqg/a;->h(Ljava/lang/Object;Ljava/lang/String;)Ljava/lang/Object;
move-result-object p1
check-cast p1, Ldf/r;
iput-object p1, p0, Ljg/i;->i:Ldf/r;
.line 3
new-instance p1, Lcz/msebera/android/httpclient/util/CharArrayBuffer;
const/16 p2, 0x80
invoke-direct {p1, p2}, Lcz/msebera/android/httpclient/util/CharArrayBuffer;-><init>(I)V
iput-object p1, p0, Ljg/i;->j:Lcz/msebera/android/httpclient/util/CharArrayBuffer;
return-void
.end method
.method public constructor <init>(Llg/h;Lmg/q;Ldf/r;Lpf/c;)V
.locals 0
.line 4
invoke-direct {p0, p1, p2, p4}, Ljg/a;-><init>(Llg/h;Lmg/q;Lpf/c;)V
if-eqz p3, :cond_0
goto :goto_0
.line 5
:cond_0
sget-object p3, Lcg/k;->a:Lcg/k;
:goto_0
iput-object p3, p0, Ljg/i;->i:Ldf/r;
.line 6
new-instance p1, Lcz/msebera/android/httpclient/util/CharArrayBuffer;
const/16 p2, 0x80
invoke-direct {p1, p2}, Lcz/msebera/android/httpclient/util/CharArrayBuffer;-><init>(I)V
iput-object p1, p0, Ljg/i;->j:Lcz/msebera/android/httpclient/util/CharArrayBuffer;
return-void
.end method
.method public constructor <init>(Llg/h;Lpf/c;)V
.locals 1
const/4 v0, 0x0
.line 7
invoke-direct {p0, p1, v0, v0, p2}, Ljg/i;-><init>(Llg/h;Lmg/q;Ldf/r;Lpf/c;)V
return-void
.end method
# virtual methods
.method public bridge synthetic a(Llg/h;)Ldf/p;
.locals 0
.annotation system Ldalvik/annotation/Throws;
value = {
Ljava/io/IOException;,
Lcz/msebera/android/httpclient/HttpException;,
Lcz/msebera/android/httpclient/ParseException;
}
.end annotation
.line 1
invoke-virtual {p0, p1}, Ljg/i;->d(Llg/h;)Ldf/q;
move-result-object p1
return-object p1
.end method
.method public d(Llg/h;)Ldf/q;
.locals 2
.annotation system Ldalvik/annotation/Throws;
value = {
Ljava/io/IOException;,
Lcz/msebera/android/httpclient/HttpException;,
Lcz/msebera/android/httpclient/ParseException;
}
.end annotation
.line 1
iget-object v0, p0, Ljg/i;->j:Lcz/msebera/android/httpclient/util/CharArrayBuffer;
invoke-virtual {v0}, Lcz/msebera/android/httpclient/util/CharArrayBuffer;->clear()V
.line 2
iget-object v0, p0, Ljg/i;->j:Lcz/msebera/android/httpclient/util/CharArrayBuffer;
invoke-interface {p1, v0}, Llg/h;->a(Lcz/msebera/android/httpclient/util/CharArrayBuffer;)I
move-result p1
const/4 v0, -0x1
if-eq p1, v0, :cond_0
.line 3
new-instance p1, Lmg/r;
const/4 v0, 0x0
iget-object v1, p0, Ljg/i;->j:Lcz/msebera/android/httpclient/util/CharArrayBuffer;
invoke-virtual {v1}, Lcz/msebera/android/httpclient/util/CharArrayBuffer;->length()I
move-result v1
invoke-direct {p1, v0, v1}, Lmg/r;-><init>(II)V
.line 4
iget-object v0, p0, Ljg/a;->d:Lmg/q;
iget-object v1, p0, Ljg/i;->j:Lcz/msebera/android/httpclient/util/CharArrayBuffer;
invoke-interface {v0, v1, p1}, Lmg/q;->a(Lcz/msebera/android/httpclient/util/CharArrayBuffer;Lmg/r;)Ldf/a0;
move-result-object p1
.line 5
iget-object v0, p0, Ljg/i;->i:Ldf/r;
invoke-interface {v0, p1}, Ldf/r;->a(Ldf/a0;)Ldf/q;
move-result-object p1
return-object p1
.line 6
:cond_0
new-instance p1, Lcz/msebera/android/httpclient/ConnectionClosedException;
const-string v0, "Client closed connection"
invoke-direct {p1, v0}, Lcz/msebera/android/httpclient/ConnectionClosedException;-><init>(Ljava/lang/String;)V
throw p1
.end method
+115
View File
@@ -0,0 +1,115 @@
.class public Ljg/j;
.super Ljava/lang/Object;
.source "DefaultHttpRequestParserFactory.java"
# interfaces
.implements Llg/d;
# annotations
.annotation build Lcz/msebera/android/httpclient/annotation/Immutable;
.end annotation
.annotation system Ldalvik/annotation/Signature;
value = {
"Ljava/lang/Object;",
"Llg/d<",
"Ldf/q;",
">;"
}
.end annotation
# static fields
.field public static final c:Ljg/j;
# instance fields
.field public final a:Lmg/q;
.field public final b:Ldf/r;
# direct methods
.method public static constructor <clinit>()V
.locals 1
.line 1
new-instance v0, Ljg/j;
invoke-direct {v0}, Ljg/j;-><init>()V
sput-object v0, Ljg/j;->c:Ljg/j;
return-void
.end method
.method public constructor <init>()V
.locals 1
const/4 v0, 0x0
.line 4
invoke-direct {p0, v0, v0}, Ljg/j;-><init>(Lmg/q;Ldf/r;)V
return-void
.end method
.method public constructor <init>(Lmg/q;Ldf/r;)V
.locals 0
.line 1
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
if-eqz p1, :cond_0
goto :goto_0
.line 2
:cond_0
sget-object p1, Lmg/k;->c:Lmg/k;
:goto_0
iput-object p1, p0, Ljg/j;->a:Lmg/q;
if-eqz p2, :cond_1
goto :goto_1
.line 3
:cond_1
sget-object p2, Lcg/k;->a:Lcg/k;
:goto_1
iput-object p2, p0, Ljg/j;->b:Ldf/r;
return-void
.end method
# virtual methods
.method public a(Llg/h;Lpf/c;)Llg/c;
.locals 3
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Llg/h;",
"Lpf/c;",
")",
"Llg/c<",
"Ldf/q;",
">;"
}
.end annotation
.line 1
new-instance v0, Ljg/i;
iget-object v1, p0, Ljg/j;->a:Lmg/q;
iget-object v2, p0, Ljg/j;->b:Ldf/r;
invoke-direct {v0, p1, v1, v2, p2}, Ljg/i;-><init>(Llg/h;Lmg/q;Ldf/r;Lpf/c;)V
return-object v0
.end method
+85
View File
@@ -0,0 +1,85 @@
.class public Ljg/k;
.super Ljg/b;
.source "DefaultHttpRequestWriter.java"
# annotations
.annotation build Lcz/msebera/android/httpclient/annotation/NotThreadSafe;
.end annotation
.annotation system Ldalvik/annotation/Signature;
value = {
"Ljg/b<",
"Ldf/q;",
">;"
}
.end annotation
# direct methods
.method public constructor <init>(Llg/i;)V
.locals 1
const/4 v0, 0x0
.line 2
invoke-direct {p0, p1, v0}, Ljg/k;-><init>(Llg/i;Lmg/p;)V
return-void
.end method
.method public constructor <init>(Llg/i;Lmg/p;)V
.locals 0
.line 1
invoke-direct {p0, p1, p2}, Ljg/b;-><init>(Llg/i;Lmg/p;)V
return-void
.end method
# virtual methods
.method public bridge synthetic b(Ldf/p;)V
.locals 0
.annotation system Ldalvik/annotation/Throws;
value = {
Ljava/io/IOException;
}
.end annotation
.line 1
check-cast p1, Ldf/q;
invoke-virtual {p0, p1}, Ljg/k;->c(Ldf/q;)V
return-void
.end method
.method public c(Ldf/q;)V
.locals 2
.annotation system Ldalvik/annotation/Throws;
value = {
Ljava/io/IOException;
}
.end annotation
.line 1
iget-object v0, p0, Ljg/b;->c:Lmg/p;
iget-object v1, p0, Ljg/b;->b:Lcz/msebera/android/httpclient/util/CharArrayBuffer;
invoke-interface {p1}, Ldf/q;->getRequestLine()Ldf/a0;
move-result-object p1
invoke-interface {v0, v1, p1}, Lmg/p;->b(Lcz/msebera/android/httpclient/util/CharArrayBuffer;Ldf/a0;)Lcz/msebera/android/httpclient/util/CharArrayBuffer;
.line 2
iget-object p1, p0, Ljg/b;->a:Llg/i;
iget-object v0, p0, Ljg/b;->b:Lcz/msebera/android/httpclient/util/CharArrayBuffer;
invoke-interface {p1, v0}, Llg/i;->a(Lcz/msebera/android/httpclient/util/CharArrayBuffer;)V
return-void
.end method
+99
View File
@@ -0,0 +1,99 @@
.class public Ljg/l;
.super Ljava/lang/Object;
.source "DefaultHttpRequestWriterFactory.java"
# interfaces
.implements Llg/f;
# annotations
.annotation build Lcz/msebera/android/httpclient/annotation/Immutable;
.end annotation
.annotation system Ldalvik/annotation/Signature;
value = {
"Ljava/lang/Object;",
"Llg/f<",
"Ldf/q;",
">;"
}
.end annotation
# static fields
.field public static final b:Ljg/l;
# instance fields
.field public final a:Lmg/p;
# direct methods
.method public static constructor <clinit>()V
.locals 1
.line 1
new-instance v0, Ljg/l;
invoke-direct {v0}, Ljg/l;-><init>()V
sput-object v0, Ljg/l;->b:Ljg/l;
return-void
.end method
.method public constructor <init>()V
.locals 1
const/4 v0, 0x0
.line 3
invoke-direct {p0, v0}, Ljg/l;-><init>(Lmg/p;)V
return-void
.end method
.method public constructor <init>(Lmg/p;)V
.locals 0
.line 1
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
if-eqz p1, :cond_0
goto :goto_0
.line 2
:cond_0
sget-object p1, Lmg/j;->b:Lmg/j;
:goto_0
iput-object p1, p0, Ljg/l;->a:Lmg/p;
return-void
.end method
# virtual methods
.method public a(Llg/i;)Llg/e;
.locals 2
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Llg/i;",
")",
"Llg/e<",
"Ldf/q;",
">;"
}
.end annotation
.line 1
new-instance v0, Ljg/k;
iget-object v1, p0, Ljg/l;->a:Lmg/p;
invoke-direct {v0, p1, v1}, Ljg/k;-><init>(Llg/i;Lmg/p;)V
return-object v0
.end method
+198
View File
@@ -0,0 +1,198 @@
.class public Ljg/m;
.super Ljg/a;
.source "DefaultHttpResponseParser.java"
# annotations
.annotation build Lcz/msebera/android/httpclient/annotation/NotThreadSafe;
.end annotation
.annotation system Ldalvik/annotation/Signature;
value = {
"Ljg/a<",
"Ldf/t;",
">;"
}
.end annotation
# instance fields
.field public final i:Ldf/u;
.field public final j:Lcz/msebera/android/httpclient/util/CharArrayBuffer;
# direct methods
.method public constructor <init>(Llg/h;)V
.locals 2
.line 8
sget-object v0, Lpf/c;->c:Lpf/c;
const/4 v1, 0x0
invoke-direct {p0, p1, v1, v1, v0}, Ljg/m;-><init>(Llg/h;Lmg/q;Ldf/u;Lpf/c;)V
return-void
.end method
.method public constructor <init>(Llg/h;Lmg/q;Ldf/u;Lng/i;)V
.locals 0
.annotation runtime Ljava/lang/Deprecated;
.end annotation
.line 1
invoke-direct {p0, p1, p2, p4}, Ljg/a;-><init>(Llg/h;Lmg/q;Lng/i;)V
const-string p1, "Response factory"
.line 2
invoke-static {p3, p1}, Lqg/a;->h(Ljava/lang/Object;Ljava/lang/String;)Ljava/lang/Object;
move-result-object p1
check-cast p1, Ldf/u;
iput-object p1, p0, Ljg/m;->i:Ldf/u;
.line 3
new-instance p1, Lcz/msebera/android/httpclient/util/CharArrayBuffer;
const/16 p2, 0x80
invoke-direct {p1, p2}, Lcz/msebera/android/httpclient/util/CharArrayBuffer;-><init>(I)V
iput-object p1, p0, Ljg/m;->j:Lcz/msebera/android/httpclient/util/CharArrayBuffer;
return-void
.end method
.method public constructor <init>(Llg/h;Lmg/q;Ldf/u;Lpf/c;)V
.locals 0
.line 4
invoke-direct {p0, p1, p2, p4}, Ljg/a;-><init>(Llg/h;Lmg/q;Lpf/c;)V
if-eqz p3, :cond_0
goto :goto_0
.line 5
:cond_0
sget-object p3, Lcg/l;->b:Lcg/l;
:goto_0
iput-object p3, p0, Ljg/m;->i:Ldf/u;
.line 6
new-instance p1, Lcz/msebera/android/httpclient/util/CharArrayBuffer;
const/16 p2, 0x80
invoke-direct {p1, p2}, Lcz/msebera/android/httpclient/util/CharArrayBuffer;-><init>(I)V
iput-object p1, p0, Ljg/m;->j:Lcz/msebera/android/httpclient/util/CharArrayBuffer;
return-void
.end method
.method public constructor <init>(Llg/h;Lpf/c;)V
.locals 1
const/4 v0, 0x0
.line 7
invoke-direct {p0, p1, v0, v0, p2}, Ljg/m;-><init>(Llg/h;Lmg/q;Ldf/u;Lpf/c;)V
return-void
.end method
# virtual methods
.method public bridge synthetic a(Llg/h;)Ldf/p;
.locals 0
.annotation system Ldalvik/annotation/Throws;
value = {
Ljava/io/IOException;,
Lcz/msebera/android/httpclient/HttpException;,
Lcz/msebera/android/httpclient/ParseException;
}
.end annotation
.line 1
invoke-virtual {p0, p1}, Ljg/m;->d(Llg/h;)Ldf/t;
move-result-object p1
return-object p1
.end method
.method public d(Llg/h;)Ldf/t;
.locals 2
.annotation system Ldalvik/annotation/Throws;
value = {
Ljava/io/IOException;,
Lcz/msebera/android/httpclient/HttpException;,
Lcz/msebera/android/httpclient/ParseException;
}
.end annotation
.line 1
iget-object v0, p0, Ljg/m;->j:Lcz/msebera/android/httpclient/util/CharArrayBuffer;
invoke-virtual {v0}, Lcz/msebera/android/httpclient/util/CharArrayBuffer;->clear()V
.line 2
iget-object v0, p0, Ljg/m;->j:Lcz/msebera/android/httpclient/util/CharArrayBuffer;
invoke-interface {p1, v0}, Llg/h;->a(Lcz/msebera/android/httpclient/util/CharArrayBuffer;)I
move-result p1
const/4 v0, -0x1
if-eq p1, v0, :cond_0
.line 3
new-instance p1, Lmg/r;
const/4 v0, 0x0
iget-object v1, p0, Ljg/m;->j:Lcz/msebera/android/httpclient/util/CharArrayBuffer;
invoke-virtual {v1}, Lcz/msebera/android/httpclient/util/CharArrayBuffer;->length()I
move-result v1
invoke-direct {p1, v0, v1}, Lmg/r;-><init>(II)V
.line 4
iget-object v0, p0, Ljg/a;->d:Lmg/q;
iget-object v1, p0, Ljg/m;->j:Lcz/msebera/android/httpclient/util/CharArrayBuffer;
invoke-interface {v0, v1, p1}, Lmg/q;->c(Lcz/msebera/android/httpclient/util/CharArrayBuffer;Lmg/r;)Ldf/b0;
move-result-object p1
.line 5
iget-object v0, p0, Ljg/m;->i:Ldf/u;
const/4 v1, 0x0
invoke-interface {v0, p1, v1}, Ldf/u;->b(Ldf/b0;Lpg/g;)Ldf/t;
move-result-object p1
return-object p1
.line 6
:cond_0
new-instance p1, Lcz/msebera/android/httpclient/NoHttpResponseException;
const-string v0, "The target server failed to respond"
invoke-direct {p1, v0}, Lcz/msebera/android/httpclient/NoHttpResponseException;-><init>(Ljava/lang/String;)V
throw p1
.end method
+115
View File
@@ -0,0 +1,115 @@
.class public Ljg/n;
.super Ljava/lang/Object;
.source "DefaultHttpResponseParserFactory.java"
# interfaces
.implements Llg/d;
# annotations
.annotation build Lcz/msebera/android/httpclient/annotation/Immutable;
.end annotation
.annotation system Ldalvik/annotation/Signature;
value = {
"Ljava/lang/Object;",
"Llg/d<",
"Ldf/t;",
">;"
}
.end annotation
# static fields
.field public static final c:Ljg/n;
# instance fields
.field public final a:Lmg/q;
.field public final b:Ldf/u;
# direct methods
.method public static constructor <clinit>()V
.locals 1
.line 1
new-instance v0, Ljg/n;
invoke-direct {v0}, Ljg/n;-><init>()V
sput-object v0, Ljg/n;->c:Ljg/n;
return-void
.end method
.method public constructor <init>()V
.locals 1
const/4 v0, 0x0
.line 4
invoke-direct {p0, v0, v0}, Ljg/n;-><init>(Lmg/q;Ldf/u;)V
return-void
.end method
.method public constructor <init>(Lmg/q;Ldf/u;)V
.locals 0
.line 1
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
if-eqz p1, :cond_0
goto :goto_0
.line 2
:cond_0
sget-object p1, Lmg/k;->c:Lmg/k;
:goto_0
iput-object p1, p0, Ljg/n;->a:Lmg/q;
if-eqz p2, :cond_1
goto :goto_1
.line 3
:cond_1
sget-object p2, Lcg/l;->b:Lcg/l;
:goto_1
iput-object p2, p0, Ljg/n;->b:Ldf/u;
return-void
.end method
# virtual methods
.method public a(Llg/h;Lpf/c;)Llg/c;
.locals 3
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Llg/h;",
"Lpf/c;",
")",
"Llg/c<",
"Ldf/t;",
">;"
}
.end annotation
.line 1
new-instance v0, Ljg/m;
iget-object v1, p0, Ljg/n;->a:Lmg/q;
iget-object v2, p0, Ljg/n;->b:Ldf/u;
invoke-direct {v0, p1, v1, v2, p2}, Ljg/m;-><init>(Llg/h;Lmg/q;Ldf/u;Lpf/c;)V
return-object v0
.end method
+85
View File
@@ -0,0 +1,85 @@
.class public Ljg/o;
.super Ljg/b;
.source "DefaultHttpResponseWriter.java"
# annotations
.annotation build Lcz/msebera/android/httpclient/annotation/NotThreadSafe;
.end annotation
.annotation system Ldalvik/annotation/Signature;
value = {
"Ljg/b<",
"Ldf/t;",
">;"
}
.end annotation
# direct methods
.method public constructor <init>(Llg/i;)V
.locals 1
const/4 v0, 0x0
.line 2
invoke-direct {p0, p1, v0}, Ljg/b;-><init>(Llg/i;Lmg/p;)V
return-void
.end method
.method public constructor <init>(Llg/i;Lmg/p;)V
.locals 0
.line 1
invoke-direct {p0, p1, p2}, Ljg/b;-><init>(Llg/i;Lmg/p;)V
return-void
.end method
# virtual methods
.method public bridge synthetic b(Ldf/p;)V
.locals 0
.annotation system Ldalvik/annotation/Throws;
value = {
Ljava/io/IOException;
}
.end annotation
.line 1
check-cast p1, Ldf/t;
invoke-virtual {p0, p1}, Ljg/o;->c(Ldf/t;)V
return-void
.end method
.method public c(Ldf/t;)V
.locals 2
.annotation system Ldalvik/annotation/Throws;
value = {
Ljava/io/IOException;
}
.end annotation
.line 1
iget-object v0, p0, Ljg/b;->c:Lmg/p;
iget-object v1, p0, Ljg/b;->b:Lcz/msebera/android/httpclient/util/CharArrayBuffer;
invoke-interface {p1}, Ldf/t;->getStatusLine()Ldf/b0;
move-result-object p1
invoke-interface {v0, v1, p1}, Lmg/p;->d(Lcz/msebera/android/httpclient/util/CharArrayBuffer;Ldf/b0;)Lcz/msebera/android/httpclient/util/CharArrayBuffer;
.line 2
iget-object p1, p0, Ljg/b;->a:Llg/i;
iget-object v0, p0, Ljg/b;->b:Lcz/msebera/android/httpclient/util/CharArrayBuffer;
invoke-interface {p1, v0}, Llg/i;->a(Lcz/msebera/android/httpclient/util/CharArrayBuffer;)V
return-void
.end method
+99
View File
@@ -0,0 +1,99 @@
.class public Ljg/p;
.super Ljava/lang/Object;
.source "DefaultHttpResponseWriterFactory.java"
# interfaces
.implements Llg/f;
# annotations
.annotation build Lcz/msebera/android/httpclient/annotation/Immutable;
.end annotation
.annotation system Ldalvik/annotation/Signature;
value = {
"Ljava/lang/Object;",
"Llg/f<",
"Ldf/t;",
">;"
}
.end annotation
# static fields
.field public static final b:Ljg/p;
# instance fields
.field public final a:Lmg/p;
# direct methods
.method public static constructor <clinit>()V
.locals 1
.line 1
new-instance v0, Ljg/p;
invoke-direct {v0}, Ljg/p;-><init>()V
sput-object v0, Ljg/p;->b:Ljg/p;
return-void
.end method
.method public constructor <init>()V
.locals 1
const/4 v0, 0x0
.line 3
invoke-direct {p0, v0}, Ljg/p;-><init>(Lmg/p;)V
return-void
.end method
.method public constructor <init>(Lmg/p;)V
.locals 0
.line 1
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
if-eqz p1, :cond_0
goto :goto_0
.line 2
:cond_0
sget-object p1, Lmg/j;->b:Lmg/j;
:goto_0
iput-object p1, p0, Ljg/p;->a:Lmg/p;
return-void
.end method
# virtual methods
.method public a(Llg/i;)Llg/e;
.locals 2
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Llg/i;",
")",
"Llg/e<",
"Ldf/t;",
">;"
}
.end annotation
.line 1
new-instance v0, Ljg/o;
iget-object v1, p0, Ljg/p;->a:Lmg/p;
invoke-direct {v0, p1, v1}, Ljg/o;-><init>(Llg/i;Lmg/p;)V
return-object v0
.end method
+126
View File
@@ -0,0 +1,126 @@
.class public Ljg/q;
.super Ljg/a;
.source "HttpRequestParser.java"
# annotations
.annotation build Lcz/msebera/android/httpclient/annotation/NotThreadSafe;
.end annotation
.annotation system Ldalvik/annotation/Signature;
value = {
"Ljg/a<",
"Ldf/p;",
">;"
}
.end annotation
.annotation runtime Ljava/lang/Deprecated;
.end annotation
# instance fields
.field public final i:Ldf/r;
.field public final j:Lcz/msebera/android/httpclient/util/CharArrayBuffer;
# direct methods
.method public constructor <init>(Llg/h;Lmg/q;Ldf/r;Lng/i;)V
.locals 0
.line 1
invoke-direct {p0, p1, p2, p4}, Ljg/a;-><init>(Llg/h;Lmg/q;Lng/i;)V
const-string p1, "Request factory"
.line 2
invoke-static {p3, p1}, Lqg/a;->h(Ljava/lang/Object;Ljava/lang/String;)Ljava/lang/Object;
move-result-object p1
check-cast p1, Ldf/r;
iput-object p1, p0, Ljg/q;->i:Ldf/r;
.line 3
new-instance p1, Lcz/msebera/android/httpclient/util/CharArrayBuffer;
const/16 p2, 0x80
invoke-direct {p1, p2}, Lcz/msebera/android/httpclient/util/CharArrayBuffer;-><init>(I)V
iput-object p1, p0, Ljg/q;->j:Lcz/msebera/android/httpclient/util/CharArrayBuffer;
return-void
.end method
# virtual methods
.method public a(Llg/h;)Ldf/p;
.locals 2
.annotation system Ldalvik/annotation/Throws;
value = {
Ljava/io/IOException;,
Lcz/msebera/android/httpclient/HttpException;,
Lcz/msebera/android/httpclient/ParseException;
}
.end annotation
.line 1
iget-object v0, p0, Ljg/q;->j:Lcz/msebera/android/httpclient/util/CharArrayBuffer;
invoke-virtual {v0}, Lcz/msebera/android/httpclient/util/CharArrayBuffer;->clear()V
.line 2
iget-object v0, p0, Ljg/q;->j:Lcz/msebera/android/httpclient/util/CharArrayBuffer;
invoke-interface {p1, v0}, Llg/h;->a(Lcz/msebera/android/httpclient/util/CharArrayBuffer;)I
move-result p1
const/4 v0, -0x1
if-eq p1, v0, :cond_0
.line 3
new-instance p1, Lmg/r;
const/4 v0, 0x0
iget-object v1, p0, Ljg/q;->j:Lcz/msebera/android/httpclient/util/CharArrayBuffer;
invoke-virtual {v1}, Lcz/msebera/android/httpclient/util/CharArrayBuffer;->length()I
move-result v1
invoke-direct {p1, v0, v1}, Lmg/r;-><init>(II)V
.line 4
iget-object v0, p0, Ljg/a;->d:Lmg/q;
iget-object v1, p0, Ljg/q;->j:Lcz/msebera/android/httpclient/util/CharArrayBuffer;
invoke-interface {v0, v1, p1}, Lmg/q;->a(Lcz/msebera/android/httpclient/util/CharArrayBuffer;Lmg/r;)Ldf/a0;
move-result-object p1
.line 5
iget-object v0, p0, Ljg/q;->i:Ldf/r;
invoke-interface {v0, p1}, Ldf/r;->a(Ldf/a0;)Ldf/q;
move-result-object p1
return-object p1
.line 6
:cond_0
new-instance p1, Lcz/msebera/android/httpclient/ConnectionClosedException;
const-string v0, "Client closed connection"
invoke-direct {p1, v0}, Lcz/msebera/android/httpclient/ConnectionClosedException;-><init>(Ljava/lang/String;)V
throw p1
.end method
+77
View File
@@ -0,0 +1,77 @@
.class public Ljg/r;
.super Ljg/b;
.source "HttpRequestWriter.java"
# annotations
.annotation build Lcz/msebera/android/httpclient/annotation/NotThreadSafe;
.end annotation
.annotation system Ldalvik/annotation/Signature;
value = {
"Ljg/b<",
"Ldf/q;",
">;"
}
.end annotation
.annotation runtime Ljava/lang/Deprecated;
.end annotation
# direct methods
.method public constructor <init>(Llg/i;Lmg/p;Lng/i;)V
.locals 0
.line 1
invoke-direct {p0, p1, p2, p3}, Ljg/b;-><init>(Llg/i;Lmg/p;Lng/i;)V
return-void
.end method
# virtual methods
.method public bridge synthetic b(Ldf/p;)V
.locals 0
.annotation system Ldalvik/annotation/Throws;
value = {
Ljava/io/IOException;
}
.end annotation
.line 1
check-cast p1, Ldf/q;
invoke-virtual {p0, p1}, Ljg/r;->c(Ldf/q;)V
return-void
.end method
.method public c(Ldf/q;)V
.locals 2
.annotation system Ldalvik/annotation/Throws;
value = {
Ljava/io/IOException;
}
.end annotation
.line 1
iget-object v0, p0, Ljg/b;->c:Lmg/p;
iget-object v1, p0, Ljg/b;->b:Lcz/msebera/android/httpclient/util/CharArrayBuffer;
invoke-interface {p1}, Ldf/q;->getRequestLine()Ldf/a0;
move-result-object p1
invoke-interface {v0, v1, p1}, Lmg/p;->b(Lcz/msebera/android/httpclient/util/CharArrayBuffer;Ldf/a0;)Lcz/msebera/android/httpclient/util/CharArrayBuffer;
.line 2
iget-object p1, p0, Ljg/b;->a:Llg/i;
iget-object v0, p0, Ljg/b;->b:Lcz/msebera/android/httpclient/util/CharArrayBuffer;
invoke-interface {p1, v0}, Llg/i;->a(Lcz/msebera/android/httpclient/util/CharArrayBuffer;)V
return-void
.end method
+128
View File
@@ -0,0 +1,128 @@
.class public Ljg/s;
.super Ljg/a;
.source "HttpResponseParser.java"
# annotations
.annotation build Lcz/msebera/android/httpclient/annotation/NotThreadSafe;
.end annotation
.annotation system Ldalvik/annotation/Signature;
value = {
"Ljg/a<",
"Ldf/p;",
">;"
}
.end annotation
.annotation runtime Ljava/lang/Deprecated;
.end annotation
# instance fields
.field public final i:Ldf/u;
.field public final j:Lcz/msebera/android/httpclient/util/CharArrayBuffer;
# direct methods
.method public constructor <init>(Llg/h;Lmg/q;Ldf/u;Lng/i;)V
.locals 0
.line 1
invoke-direct {p0, p1, p2, p4}, Ljg/a;-><init>(Llg/h;Lmg/q;Lng/i;)V
const-string p1, "Response factory"
.line 2
invoke-static {p3, p1}, Lqg/a;->h(Ljava/lang/Object;Ljava/lang/String;)Ljava/lang/Object;
move-result-object p1
check-cast p1, Ldf/u;
iput-object p1, p0, Ljg/s;->i:Ldf/u;
.line 3
new-instance p1, Lcz/msebera/android/httpclient/util/CharArrayBuffer;
const/16 p2, 0x80
invoke-direct {p1, p2}, Lcz/msebera/android/httpclient/util/CharArrayBuffer;-><init>(I)V
iput-object p1, p0, Ljg/s;->j:Lcz/msebera/android/httpclient/util/CharArrayBuffer;
return-void
.end method
# virtual methods
.method public a(Llg/h;)Ldf/p;
.locals 2
.annotation system Ldalvik/annotation/Throws;
value = {
Ljava/io/IOException;,
Lcz/msebera/android/httpclient/HttpException;,
Lcz/msebera/android/httpclient/ParseException;
}
.end annotation
.line 1
iget-object v0, p0, Ljg/s;->j:Lcz/msebera/android/httpclient/util/CharArrayBuffer;
invoke-virtual {v0}, Lcz/msebera/android/httpclient/util/CharArrayBuffer;->clear()V
.line 2
iget-object v0, p0, Ljg/s;->j:Lcz/msebera/android/httpclient/util/CharArrayBuffer;
invoke-interface {p1, v0}, Llg/h;->a(Lcz/msebera/android/httpclient/util/CharArrayBuffer;)I
move-result p1
const/4 v0, -0x1
if-eq p1, v0, :cond_0
.line 3
new-instance p1, Lmg/r;
const/4 v0, 0x0
iget-object v1, p0, Ljg/s;->j:Lcz/msebera/android/httpclient/util/CharArrayBuffer;
invoke-virtual {v1}, Lcz/msebera/android/httpclient/util/CharArrayBuffer;->length()I
move-result v1
invoke-direct {p1, v0, v1}, Lmg/r;-><init>(II)V
.line 4
iget-object v0, p0, Ljg/a;->d:Lmg/q;
iget-object v1, p0, Ljg/s;->j:Lcz/msebera/android/httpclient/util/CharArrayBuffer;
invoke-interface {v0, v1, p1}, Lmg/q;->c(Lcz/msebera/android/httpclient/util/CharArrayBuffer;Lmg/r;)Ldf/b0;
move-result-object p1
.line 5
iget-object v0, p0, Ljg/s;->i:Ldf/u;
const/4 v1, 0x0
invoke-interface {v0, p1, v1}, Ldf/u;->b(Ldf/b0;Lpg/g;)Ldf/t;
move-result-object p1
return-object p1
.line 6
:cond_0
new-instance p1, Lcz/msebera/android/httpclient/NoHttpResponseException;
const-string v0, "The target server failed to respond"
invoke-direct {p1, v0}, Lcz/msebera/android/httpclient/NoHttpResponseException;-><init>(Ljava/lang/String;)V
throw p1
.end method
+77
View File
@@ -0,0 +1,77 @@
.class public Ljg/t;
.super Ljg/b;
.source "HttpResponseWriter.java"
# annotations
.annotation build Lcz/msebera/android/httpclient/annotation/NotThreadSafe;
.end annotation
.annotation system Ldalvik/annotation/Signature;
value = {
"Ljg/b<",
"Ldf/t;",
">;"
}
.end annotation
.annotation runtime Ljava/lang/Deprecated;
.end annotation
# direct methods
.method public constructor <init>(Llg/i;Lmg/p;Lng/i;)V
.locals 0
.line 1
invoke-direct {p0, p1, p2, p3}, Ljg/b;-><init>(Llg/i;Lmg/p;Lng/i;)V
return-void
.end method
# virtual methods
.method public bridge synthetic b(Ldf/p;)V
.locals 0
.annotation system Ldalvik/annotation/Throws;
value = {
Ljava/io/IOException;
}
.end annotation
.line 1
check-cast p1, Ldf/t;
invoke-virtual {p0, p1}, Ljg/t;->c(Ldf/t;)V
return-void
.end method
.method public c(Ldf/t;)V
.locals 2
.annotation system Ldalvik/annotation/Throws;
value = {
Ljava/io/IOException;
}
.end annotation
.line 1
iget-object v0, p0, Ljg/b;->c:Lmg/p;
iget-object v1, p0, Ljg/b;->b:Lcz/msebera/android/httpclient/util/CharArrayBuffer;
invoke-interface {p1}, Ldf/t;->getStatusLine()Ldf/b0;
move-result-object p1
invoke-interface {v0, v1, p1}, Lmg/p;->d(Lcz/msebera/android/httpclient/util/CharArrayBuffer;Ldf/b0;)Lcz/msebera/android/httpclient/util/CharArrayBuffer;
.line 2
iget-object p1, p0, Ljg/b;->a:Llg/i;
iget-object v0, p0, Ljg/b;->b:Lcz/msebera/android/httpclient/util/CharArrayBuffer;
invoke-interface {p1, v0}, Llg/i;->a(Lcz/msebera/android/httpclient/util/CharArrayBuffer;)V
return-void
.end method
+75
View File
@@ -0,0 +1,75 @@
.class public Ljg/u;
.super Ljava/lang/Object;
.source "HttpTransportMetricsImpl.java"
# interfaces
.implements Llg/g;
# annotations
.annotation build Lcz/msebera/android/httpclient/annotation/NotThreadSafe;
.end annotation
# instance fields
.field public a:J
# direct methods
.method public constructor <init>()V
.locals 2
.line 1
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
const-wide/16 v0, 0x0
.line 2
iput-wide v0, p0, Ljg/u;->a:J
return-void
.end method
# virtual methods
.method public a(J)V
.locals 2
.line 1
iget-wide v0, p0, Ljg/u;->a:J
add-long/2addr v0, p1
iput-wide v0, p0, Ljg/u;->a:J
return-void
.end method
.method public b(J)V
.locals 0
.line 1
iput-wide p1, p0, Ljg/u;->a:J
return-void
.end method
.method public getBytesTransferred()J
.locals 2
.line 1
iget-wide v0, p0, Ljg/u;->a:J
return-wide v0
.end method
.method public reset()V
.locals 2
const-wide/16 v0, 0x0
.line 1
iput-wide v0, p0, Ljg/u;->a:J
return-void
.end method
+145
View File
@@ -0,0 +1,145 @@
.class public Ljg/v;
.super Ljava/io/InputStream;
.source "IdentityInputStream.java"
# annotations
.annotation build Lcz/msebera/android/httpclient/annotation/NotThreadSafe;
.end annotation
# instance fields
.field public final a:Llg/h;
.field public b:Z
# direct methods
.method public constructor <init>(Llg/h;)V
.locals 1
.line 1
invoke-direct {p0}, Ljava/io/InputStream;-><init>()V
const/4 v0, 0x0
.line 2
iput-boolean v0, p0, Ljg/v;->b:Z
const-string v0, "Session input buffer"
.line 3
invoke-static {p1, v0}, Lqg/a;->h(Ljava/lang/Object;Ljava/lang/String;)Ljava/lang/Object;
move-result-object p1
check-cast p1, Llg/h;
iput-object p1, p0, Ljg/v;->a:Llg/h;
return-void
.end method
# virtual methods
.method public available()I
.locals 2
.annotation system Ldalvik/annotation/Throws;
value = {
Ljava/io/IOException;
}
.end annotation
.line 1
iget-object v0, p0, Ljg/v;->a:Llg/h;
instance-of v1, v0, Llg/a;
if-eqz v1, :cond_0
.line 2
check-cast v0, Llg/a;
invoke-interface {v0}, Llg/a;->length()I
move-result v0
return v0
:cond_0
const/4 v0, 0x0
return v0
.end method
.method public close()V
.locals 1
.annotation system Ldalvik/annotation/Throws;
value = {
Ljava/io/IOException;
}
.end annotation
const/4 v0, 0x1
.line 1
iput-boolean v0, p0, Ljg/v;->b:Z
return-void
.end method
.method public read()I
.locals 1
.annotation system Ldalvik/annotation/Throws;
value = {
Ljava/io/IOException;
}
.end annotation
.line 1
iget-boolean v0, p0, Ljg/v;->b:Z
if-eqz v0, :cond_0
const/4 v0, -0x1
return v0
.line 2
:cond_0
iget-object v0, p0, Ljg/v;->a:Llg/h;
invoke-interface {v0}, Llg/h;->read()I
move-result v0
return v0
.end method
.method public read([BII)I
.locals 1
.annotation system Ldalvik/annotation/Throws;
value = {
Ljava/io/IOException;
}
.end annotation
.line 3
iget-boolean v0, p0, Ljg/v;->b:Z
if-eqz v0, :cond_0
const/4 p1, -0x1
return p1
.line 4
:cond_0
iget-object v0, p0, Ljg/v;->a:Llg/h;
invoke-interface {v0, p1, p2, p3}, Llg/h;->read([BII)I
move-result p1
return p1
.end method
+166
View File
@@ -0,0 +1,166 @@
.class public Ljg/w;
.super Ljava/io/OutputStream;
.source "IdentityOutputStream.java"
# annotations
.annotation build Lcz/msebera/android/httpclient/annotation/NotThreadSafe;
.end annotation
# instance fields
.field public final a:Llg/i;
.field public b:Z
# direct methods
.method public constructor <init>(Llg/i;)V
.locals 1
.line 1
invoke-direct {p0}, Ljava/io/OutputStream;-><init>()V
const/4 v0, 0x0
.line 2
iput-boolean v0, p0, Ljg/w;->b:Z
const-string v0, "Session output buffer"
.line 3
invoke-static {p1, v0}, Lqg/a;->h(Ljava/lang/Object;Ljava/lang/String;)Ljava/lang/Object;
move-result-object p1
check-cast p1, Llg/i;
iput-object p1, p0, Ljg/w;->a:Llg/i;
return-void
.end method
# virtual methods
.method public close()V
.locals 1
.annotation system Ldalvik/annotation/Throws;
value = {
Ljava/io/IOException;
}
.end annotation
.line 1
iget-boolean v0, p0, Ljg/w;->b:Z
if-nez v0, :cond_0
const/4 v0, 0x1
.line 2
iput-boolean v0, p0, Ljg/w;->b:Z
.line 3
iget-object v0, p0, Ljg/w;->a:Llg/i;
invoke-interface {v0}, Llg/i;->flush()V
:cond_0
return-void
.end method
.method public flush()V
.locals 1
.annotation system Ldalvik/annotation/Throws;
value = {
Ljava/io/IOException;
}
.end annotation
.line 1
iget-object v0, p0, Ljg/w;->a:Llg/i;
invoke-interface {v0}, Llg/i;->flush()V
return-void
.end method
.method public write(I)V
.locals 1
.annotation system Ldalvik/annotation/Throws;
value = {
Ljava/io/IOException;
}
.end annotation
.line 5
iget-boolean v0, p0, Ljg/w;->b:Z
if-nez v0, :cond_0
.line 6
iget-object v0, p0, Ljg/w;->a:Llg/i;
invoke-interface {v0, p1}, Llg/i;->write(I)V
return-void
.line 7
:cond_0
new-instance p1, Ljava/io/IOException;
const-string v0, "Attempted write to closed stream."
invoke-direct {p1, v0}, Ljava/io/IOException;-><init>(Ljava/lang/String;)V
throw p1
.end method
.method public write([B)V
.locals 2
.annotation system Ldalvik/annotation/Throws;
value = {
Ljava/io/IOException;
}
.end annotation
.line 4
array-length v0, p1
const/4 v1, 0x0
invoke-virtual {p0, p1, v1, v0}, Ljg/w;->write([BII)V
return-void
.end method
.method public write([BII)V
.locals 1
.annotation system Ldalvik/annotation/Throws;
value = {
Ljava/io/IOException;
}
.end annotation
.line 1
iget-boolean v0, p0, Ljg/w;->b:Z
if-nez v0, :cond_0
.line 2
iget-object v0, p0, Ljg/w;->a:Llg/i;
invoke-interface {v0, p1, p2, p3}, Llg/i;->write([BII)V
return-void
.line 3
:cond_0
new-instance p1, Ljava/io/IOException;
const-string p2, "Attempted write to closed stream."
invoke-direct {p1, p2}, Ljava/io/IOException;-><init>(Ljava/lang/String;)V
throw p1
.end method
File diff suppressed because it is too large Load Diff
+742
View File
@@ -0,0 +1,742 @@
.class public Ljg/y;
.super Ljava/lang/Object;
.source "SessionOutputBufferImpl.java"
# interfaces
.implements Llg/i;
.implements Llg/a;
# annotations
.annotation build Lcz/msebera/android/httpclient/annotation/NotThreadSafe;
.end annotation
# static fields
.field public static final g:[B
# instance fields
.field public final a:Ljg/u;
.field public final b:Lcz/msebera/android/httpclient/util/ByteArrayBuffer;
.field public final c:I
.field public final d:Ljava/nio/charset/CharsetEncoder;
.field public e:Ljava/io/OutputStream;
.field public f:Ljava/nio/ByteBuffer;
# direct methods
.method public static constructor <clinit>()V
.locals 1
const/4 v0, 0x2
new-array v0, v0, [B
.line 1
fill-array-data v0, :array_0
sput-object v0, Ljg/y;->g:[B
return-void
nop
:array_0
.array-data 1
0xdt
0xat
.end array-data
.end method
.method public constructor <init>(Ljg/u;I)V
.locals 1
const/4 v0, 0x0
.line 8
invoke-direct {p0, p1, p2, p2, v0}, Ljg/y;-><init>(Ljg/u;IILjava/nio/charset/CharsetEncoder;)V
return-void
.end method
.method public constructor <init>(Ljg/u;IILjava/nio/charset/CharsetEncoder;)V
.locals 1
.line 1
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
const-string v0, "Buffer size"
.line 2
invoke-static {p2, v0}, Lqg/a;->i(ILjava/lang/String;)I
const-string v0, "HTTP transport metrcis"
.line 3
invoke-static {p1, v0}, Lqg/a;->h(Ljava/lang/Object;Ljava/lang/String;)Ljava/lang/Object;
.line 4
iput-object p1, p0, Ljg/y;->a:Ljg/u;
.line 5
new-instance p1, Lcz/msebera/android/httpclient/util/ByteArrayBuffer;
invoke-direct {p1, p2}, Lcz/msebera/android/httpclient/util/ByteArrayBuffer;-><init>(I)V
iput-object p1, p0, Ljg/y;->b:Lcz/msebera/android/httpclient/util/ByteArrayBuffer;
if-ltz p3, :cond_0
goto :goto_0
:cond_0
const/4 p3, 0x0
.line 6
:goto_0
iput p3, p0, Ljg/y;->c:I
.line 7
iput-object p4, p0, Ljg/y;->d:Ljava/nio/charset/CharsetEncoder;
return-void
.end method
# virtual methods
.method public a(Lcz/msebera/android/httpclient/util/CharArrayBuffer;)V
.locals 4
.annotation system Ldalvik/annotation/Throws;
value = {
Ljava/io/IOException;
}
.end annotation
if-nez p1, :cond_0
return-void
.line 1
:cond_0
iget-object v0, p0, Ljg/y;->d:Ljava/nio/charset/CharsetEncoder;
const/4 v1, 0x0
if-nez v0, :cond_3
.line 2
invoke-virtual {p1}, Lcz/msebera/android/httpclient/util/CharArrayBuffer;->length()I
move-result v0
:goto_0
if-lez v0, :cond_4
.line 3
iget-object v2, p0, Ljg/y;->b:Lcz/msebera/android/httpclient/util/ByteArrayBuffer;
invoke-virtual {v2}, Lcz/msebera/android/httpclient/util/ByteArrayBuffer;->capacity()I
move-result v2
iget-object v3, p0, Ljg/y;->b:Lcz/msebera/android/httpclient/util/ByteArrayBuffer;
invoke-virtual {v3}, Lcz/msebera/android/httpclient/util/ByteArrayBuffer;->length()I
move-result v3
sub-int/2addr v2, v3
.line 4
invoke-static {v2, v0}, Ljava/lang/Math;->min(II)I
move-result v2
if-lez v2, :cond_1
.line 5
iget-object v3, p0, Ljg/y;->b:Lcz/msebera/android/httpclient/util/ByteArrayBuffer;
invoke-virtual {v3, p1, v1, v2}, Lcz/msebera/android/httpclient/util/ByteArrayBuffer;->append(Lcz/msebera/android/httpclient/util/CharArrayBuffer;II)V
.line 6
:cond_1
iget-object v3, p0, Ljg/y;->b:Lcz/msebera/android/httpclient/util/ByteArrayBuffer;
invoke-virtual {v3}, Lcz/msebera/android/httpclient/util/ByteArrayBuffer;->isFull()Z
move-result v3
if-eqz v3, :cond_2
.line 7
invoke-virtual {p0}, Ljg/y;->d()V
:cond_2
add-int/2addr v1, v2
sub-int/2addr v0, v2
goto :goto_0
.line 8
:cond_3
invoke-virtual {p1}, Lcz/msebera/android/httpclient/util/CharArrayBuffer;->buffer()[C
move-result-object v0
invoke-virtual {p1}, Lcz/msebera/android/httpclient/util/CharArrayBuffer;->length()I
move-result p1
invoke-static {v0, v1, p1}, Ljava/nio/CharBuffer;->wrap([CII)Ljava/nio/CharBuffer;
move-result-object p1
.line 9
invoke-virtual {p0, p1}, Ljg/y;->i(Ljava/nio/CharBuffer;)V
.line 10
:cond_4
sget-object p1, Ljg/y;->g:[B
invoke-virtual {p0, p1}, Ljg/y;->write([B)V
return-void
.end method
.method public available()I
.locals 2
.line 1
invoke-virtual {p0}, Ljg/y;->b()I
move-result v0
invoke-virtual {p0}, Ljg/y;->length()I
move-result v1
sub-int/2addr v0, v1
return v0
.end method
.method public b()I
.locals 1
.line 1
iget-object v0, p0, Ljg/y;->b:Lcz/msebera/android/httpclient/util/ByteArrayBuffer;
invoke-virtual {v0}, Lcz/msebera/android/httpclient/util/ByteArrayBuffer;->capacity()I
move-result v0
return v0
.end method
.method public c(Ljava/io/OutputStream;)V
.locals 0
.line 1
iput-object p1, p0, Ljg/y;->e:Ljava/io/OutputStream;
return-void
.end method
.method public final d()V
.locals 4
.annotation system Ldalvik/annotation/Throws;
value = {
Ljava/io/IOException;
}
.end annotation
.line 1
iget-object v0, p0, Ljg/y;->b:Lcz/msebera/android/httpclient/util/ByteArrayBuffer;
invoke-virtual {v0}, Lcz/msebera/android/httpclient/util/ByteArrayBuffer;->length()I
move-result v0
if-lez v0, :cond_0
.line 2
iget-object v1, p0, Ljg/y;->b:Lcz/msebera/android/httpclient/util/ByteArrayBuffer;
invoke-virtual {v1}, Lcz/msebera/android/httpclient/util/ByteArrayBuffer;->buffer()[B
move-result-object v1
const/4 v2, 0x0
invoke-virtual {p0, v1, v2, v0}, Ljg/y;->h([BII)V
.line 3
iget-object v1, p0, Ljg/y;->b:Lcz/msebera/android/httpclient/util/ByteArrayBuffer;
invoke-virtual {v1}, Lcz/msebera/android/httpclient/util/ByteArrayBuffer;->clear()V
.line 4
iget-object v1, p0, Ljg/y;->a:Ljg/u;
int-to-long v2, v0
invoke-virtual {v1, v2, v3}, Ljg/u;->a(J)V
:cond_0
return-void
.end method
.method public final e()V
.locals 1
.annotation system Ldalvik/annotation/Throws;
value = {
Ljava/io/IOException;
}
.end annotation
.line 1
iget-object v0, p0, Ljg/y;->e:Ljava/io/OutputStream;
if-eqz v0, :cond_0
.line 2
invoke-virtual {v0}, Ljava/io/OutputStream;->flush()V
:cond_0
return-void
.end method
.method public final f(Ljava/nio/charset/CoderResult;)V
.locals 1
.annotation system Ldalvik/annotation/Throws;
value = {
Ljava/io/IOException;
}
.end annotation
.line 1
invoke-virtual {p1}, Ljava/nio/charset/CoderResult;->isError()Z
move-result v0
if-eqz v0, :cond_0
.line 2
invoke-virtual {p1}, Ljava/nio/charset/CoderResult;->throwException()V
.line 3
:cond_0
iget-object p1, p0, Ljg/y;->f:Ljava/nio/ByteBuffer;
invoke-virtual {p1}, Ljava/nio/ByteBuffer;->flip()Ljava/nio/Buffer;
.line 4
:goto_0
iget-object p1, p0, Ljg/y;->f:Ljava/nio/ByteBuffer;
invoke-virtual {p1}, Ljava/nio/ByteBuffer;->hasRemaining()Z
move-result p1
if-eqz p1, :cond_1
.line 5
iget-object p1, p0, Ljg/y;->f:Ljava/nio/ByteBuffer;
invoke-virtual {p1}, Ljava/nio/ByteBuffer;->get()B
move-result p1
invoke-virtual {p0, p1}, Ljg/y;->write(I)V
goto :goto_0
.line 6
:cond_1
iget-object p1, p0, Ljg/y;->f:Ljava/nio/ByteBuffer;
invoke-virtual {p1}, Ljava/nio/ByteBuffer;->compact()Ljava/nio/ByteBuffer;
return-void
.end method
.method public flush()V
.locals 0
.annotation system Ldalvik/annotation/Throws;
value = {
Ljava/io/IOException;
}
.end annotation
.line 1
invoke-virtual {p0}, Ljg/y;->d()V
.line 2
invoke-virtual {p0}, Ljg/y;->e()V
return-void
.end method
.method public g()Z
.locals 1
.line 1
iget-object v0, p0, Ljg/y;->e:Ljava/io/OutputStream;
if-eqz v0, :cond_0
const/4 v0, 0x1
goto :goto_0
:cond_0
const/4 v0, 0x0
:goto_0
return v0
.end method
.method public getMetrics()Llg/g;
.locals 1
.line 1
iget-object v0, p0, Ljg/y;->a:Ljg/u;
return-object v0
.end method
.method public final h([BII)V
.locals 2
.annotation system Ldalvik/annotation/Throws;
value = {
Ljava/io/IOException;
}
.end annotation
.line 1
iget-object v0, p0, Ljg/y;->e:Ljava/io/OutputStream;
const-string v1, "Output stream"
invoke-static {v0, v1}, Lqg/b;->e(Ljava/lang/Object;Ljava/lang/String;)V
.line 2
iget-object v0, p0, Ljg/y;->e:Ljava/io/OutputStream;
invoke-virtual {v0, p1, p2, p3}, Ljava/io/OutputStream;->write([BII)V
return-void
.end method
.method public final i(Ljava/nio/CharBuffer;)V
.locals 3
.annotation system Ldalvik/annotation/Throws;
value = {
Ljava/io/IOException;
}
.end annotation
.line 1
invoke-virtual {p1}, Ljava/nio/CharBuffer;->hasRemaining()Z
move-result v0
if-nez v0, :cond_0
return-void
.line 2
:cond_0
iget-object v0, p0, Ljg/y;->f:Ljava/nio/ByteBuffer;
if-nez v0, :cond_1
const/16 v0, 0x400
.line 3
invoke-static {v0}, Ljava/nio/ByteBuffer;->allocate(I)Ljava/nio/ByteBuffer;
move-result-object v0
iput-object v0, p0, Ljg/y;->f:Ljava/nio/ByteBuffer;
.line 4
:cond_1
iget-object v0, p0, Ljg/y;->d:Ljava/nio/charset/CharsetEncoder;
invoke-virtual {v0}, Ljava/nio/charset/CharsetEncoder;->reset()Ljava/nio/charset/CharsetEncoder;
.line 5
:goto_0
invoke-virtual {p1}, Ljava/nio/CharBuffer;->hasRemaining()Z
move-result v0
if-eqz v0, :cond_2
.line 6
iget-object v0, p0, Ljg/y;->d:Ljava/nio/charset/CharsetEncoder;
iget-object v1, p0, Ljg/y;->f:Ljava/nio/ByteBuffer;
const/4 v2, 0x1
invoke-virtual {v0, p1, v1, v2}, Ljava/nio/charset/CharsetEncoder;->encode(Ljava/nio/CharBuffer;Ljava/nio/ByteBuffer;Z)Ljava/nio/charset/CoderResult;
move-result-object v0
.line 7
invoke-virtual {p0, v0}, Ljg/y;->f(Ljava/nio/charset/CoderResult;)V
goto :goto_0
.line 8
:cond_2
iget-object p1, p0, Ljg/y;->d:Ljava/nio/charset/CharsetEncoder;
iget-object v0, p0, Ljg/y;->f:Ljava/nio/ByteBuffer;
invoke-virtual {p1, v0}, Ljava/nio/charset/CharsetEncoder;->flush(Ljava/nio/ByteBuffer;)Ljava/nio/charset/CoderResult;
move-result-object p1
.line 9
invoke-virtual {p0, p1}, Ljg/y;->f(Ljava/nio/charset/CoderResult;)V
.line 10
iget-object p1, p0, Ljg/y;->f:Ljava/nio/ByteBuffer;
invoke-virtual {p1}, Ljava/nio/ByteBuffer;->clear()Ljava/nio/Buffer;
return-void
.end method
.method public length()I
.locals 1
.line 1
iget-object v0, p0, Ljg/y;->b:Lcz/msebera/android/httpclient/util/ByteArrayBuffer;
invoke-virtual {v0}, Lcz/msebera/android/httpclient/util/ByteArrayBuffer;->length()I
move-result v0
return v0
.end method
.method public write(I)V
.locals 1
.annotation system Ldalvik/annotation/Throws;
value = {
Ljava/io/IOException;
}
.end annotation
.line 9
iget v0, p0, Ljg/y;->c:I
if-lez v0, :cond_1
.line 10
iget-object v0, p0, Ljg/y;->b:Lcz/msebera/android/httpclient/util/ByteArrayBuffer;
invoke-virtual {v0}, Lcz/msebera/android/httpclient/util/ByteArrayBuffer;->isFull()Z
move-result v0
if-eqz v0, :cond_0
.line 11
invoke-virtual {p0}, Ljg/y;->d()V
.line 12
:cond_0
iget-object v0, p0, Ljg/y;->b:Lcz/msebera/android/httpclient/util/ByteArrayBuffer;
invoke-virtual {v0, p1}, Lcz/msebera/android/httpclient/util/ByteArrayBuffer;->append(I)V
goto :goto_0
.line 13
:cond_1
invoke-virtual {p0}, Ljg/y;->d()V
.line 14
iget-object v0, p0, Ljg/y;->e:Ljava/io/OutputStream;
invoke-virtual {v0, p1}, Ljava/io/OutputStream;->write(I)V
:goto_0
return-void
.end method
.method public write([B)V
.locals 2
.annotation system Ldalvik/annotation/Throws;
value = {
Ljava/io/IOException;
}
.end annotation
if-nez p1, :cond_0
return-void
:cond_0
const/4 v0, 0x0
.line 8
array-length v1, p1
invoke-virtual {p0, p1, v0, v1}, Ljg/y;->write([BII)V
return-void
.end method
.method public write([BII)V
.locals 2
.annotation system Ldalvik/annotation/Throws;
value = {
Ljava/io/IOException;
}
.end annotation
if-nez p1, :cond_0
return-void
.line 1
:cond_0
iget v0, p0, Ljg/y;->c:I
if-gt p3, v0, :cond_3
iget-object v0, p0, Ljg/y;->b:Lcz/msebera/android/httpclient/util/ByteArrayBuffer;
invoke-virtual {v0}, Lcz/msebera/android/httpclient/util/ByteArrayBuffer;->capacity()I
move-result v0
if-le p3, v0, :cond_1
goto :goto_0
.line 2
:cond_1
iget-object v0, p0, Ljg/y;->b:Lcz/msebera/android/httpclient/util/ByteArrayBuffer;
invoke-virtual {v0}, Lcz/msebera/android/httpclient/util/ByteArrayBuffer;->capacity()I
move-result v0
iget-object v1, p0, Ljg/y;->b:Lcz/msebera/android/httpclient/util/ByteArrayBuffer;
invoke-virtual {v1}, Lcz/msebera/android/httpclient/util/ByteArrayBuffer;->length()I
move-result v1
sub-int/2addr v0, v1
if-le p3, v0, :cond_2
.line 3
invoke-virtual {p0}, Ljg/y;->d()V
.line 4
:cond_2
iget-object v0, p0, Ljg/y;->b:Lcz/msebera/android/httpclient/util/ByteArrayBuffer;
invoke-virtual {v0, p1, p2, p3}, Lcz/msebera/android/httpclient/util/ByteArrayBuffer;->append([BII)V
goto :goto_1
.line 5
:cond_3
:goto_0
invoke-virtual {p0}, Ljg/y;->d()V
.line 6
invoke-virtual {p0, p1, p2, p3}, Ljg/y;->h([BII)V
.line 7
iget-object p1, p0, Ljg/y;->a:Ljg/u;
int-to-long p2, p3
invoke-virtual {p1, p2, p3}, Ljg/u;->a(J)V
:goto_1
return-void
.end method
.method public writeLine(Ljava/lang/String;)V
.locals 2
.annotation system Ldalvik/annotation/Throws;
value = {
Ljava/io/IOException;
}
.end annotation
if-nez p1, :cond_0
return-void
.line 1
:cond_0
invoke-virtual {p1}, Ljava/lang/String;->length()I
move-result v0
if-lez v0, :cond_2
.line 2
iget-object v0, p0, Ljg/y;->d:Ljava/nio/charset/CharsetEncoder;
if-nez v0, :cond_1
const/4 v0, 0x0
.line 3
:goto_0
invoke-virtual {p1}, Ljava/lang/String;->length()I
move-result v1
if-ge v0, v1, :cond_2
.line 4
invoke-virtual {p1, v0}, Ljava/lang/String;->charAt(I)C
move-result v1
invoke-virtual {p0, v1}, Ljg/y;->write(I)V
add-int/lit8 v0, v0, 0x1
goto :goto_0
.line 5
:cond_1
invoke-static {p1}, Ljava/nio/CharBuffer;->wrap(Ljava/lang/CharSequence;)Ljava/nio/CharBuffer;
move-result-object p1
.line 6
invoke-virtual {p0, p1}, Ljg/y;->i(Ljava/nio/CharBuffer;)V
.line 7
:cond_2
sget-object p1, Ljg/y;->g:[B
invoke-virtual {p0, p1}, Ljg/y;->write([B)V
return-void
.end method
+174
View File
@@ -0,0 +1,174 @@
.class public Ljg/z;
.super Ljg/c;
.source "SocketInputBuffer.java"
# interfaces
.implements Llg/b;
# annotations
.annotation build Lcz/msebera/android/httpclient/annotation/NotThreadSafe;
.end annotation
.annotation runtime Ljava/lang/Deprecated;
.end annotation
# instance fields
.field public final o:Ljava/net/Socket;
.field public p:Z
# direct methods
.method public constructor <init>(Ljava/net/Socket;ILng/i;)V
.locals 1
.annotation system Ldalvik/annotation/Throws;
value = {
Ljava/io/IOException;
}
.end annotation
.line 1
invoke-direct {p0}, Ljg/c;-><init>()V
const-string v0, "Socket"
.line 2
invoke-static {p1, v0}, Lqg/a;->h(Ljava/lang/Object;Ljava/lang/String;)Ljava/lang/Object;
.line 3
iput-object p1, p0, Ljg/z;->o:Ljava/net/Socket;
const/4 v0, 0x0
.line 4
iput-boolean v0, p0, Ljg/z;->p:Z
if-gez p2, :cond_0
.line 5
invoke-virtual {p1}, Ljava/net/Socket;->getReceiveBufferSize()I
move-result p2
:cond_0
const/16 v0, 0x400
if-ge p2, v0, :cond_1
move p2, v0
.line 6
:cond_1
invoke-virtual {p1}, Ljava/net/Socket;->getInputStream()Ljava/io/InputStream;
move-result-object p1
invoke-virtual {p0, p1, p2, p3}, Ljg/c;->h(Ljava/io/InputStream;ILng/i;)V
return-void
.end method
# virtual methods
.method public e()I
.locals 2
.annotation system Ldalvik/annotation/Throws;
value = {
Ljava/io/IOException;
}
.end annotation
.line 1
invoke-super {p0}, Ljg/c;->e()I
move-result v0
const/4 v1, -0x1
if-ne v0, v1, :cond_0
const/4 v1, 0x1
goto :goto_0
:cond_0
const/4 v1, 0x0
.line 2
:goto_0
iput-boolean v1, p0, Ljg/z;->p:Z
return v0
.end method
.method public isDataAvailable(I)Z
.locals 2
.annotation system Ldalvik/annotation/Throws;
value = {
Ljava/io/IOException;
}
.end annotation
.line 1
invoke-virtual {p0}, Ljg/c;->g()Z
move-result v0
if-nez v0, :cond_0
.line 2
iget-object v0, p0, Ljg/z;->o:Ljava/net/Socket;
invoke-virtual {v0}, Ljava/net/Socket;->getSoTimeout()I
move-result v0
.line 3
:try_start_0
iget-object v1, p0, Ljg/z;->o:Ljava/net/Socket;
invoke-virtual {v1, p1}, Ljava/net/Socket;->setSoTimeout(I)V
.line 4
invoke-virtual {p0}, Ljg/z;->e()I
.line 5
invoke-virtual {p0}, Ljg/c;->g()Z
move-result p1
:try_end_0
.catchall {:try_start_0 .. :try_end_0} :catchall_0
.line 6
iget-object v1, p0, Ljg/z;->o:Ljava/net/Socket;
invoke-virtual {v1, v0}, Ljava/net/Socket;->setSoTimeout(I)V
move v0, p1
goto :goto_0
:catchall_0
move-exception p1
iget-object v1, p0, Ljg/z;->o:Ljava/net/Socket;
invoke-virtual {v1, v0}, Ljava/net/Socket;->setSoTimeout(I)V
throw p1
:cond_0
:goto_0
return v0
.end method
.method public isEof()Z
.locals 1
.line 1
iget-boolean v0, p0, Ljg/z;->p:Z
return v0
.end method