c.smali

.class public Lcom/bumptech/glide/g/c;
.super Ljava/io/InputStream;


# static fields
.field private static final a:Ljava/util/Queue;
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "Ljava/util/Queue",
            "<",
            "Lcom/bumptech/glide/g/c;",
            ">;"
        }
    .end annotation
.end field


# instance fields
.field private b:Ljava/io/InputStream;

.field private c:Ljava/io/IOException;


# direct methods
.method static constructor <clinit>()V
    .registers 1

    const/4 v0, 0x0

    invoke-static {v0}, Lcom/bumptech/glide/g/h;->a(I)Ljava/util/Queue;

    move-result-object v0

    sput-object v0, Lcom/bumptech/glide/g/c;->a:Ljava/util/Queue;

    return-void
.end method

.method constructor <init>()V
    .registers 1

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

    return-void
.end method

.method public static a(Ljava/io/InputStream;)Lcom/bumptech/glide/g/c;
    .registers 3

    sget-object v1, Lcom/bumptech/glide/g/c;->a:Ljava/util/Queue;

    monitor-enter v1

    :try_start_3
    sget-object v0, Lcom/bumptech/glide/g/c;->a:Ljava/util/Queue;

    invoke-interface {v0}, Ljava/util/Queue;->poll()Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Lcom/bumptech/glide/g/c;

    monitor-exit v1
    :try_end_c
    .catchall {:try_start_3 .. :try_end_c} :catchall_17

    if-nez v0, :cond_13

    new-instance v0, Lcom/bumptech/glide/g/c;

    invoke-direct {v0}, Lcom/bumptech/glide/g/c;-><init>()V

    :cond_13
    invoke-virtual {v0, p0}, Lcom/bumptech/glide/g/c;->b(Ljava/io/InputStream;)V

    return-object v0

    :catchall_17
    move-exception v0

    :try_start_18
    monitor-exit v1
    :try_end_19
    .catchall {:try_start_18 .. :try_end_19} :catchall_17

    throw v0
.end method


# virtual methods
.method public a()Ljava/io/IOException;
    .registers 2

    iget-object v0, p0, Lcom/bumptech/glide/g/c;->c:Ljava/io/IOException;

    return-object v0
.end method

.method public available()I
    .registers 2

    iget-object v0, p0, Lcom/bumptech/glide/g/c;->b:Ljava/io/InputStream;

    invoke-virtual {v0}, Ljava/io/InputStream;->available()I

    move-result v0

    return v0
.end method

.method public b()V
    .registers 3

    const/4 v0, 0x0

    iput-object v0, p0, Lcom/bumptech/glide/g/c;->c:Ljava/io/IOException;

    iput-object v0, p0, Lcom/bumptech/glide/g/c;->b:Ljava/io/InputStream;

    sget-object v1, Lcom/bumptech/glide/g/c;->a:Ljava/util/Queue;

    monitor-enter v1

    :try_start_8
    sget-object v0, Lcom/bumptech/glide/g/c;->a:Ljava/util/Queue;

    invoke-interface {v0, p0}, Ljava/util/Queue;->offer(Ljava/lang/Object;)Z

    monitor-exit v1

    return-void

    :catchall_f
    move-exception v0

    monitor-exit v1
    :try_end_11
    .catchall {:try_start_8 .. :try_end_11} :catchall_f

    throw v0
.end method

.method b(Ljava/io/InputStream;)V
    .registers 2

    iput-object p1, p0, Lcom/bumptech/glide/g/c;->b:Ljava/io/InputStream;

    return-void
.end method

.method public close()V
    .registers 2

    iget-object v0, p0, Lcom/bumptech/glide/g/c;->b:Ljava/io/InputStream;

    invoke-virtual {v0}, Ljava/io/InputStream;->close()V

    return-void
.end method

.method public mark(I)V
    .registers 3

    iget-object v0, p0, Lcom/bumptech/glide/g/c;->b:Ljava/io/InputStream;

    invoke-virtual {v0, p1}, Ljava/io/InputStream;->mark(I)V

    return-void
.end method

.method public markSupported()Z
    .registers 2

    iget-object v0, p0, Lcom/bumptech/glide/g/c;->b:Ljava/io/InputStream;

    invoke-virtual {v0}, Ljava/io/InputStream;->markSupported()Z

    move-result v0

    return v0
.end method

.method public read()I
    .registers 2

    :try_start_0
    iget-object v0, p0, Lcom/bumptech/glide/g/c;->b:Ljava/io/InputStream;

    invoke-virtual {v0}, Ljava/io/InputStream;->read()I
    :try_end_5
    .catch Ljava/io/IOException; {:try_start_0 .. :try_end_5} :catch_7

    move-result v0

    :goto_6
    return v0

    :catch_7
    move-exception v0

    iput-object v0, p0, Lcom/bumptech/glide/g/c;->c:Ljava/io/IOException;

    const/4 v0, -0x1

    goto :goto_6
.end method

.method public read([B)I
    .registers 3

    :try_start_0
    iget-object v0, p0, Lcom/bumptech/glide/g/c;->b:Ljava/io/InputStream;

    invoke-virtual {v0, p1}, Ljava/io/InputStream;->read([B)I
    :try_end_5
    .catch Ljava/io/IOException; {:try_start_0 .. :try_end_5} :catch_7

    move-result v0

    :goto_6
    return v0

    :catch_7
    move-exception v0

    iput-object v0, p0, Lcom/bumptech/glide/g/c;->c:Ljava/io/IOException;

    const/4 v0, -0x1

    goto :goto_6
.end method

.method public read([BII)I
    .registers 5

    :try_start_0
    iget-object v0, p0, Lcom/bumptech/glide/g/c;->b:Ljava/io/InputStream;

    invoke-virtual {v0, p1, p2, p3}, Ljava/io/InputStream;->read([BII)I
    :try_end_5
    .catch Ljava/io/IOException; {:try_start_0 .. :try_end_5} :catch_7

    move-result v0

    :goto_6
    return v0

    :catch_7
    move-exception v0

    iput-object v0, p0, Lcom/bumptech/glide/g/c;->c:Ljava/io/IOException;

    const/4 v0, -0x1

    goto :goto_6
.end method

.method public declared-synchronized reset()V
    .registers 2

    monitor-enter p0

    :try_start_1
    iget-object v0, p0, Lcom/bumptech/glide/g/c;->b:Ljava/io/InputStream;

    invoke-virtual {v0}, Ljava/io/InputStream;->reset()V
    :try_end_6
    .catchall {:try_start_1 .. :try_end_6} :catchall_8

    monitor-exit p0

    return-void

    :catchall_8
    move-exception v0

    monitor-exit p0

    throw v0
.end method

.method public skip(J)J
    .registers 6

    :try_start_0
    iget-object v0, p0, Lcom/bumptech/glide/g/c;->b:Ljava/io/InputStream;

    invoke-virtual {v0, p1, p2}, Ljava/io/InputStream;->skip(J)J
    :try_end_5
    .catch Ljava/io/IOException; {:try_start_0 .. :try_end_5} :catch_7

    move-result-wide v0

    :goto_6
    return-wide v0

    :catch_7
    move-exception v0

    iput-object v0, p0, Lcom/bumptech/glide/g/c;->c:Ljava/io/IOException;

    const-wide/16 v0, 0x0

    goto :goto_6
.end method