apkfuckery/com.discord/smali/com/facebook/a/b.smali
2019-10-23 06:50:18 +02:00

121 lines
2.3 KiB
Smali

.class public final Lcom/facebook/a/b;
.super Ljava/lang/Object;
.source "FileBinaryResource.java"
# interfaces
.implements Lcom/facebook/a/a;
# instance fields
.field public final mFile:Ljava/io/File;
# direct methods
.method private constructor <init>(Ljava/io/File;)V
.locals 0
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
invoke-static {p1}, Lcom/facebook/common/d/i;->checkNotNull(Ljava/lang/Object;)Ljava/lang/Object;
move-result-object p1
check-cast p1, Ljava/io/File;
iput-object p1, p0, Lcom/facebook/a/b;->mFile:Ljava/io/File;
return-void
.end method
.method public static g(Ljava/io/File;)Lcom/facebook/a/b;
.locals 1
.annotation runtime Ljavax/annotation/Nullable;
.end annotation
if-eqz p0, :cond_0
new-instance v0, Lcom/facebook/a/b;
invoke-direct {v0, p0}, Lcom/facebook/a/b;-><init>(Ljava/io/File;)V
return-object v0
:cond_0
const/4 p0, 0x0
return-object p0
.end method
# virtual methods
.method public final equals(Ljava/lang/Object;)Z
.locals 1
if-eqz p1, :cond_1
instance-of v0, p1, Lcom/facebook/a/b;
if-nez v0, :cond_0
goto :goto_0
:cond_0
check-cast p1, Lcom/facebook/a/b;
iget-object v0, p0, Lcom/facebook/a/b;->mFile:Ljava/io/File;
iget-object p1, p1, Lcom/facebook/a/b;->mFile:Ljava/io/File;
invoke-virtual {v0, p1}, Ljava/io/File;->equals(Ljava/lang/Object;)Z
move-result p1
return p1
:cond_1
:goto_0
const/4 p1, 0x0
return p1
.end method
.method public final fH()Ljava/io/InputStream;
.locals 2
.annotation system Ldalvik/annotation/Throws;
value = {
Ljava/io/IOException;
}
.end annotation
new-instance v0, Ljava/io/FileInputStream;
iget-object v1, p0, Lcom/facebook/a/b;->mFile:Ljava/io/File;
invoke-direct {v0, v1}, Ljava/io/FileInputStream;-><init>(Ljava/io/File;)V
return-object v0
.end method
.method public final fI()J
.locals 2
iget-object v0, p0, Lcom/facebook/a/b;->mFile:Ljava/io/File;
invoke-virtual {v0}, Ljava/io/File;->length()J
move-result-wide v0
return-wide v0
.end method
.method public final hashCode()I
.locals 1
iget-object v0, p0, Lcom/facebook/a/b;->mFile:Ljava/io/File;
invoke-virtual {v0}, Ljava/io/File;->hashCode()I
move-result v0
return v0
.end method