r.smali

.class public final Lcom/bumptech/glide/load/b/r;
.super Ljava/lang/Object;
.source "StreamEncoder.java"

# interfaces
.implements Lcom/bumptech/glide/load/a;


# annotations
.annotation system Ldalvik/annotation/Signature;
    value = {
        "Ljava/lang/Object;",
        "Lcom/bumptech/glide/load/a",
        "<",
        "Ljava/io/InputStream;",
        ">;"
    }
.end annotation


# direct methods
.method public constructor <init>()V
    .registers 1

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

    return-void
.end method

.method private static a(Ljava/io/InputStream;Ljava/io/OutputStream;)Z
    .registers 6

    .prologue
    const/4 v0, 0x0

    .line 20
    invoke-static {}, Lcom/bumptech/glide/g/a;->eJ()Lcom/bumptech/glide/g/a;

    move-result-object v1

    invoke-virtual {v1}, Lcom/bumptech/glide/g/a;->getBytes()[B

    move-result-object v1

    .line 23
    :goto_9
    :try_start_9
    invoke-virtual {p0, v1}, Ljava/io/InputStream;->read([B)I

    move-result v2

    const/4 v3, -0x1

    if-eq v2, v3, :cond_1e

    .line 24
    const/4 v3, 0x0

    invoke-virtual {p1, v1, v3, v2}, Ljava/io/OutputStream;->write([BII)V
    :try_end_14
    .catch Ljava/io/IOException; {:try_start_9 .. :try_end_14} :catch_15
    .catchall {:try_start_9 .. :try_end_14} :catchall_27

    goto :goto_9

    .line 33
    :catch_15
    move-exception v2

    invoke-static {}, Lcom/bumptech/glide/g/a;->eJ()Lcom/bumptech/glide/g/a;

    move-result-object v2

    invoke-virtual {v2, v1}, Lcom/bumptech/glide/g/a;->d([B)Z

    :goto_1d
    return v0

    :cond_1e
    invoke-static {}, Lcom/bumptech/glide/g/a;->eJ()Lcom/bumptech/glide/g/a;

    move-result-object v0

    invoke-virtual {v0, v1}, Lcom/bumptech/glide/g/a;->d([B)Z

    const/4 v0, 0x1

    goto :goto_1d

    :catchall_27
    move-exception v0

    invoke-static {}, Lcom/bumptech/glide/g/a;->eJ()Lcom/bumptech/glide/g/a;

    move-result-object v2

    invoke-virtual {v2, v1}, Lcom/bumptech/glide/g/a;->d([B)Z

    throw v0
.end method


# virtual methods
.method public final bridge synthetic a(Ljava/lang/Object;Ljava/io/OutputStream;)Z
    .registers 4

    .prologue
    .line 15
    check-cast p1, Ljava/io/InputStream;

    invoke-static {p1, p2}, Lcom/bumptech/glide/load/b/r;->a(Ljava/io/InputStream;Ljava/io/OutputStream;)Z

    move-result v0

    return v0
.end method

.method public final getId()Ljava/lang/String;
    .registers 2

    .prologue
    .line 39
    const-string v0, ""

    return-object v0
.end method