ByteBufferFileLoader$ByteBufferFetcher.smali
.class final Lcom/bumptech/glide/load/model/ByteBufferFileLoader$ByteBufferFetcher;
.super Ljava/lang/Object;
.source "ByteBufferFileLoader.java"
# interfaces
.implements Lcom/bumptech/glide/load/data/DataFetcher;
# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
value = Lcom/bumptech/glide/load/model/ByteBufferFileLoader;
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x1a
name = "ByteBufferFetcher"
.end annotation
.annotation system Ldalvik/annotation/Signature;
value = {
"Ljava/lang/Object;",
"Lcom/bumptech/glide/load/data/DataFetcher<",
"Ljava/nio/ByteBuffer;",
">;"
}
.end annotation
# instance fields
.field private final file:Ljava/io/File;
# direct methods
.method constructor <init>(Ljava/io/File;)V
.registers 2
.line 56
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
.line 57
iput-object p1, p0, Lcom/bumptech/glide/load/model/ByteBufferFileLoader$ByteBufferFetcher;->file:Ljava/io/File;
return-void
.end method
# virtual methods
.method public cancel()V
.registers 1
return-void
.end method
.method public cleanup()V
.registers 1
return-void
.end method
.method public getDataClass()Ljava/lang/Class;
.registers 2
.annotation system Ldalvik/annotation/Signature;
value = {
"()",
"Ljava/lang/Class<",
"Ljava/nio/ByteBuffer;",
">;"
}
.end annotation
.line 90
const-class v0, Ljava/nio/ByteBuffer;
return-object v0
.end method
.method public getDataSource()Lcom/bumptech/glide/load/DataSource;
.registers 2
.line 96
sget-object v0, Lcom/bumptech/glide/load/DataSource;->LOCAL:Lcom/bumptech/glide/load/DataSource;
return-object v0
.end method
.method public loadData(Lcom/bumptech/glide/Priority;Lcom/bumptech/glide/load/data/DataFetcher$DataCallback;)V
.registers 5
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Lcom/bumptech/glide/Priority;",
"Lcom/bumptech/glide/load/data/DataFetcher$DataCallback<",
"-",
"Ljava/nio/ByteBuffer;",
">;)V"
}
.end annotation
.line 65
:try_start_0
iget-object p1, p0, Lcom/bumptech/glide/load/model/ByteBufferFileLoader$ByteBufferFetcher;->file:Ljava/io/File;
invoke-static {p1}, Lcom/bumptech/glide/util/ByteBufferUtil;->fromFile(Ljava/io/File;)Ljava/nio/ByteBuffer;
move-result-object p1
:try_end_6
.catch Ljava/io/IOException; {:try_start_0 .. :try_end_6} :catch_a
.line 74
invoke-interface {p2, p1}, Lcom/bumptech/glide/load/data/DataFetcher$DataCallback;->onDataReady(Ljava/lang/Object;)V
return-void
:catch_a
move-exception p1
const/4 v0, 0x3
const-string v1, "ByteBufferFileLoader"
.line 67
invoke-static {v1, v0}, Landroid/util/Log;->isLoggable(Ljava/lang/String;I)Z
move-result v0
if-eqz v0, :cond_19
const-string v0, "Failed to obtain ByteBuffer for file"
.line 68
invoke-static {v1, v0, p1}, Landroid/util/Log;->d(Ljava/lang/String;Ljava/lang/String;Ljava/lang/Throwable;)I
.line 70
:cond_19
invoke-interface {p2, p1}, Lcom/bumptech/glide/load/data/DataFetcher$DataCallback;->onLoadFailed(Ljava/lang/Exception;)V
return-void
.end method