a$c.smali 3.7 KB
.class public final Lb/h0/h/a$c;
.super Ljava/lang/Object;

# interfaces
.implements Lc/w;


# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
    value = Lb/h0/h/a;
.end annotation

.annotation system Ldalvik/annotation/InnerClass;
    accessFlags = 0x11
    name = "c"
.end annotation


# instance fields
.field public final a:Lc/l;

.field public b:Z

.field public final synthetic c:Lb/h0/h/a;


# direct methods
.method public constructor <init>(Lb/h0/h/a;)V
    .locals 1

    iput-object p1, p0, Lb/h0/h/a$c;->c:Lb/h0/h/a;

    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    new-instance v0, Lc/l;

    iget-object p1, p1, Lb/h0/h/a;->d:Lc/g;

    invoke-interface {p1}, Lc/w;->d()Lc/y;

    move-result-object p1

    invoke-direct {v0, p1}, Lc/l;-><init>(Lc/y;)V

    iput-object v0, p0, Lb/h0/h/a$c;->a:Lc/l;

    return-void
.end method


# virtual methods
.method public a(Lc/f;J)V
    .locals 2

    iget-boolean v0, p0, Lb/h0/h/a$c;->b:Z

    if-nez v0, :cond_1

    const-wide/16 v0, 0x0

    cmp-long v0, p2, v0

    if-nez v0, :cond_0

    return-void

    :cond_0
    iget-object v0, p0, Lb/h0/h/a$c;->c:Lb/h0/h/a;

    iget-object v0, v0, Lb/h0/h/a;->d:Lc/g;

    invoke-interface {v0, p2, p3}, Lc/g;->a(J)Lc/g;

    iget-object v0, p0, Lb/h0/h/a$c;->c:Lb/h0/h/a;

    iget-object v0, v0, Lb/h0/h/a;->d:Lc/g;

    const-string v1, "\r\n"

    invoke-interface {v0, v1}, Lc/g;->a(Ljava/lang/String;)Lc/g;

    iget-object v0, p0, Lb/h0/h/a$c;->c:Lb/h0/h/a;

    iget-object v0, v0, Lb/h0/h/a;->d:Lc/g;

    invoke-interface {v0, p1, p2, p3}, Lc/w;->a(Lc/f;J)V

    iget-object p1, p0, Lb/h0/h/a$c;->c:Lb/h0/h/a;

    iget-object p1, p1, Lb/h0/h/a;->d:Lc/g;

    invoke-interface {p1, v1}, Lc/g;->a(Ljava/lang/String;)Lc/g;

    return-void

    :cond_1
    new-instance p1, Ljava/lang/IllegalStateException;

    const-string p2, "closed"

    invoke-direct {p1, p2}, Ljava/lang/IllegalStateException;-><init>(Ljava/lang/String;)V

    throw p1
.end method

.method public declared-synchronized close()V
    .locals 2

    monitor-enter p0

    :try_start_0
    iget-boolean v0, p0, Lb/h0/h/a$c;->b:Z
    :try_end_0
    .catchall {:try_start_0 .. :try_end_0} :catchall_0

    if-eqz v0, :cond_0

    monitor-exit p0

    return-void

    :cond_0
    const/4 v0, 0x1

    :try_start_1
    iput-boolean v0, p0, Lb/h0/h/a$c;->b:Z

    iget-object v0, p0, Lb/h0/h/a$c;->c:Lb/h0/h/a;

    iget-object v0, v0, Lb/h0/h/a;->d:Lc/g;

    const-string v1, "0\r\n\r\n"

    invoke-interface {v0, v1}, Lc/g;->a(Ljava/lang/String;)Lc/g;

    iget-object v0, p0, Lb/h0/h/a$c;->c:Lb/h0/h/a;

    iget-object v1, p0, Lb/h0/h/a$c;->a:Lc/l;

    invoke-virtual {v0, v1}, Lb/h0/h/a;->a(Lc/l;)V

    iget-object v0, p0, Lb/h0/h/a$c;->c:Lb/h0/h/a;

    const/4 v1, 0x3

    iput v1, v0, Lb/h0/h/a;->e:I
    :try_end_1
    .catchall {:try_start_1 .. :try_end_1} :catchall_0

    monitor-exit p0

    return-void

    :catchall_0
    move-exception v0

    monitor-exit p0

    throw v0
.end method

.method public d()Lc/y;
    .locals 1

    iget-object v0, p0, Lb/h0/h/a$c;->a:Lc/l;

    return-object v0
.end method

.method public declared-synchronized flush()V
    .locals 1

    monitor-enter p0

    :try_start_0
    iget-boolean v0, p0, Lb/h0/h/a$c;->b:Z
    :try_end_0
    .catchall {:try_start_0 .. :try_end_0} :catchall_0

    if-eqz v0, :cond_0

    monitor-exit p0

    return-void

    :cond_0
    :try_start_1
    iget-object v0, p0, Lb/h0/h/a$c;->c:Lb/h0/h/a;

    iget-object v0, v0, Lb/h0/h/a;->d:Lc/g;

    invoke-interface {v0}, Lc/g;->flush()V
    :try_end_1
    .catchall {:try_start_1 .. :try_end_1} :catchall_0

    monitor-exit p0

    return-void

    :catchall_0
    move-exception v0

    monitor-exit p0

    throw v0
.end method