t.smali
.class public Li4/t;
.super Ljava/lang/Object;
.source "FileBackedNativeSessionFile.java"
# interfaces
.implements Li4/y;
# instance fields
.field public final a:Ljava/io/File;
.annotation build Landroidx/annotation/NonNull;
.end annotation
.end field
.field public final b:Ljava/lang/String;
.annotation build Landroidx/annotation/NonNull;
.end annotation
.end field
.field public final c:Ljava/lang/String;
.annotation build Landroidx/annotation/NonNull;
.end annotation
.end field
# direct methods
.method static constructor <clinit>()V
.registers 1
return-void
.end method
.method public constructor <init>(Ljava/lang/String;Ljava/lang/String;Ljava/io/File;)V
.registers 4
.param p1 # Ljava/lang/String;
.annotation build Landroidx/annotation/NonNull;
.end annotation
.end param
.param p2 # Ljava/lang/String;
.annotation build Landroidx/annotation/NonNull;
.end annotation
.end param
.param p3 # Ljava/io/File;
.annotation build Landroidx/annotation/NonNull;
.end annotation
.end param
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
iput-object p1, p0, Li4/t;->b:Ljava/lang/String;
iput-object p2, p0, Li4/t;->c:Ljava/lang/String;
iput-object p3, p0, Li4/t;->a:Ljava/io/File;
return-void
.end method
# virtual methods
.method public a()Ljava/lang/String;
.registers 2
.annotation build Landroidx/annotation/NonNull;
.end annotation
iget-object v0, p0, Li4/t;->c:Ljava/lang/String;
return-object v0
.end method
.method public b()Ljava/io/InputStream;
.registers 4
.annotation build Landroidx/annotation/Nullable;
.end annotation
iget-object v0, p0, Li4/t;->a:Ljava/io/File;
invoke-virtual {v0}, Ljava/io/File;->exists()Z
move-result v0
const/4 v1, 0x0
if-eqz v0, :cond_1a
iget-object v0, p0, Li4/t;->a:Ljava/io/File;
invoke-virtual {v0}, Ljava/io/File;->isFile()Z
move-result v0
if-nez v0, :cond_12
goto :goto_1a
:cond_12
:try_start_12
new-instance v0, Ljava/io/FileInputStream;
iget-object v2, p0, Li4/t;->a:Ljava/io/File;
invoke-direct {v0, v2}, Ljava/io/FileInputStream;-><init>(Ljava/io/File;)V
:try_end_19
.catch Ljava/io/FileNotFoundException; {:try_start_12 .. :try_end_19} :catch_1a
return-object v0
:catch_1a
:cond_1a
:goto_1a
return-object v1
.end method
.method public c()Lcom/google/firebase/crashlytics/internal/model/CrashlyticsReport$c$b;
.registers 3
.annotation build Landroidx/annotation/Nullable;
.end annotation
invoke-virtual {p0}, Li4/t;->d()[B
move-result-object v0
if-eqz v0, :cond_17
invoke-static {}, Lcom/google/firebase/crashlytics/internal/model/CrashlyticsReport$c$b;->c()Lcom/google/firebase/crashlytics/internal/model/CrashlyticsReport$c$b$a;
move-result-object v1
invoke-virtual {v1, v0}, Lcom/google/firebase/crashlytics/internal/model/CrashlyticsReport$c$b$a;->a([B)Lcom/google/firebase/crashlytics/internal/model/CrashlyticsReport$c$b$a;
iget-object v0, p0, Li4/t;->b:Ljava/lang/String;
invoke-virtual {v1, v0}, Lcom/google/firebase/crashlytics/internal/model/CrashlyticsReport$c$b$a;->a(Ljava/lang/String;)Lcom/google/firebase/crashlytics/internal/model/CrashlyticsReport$c$b$a;
invoke-virtual {v1}, Lcom/google/firebase/crashlytics/internal/model/CrashlyticsReport$c$b$a;->a()Lcom/google/firebase/crashlytics/internal/model/CrashlyticsReport$c$b;
move-result-object v0
goto :goto_18
:cond_17
const/4 v0, 0x0
:goto_18
return-object v0
.end method
.method public final d()[B
.registers 8
.annotation build Landroidx/annotation/Nullable;
.end annotation
const/16 v0, 0x2000
new-array v0, v0, [B
const/4 v1, 0x0
:try_start_5
invoke-virtual {p0}, Li4/t;->b()Ljava/io/InputStream;
move-result-object v2
:try_end_9
.catch Ljava/io/IOException; {:try_start_5 .. :try_end_9} :catch_50
:try_start_9
new-instance v3, Ljava/io/ByteArrayOutputStream;
invoke-direct {v3}, Ljava/io/ByteArrayOutputStream;-><init>()V
:try_end_e
.catchall {:try_start_9 .. :try_end_e} :catchall_49
:try_start_e
new-instance v4, Ljava/util/zip/GZIPOutputStream;
invoke-direct {v4, v3}, Ljava/util/zip/GZIPOutputStream;-><init>(Ljava/io/OutputStream;)V
if-nez v2, :cond_21
invoke-virtual {v4}, Ljava/util/zip/GZIPOutputStream;->close()V
:try_end_18
.catchall {:try_start_e .. :try_end_18} :catchall_44
:try_start_18
invoke-virtual {v3}, Ljava/io/ByteArrayOutputStream;->close()V
:try_end_1b
.catchall {:try_start_18 .. :try_end_1b} :catchall_49
if-eqz v2, :cond_20
:try_start_1d
invoke-virtual {v2}, Ljava/io/InputStream;->close()V
:try_end_20
.catch Ljava/io/IOException; {:try_start_1d .. :try_end_20} :catch_50
:cond_20
return-object v1
:cond_21
:goto_21
:try_start_21
invoke-virtual {v2, v0}, Ljava/io/InputStream;->read([B)I
move-result v5
if-lez v5, :cond_2c
const/4 v6, 0x0
invoke-virtual {v4, v0, v6, v5}, Ljava/util/zip/GZIPOutputStream;->write([BII)V
goto :goto_21
:cond_2c
invoke-virtual {v4}, Ljava/util/zip/GZIPOutputStream;->finish()V
invoke-virtual {v3}, Ljava/io/ByteArrayOutputStream;->toByteArray()[B
move-result-object v0
:try_end_33
.catchall {:try_start_21 .. :try_end_33} :catchall_3f
:try_start_33
invoke-virtual {v4}, Ljava/util/zip/GZIPOutputStream;->close()V
:try_end_36
.catchall {:try_start_33 .. :try_end_36} :catchall_44
:try_start_36
invoke-virtual {v3}, Ljava/io/ByteArrayOutputStream;->close()V
:try_end_39
.catchall {:try_start_36 .. :try_end_39} :catchall_49
if-eqz v2, :cond_3e
:try_start_3b
invoke-virtual {v2}, Ljava/io/InputStream;->close()V
:try_end_3e
.catch Ljava/io/IOException; {:try_start_3b .. :try_end_3e} :catch_50
:cond_3e
return-object v0
:catchall_3f
move-exception v0
:try_start_40
invoke-virtual {v4}, Ljava/util/zip/GZIPOutputStream;->close()V
:try_end_43
.catchall {:try_start_40 .. :try_end_43} :catchall_43
:catchall_43
:try_start_43
throw v0
:try_end_44
.catchall {:try_start_43 .. :try_end_44} :catchall_44
:catchall_44
move-exception v0
:try_start_45
invoke-virtual {v3}, Ljava/io/ByteArrayOutputStream;->close()V
:try_end_48
.catchall {:try_start_45 .. :try_end_48} :catchall_48
:catchall_48
:try_start_48
throw v0
:try_end_49
.catchall {:try_start_48 .. :try_end_49} :catchall_49
:catchall_49
move-exception v0
if-eqz v2, :cond_4f
:try_start_4c
invoke-virtual {v2}, Ljava/io/InputStream;->close()V
:try_end_4f
.catchall {:try_start_4c .. :try_end_4f} :catchall_4f
:catchall_4f
:cond_4f
:try_start_4f
throw v0
:try_end_50
.catch Ljava/io/IOException; {:try_start_4f .. :try_end_50} :catch_50
:catch_50
return-object v1
.end method