h.smali

.class final Lcom/squareup/okhttp/internal/http/h;
.super Ljava/lang/Object;
.source "Http1xStream.java"

# interfaces
.implements Lokio/r;


# instance fields
.field private final bzY:Lokio/j;

.field private synthetic bzZ:Lcom/squareup/okhttp/internal/http/f;

.field private closed:Z


# direct methods
.method private constructor <init>(Lcom/squareup/okhttp/internal/http/f;)V
    .registers 4

    .prologue
    .line 311
    iput-object p1, p0, Lcom/squareup/okhttp/internal/http/h;->bzZ:Lcom/squareup/okhttp/internal/http/f;

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

    .line 312
    new-instance v0, Lokio/j;

    iget-object v1, p0, Lcom/squareup/okhttp/internal/http/h;->bzZ:Lcom/squareup/okhttp/internal/http/f;

    .line 1061
    iget-object v1, v1, Lcom/squareup/okhttp/internal/http/f;->byu:Lokio/e;

    .line 312
    invoke-interface {v1}, Lokio/e;->timeout()Lokio/t;

    move-result-object v1

    invoke-direct {v0, v1}, Lokio/j;-><init>(Lokio/t;)V

    iput-object v0, p0, Lcom/squareup/okhttp/internal/http/h;->bzY:Lokio/j;

    return-void
.end method

.method synthetic constructor <init>(Lcom/squareup/okhttp/internal/http/f;B)V
    .registers 3

    .prologue
    .line 311
    invoke-direct {p0, p1}, Lcom/squareup/okhttp/internal/http/h;-><init>(Lcom/squareup/okhttp/internal/http/f;)V

    return-void
.end method


# virtual methods
.method public final a(Lokio/d;J)V
    .registers 6

    .prologue
    .line 320
    iget-boolean v0, p0, Lcom/squareup/okhttp/internal/http/h;->closed:Z

    if-eqz v0, :cond_c

    new-instance v0, Ljava/lang/IllegalStateException;

    const-string v1, "closed"

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

    throw v0

    .line 321
    :cond_c
    const-wide/16 v0, 0x0

    cmp-long v0, p2, v0

    if-nez v0, :cond_13

    .line 327
    :goto_12
    return-void

    .line 323
    :cond_13
    iget-object v0, p0, Lcom/squareup/okhttp/internal/http/h;->bzZ:Lcom/squareup/okhttp/internal/http/f;

    .line 2061
    iget-object v0, v0, Lcom/squareup/okhttp/internal/http/f;->byu:Lokio/e;

    .line 323
    invoke-interface {v0, p2, p3}, Lokio/e;->ab(J)Lokio/e;

    .line 324
    iget-object v0, p0, Lcom/squareup/okhttp/internal/http/h;->bzZ:Lcom/squareup/okhttp/internal/http/f;

    .line 3061
    iget-object v0, v0, Lcom/squareup/okhttp/internal/http/f;->byu:Lokio/e;

    .line 324
    const-string v1, "\r\n"

    invoke-interface {v0, v1}, Lokio/e;->hV(Ljava/lang/String;)Lokio/e;

    .line 325
    iget-object v0, p0, Lcom/squareup/okhttp/internal/http/h;->bzZ:Lcom/squareup/okhttp/internal/http/f;

    .line 4061
    iget-object v0, v0, Lcom/squareup/okhttp/internal/http/f;->byu:Lokio/e;

    .line 325
    invoke-interface {v0, p1, p2, p3}, Lokio/e;->a(Lokio/d;J)V

    .line 326
    iget-object v0, p0, Lcom/squareup/okhttp/internal/http/h;->bzZ:Lcom/squareup/okhttp/internal/http/f;

    .line 5061
    iget-object v0, v0, Lcom/squareup/okhttp/internal/http/f;->byu:Lokio/e;

    .line 326
    const-string v1, "\r\n"

    invoke-interface {v0, v1}, Lokio/e;->hV(Ljava/lang/String;)Lokio/e;

    goto :goto_12
.end method

.method public final declared-synchronized close()V
    .registers 3

    .prologue
    .line 335
    monitor-enter p0

    :try_start_1
    iget-boolean v0, p0, Lcom/squareup/okhttp/internal/http/h;->closed:Z
    :try_end_3
    .catchall {:try_start_1 .. :try_end_3} :catchall_1e

    if-eqz v0, :cond_7

    .line 340
    :goto_5
    monitor-exit p0

    return-void

    .line 336
    :cond_7
    const/4 v0, 0x1

    :try_start_8
    iput-boolean v0, p0, Lcom/squareup/okhttp/internal/http/h;->closed:Z

    .line 337
    iget-object v0, p0, Lcom/squareup/okhttp/internal/http/h;->bzZ:Lcom/squareup/okhttp/internal/http/f;

    .line 7061
    iget-object v0, v0, Lcom/squareup/okhttp/internal/http/f;->byu:Lokio/e;

    .line 337
    const-string v1, "0\r\n\r\n"

    invoke-interface {v0, v1}, Lokio/e;->hV(Ljava/lang/String;)Lokio/e;

    .line 338
    iget-object v0, p0, Lcom/squareup/okhttp/internal/http/h;->bzY:Lokio/j;

    invoke-static {v0}, Lcom/squareup/okhttp/internal/http/f;->a(Lokio/j;)V

    .line 339
    iget-object v0, p0, Lcom/squareup/okhttp/internal/http/h;->bzZ:Lcom/squareup/okhttp/internal/http/f;

    .line 8061
    const/4 v1, 0x3

    iput v1, v0, Lcom/squareup/okhttp/internal/http/f;->state:I
    :try_end_1d
    .catchall {:try_start_8 .. :try_end_1d} :catchall_1e

    goto :goto_5

    .line 335
    :catchall_1e
    move-exception v0

    monitor-exit p0

    throw v0
.end method

.method public final declared-synchronized flush()V
    .registers 2

    .prologue
    .line 330
    monitor-enter p0

    :try_start_1
    iget-boolean v0, p0, Lcom/squareup/okhttp/internal/http/h;->closed:Z
    :try_end_3
    .catchall {:try_start_1 .. :try_end_3} :catchall_f

    if-eqz v0, :cond_7

    .line 332
    :goto_5
    monitor-exit p0

    return-void

    .line 331
    :cond_7
    :try_start_7
    iget-object v0, p0, Lcom/squareup/okhttp/internal/http/h;->bzZ:Lcom/squareup/okhttp/internal/http/f;

    .line 6061
    iget-object v0, v0, Lcom/squareup/okhttp/internal/http/f;->byu:Lokio/e;

    .line 331
    invoke-interface {v0}, Lokio/e;->flush()V
    :try_end_e
    .catchall {:try_start_7 .. :try_end_e} :catchall_f

    goto :goto_5

    .line 330
    :catchall_f
    move-exception v0

    monitor-exit p0

    throw v0
.end method

.method public final timeout()Lokio/t;
    .registers 2

    .prologue
    .line 316
    iget-object v0, p0, Lcom/squareup/okhttp/internal/http/h;->bzY:Lokio/j;

    return-object v0
.end method