ByteBufferEncoder.smali
.class public Lcom/bumptech/glide/load/model/ByteBufferEncoder;
.super Ljava/lang/Object;
.source "ByteBufferEncoder.java"
# interfaces
.implements Lcom/bumptech/glide/load/Encoder;
# annotations
.annotation system Ldalvik/annotation/Signature;
value = {
"Ljava/lang/Object;",
"Lcom/bumptech/glide/load/Encoder<",
"Ljava/nio/ByteBuffer;",
">;"
}
.end annotation
# static fields
.field private static final TAG:Ljava/lang/String; = "ByteBufferEncoder"
# direct methods
.method public constructor <init>()V
.registers 1
.line 15
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
return-void
.end method
# virtual methods
.method public bridge synthetic encode(Ljava/lang/Object;Ljava/io/File;Lcom/bumptech/glide/load/Options;)Z
.registers 4
.line 15
check-cast p1, Ljava/nio/ByteBuffer;
invoke-virtual {p0, p1, p2, p3}, Lcom/bumptech/glide/load/model/ByteBufferEncoder;->encode(Ljava/nio/ByteBuffer;Ljava/io/File;Lcom/bumptech/glide/load/Options;)Z
move-result p1
return p1
.end method
.method public encode(Ljava/nio/ByteBuffer;Ljava/io/File;Lcom/bumptech/glide/load/Options;)Z
.registers 4
.line 22
:try_start_0
invoke-static {p1, p2}, Lcom/bumptech/glide/util/ByteBufferUtil;->toFile(Ljava/nio/ByteBuffer;Ljava/io/File;)V
:try_end_3
.catch Ljava/io/IOException; {:try_start_0 .. :try_end_3} :catch_5
const/4 p1, 0x1
goto :goto_15
:catch_5
move-exception p1
const/4 p2, 0x3
const-string p3, "ByteBufferEncoder"
.line 25
invoke-static {p3, p2}, Landroid/util/Log;->isLoggable(Ljava/lang/String;I)Z
move-result p2
if-eqz p2, :cond_14
const-string p2, "Failed to write data"
.line 26
invoke-static {p3, p2, p1}, Landroid/util/Log;->d(Ljava/lang/String;Ljava/lang/String;Ljava/lang/Throwable;)I
:cond_14
const/4 p1, 0x0
:goto_15
return p1
.end method