package o; import android.os.ParcelFileDescriptor; import java.io.File; import java.io.FileInputStream; import java.io.FileNotFoundException; import java.io.IOException; import java.io.InputStream; import o.InterfaceC12232euN; import o.SCe; /* loaded from: classes.dex */ public final class POV implements SCe { private final RVV e; /* loaded from: classes.dex */ public interface RVV { Data a(File file) throws FileNotFoundException; void a(Data data) throws IOException; Class b(); } @Override // o.SCe public final /* bridge */ /* synthetic */ boolean d(File file) { return true; } @Override // o.SCe public final /* synthetic */ SCe.IeS e(File file, int i, int i2, unA una) { File file2 = file; return new SCe.IeS(new xBn(file2), new HBt(file2, this.e)); } public POV(RVV rvv) { this.e = rvv; } /* loaded from: classes.dex */ static final class HBt implements InterfaceC12232euN { private final RVV a; private Data b; private final File c; @Override // o.InterfaceC12232euN public final void a() { } HBt(File file, RVV rvv) { this.c = file; this.a = rvv; } /* JADX WARN: Type inference failed for: r2v3, types: [java.lang.Object, Data] */ @Override // o.InterfaceC12232euN public final void c(EnumC3495ayd enumC3495ayd, InterfaceC12232euN.IeS ieS) { try { Data a = this.a.a(this.c); this.b = a; ieS.a((InterfaceC12232euN.IeS) a); } catch (FileNotFoundException e) { ieS.a((Exception) e); } } @Override // o.InterfaceC12232euN public final void e() { Data data = this.b; if (data != null) { try { this.a.a((RVV) data); } catch (IOException unused) { } } } @Override // o.InterfaceC12232euN public final Class c() { return this.a.b(); } @Override // o.InterfaceC12232euN public final pNW d() { return pNW.LOCAL; } } /* loaded from: classes.dex */ public static class Sts implements rIx { private final RVV a; public Sts(RVV rvv) { this.a = rvv; } @Override // o.rIx public final SCe c(Vzp vzp) { return new POV(this.a); } } /* loaded from: classes.dex */ public static class LWm extends Sts { public LWm() { super(new RVV() { // from class: o.POV.LWm.2 @Override // o.POV.RVV public final /* synthetic */ void a(InputStream inputStream) throws IOException { inputStream.close(); } @Override // o.POV.RVV public final Class b() { return InputStream.class; } @Override // o.POV.RVV public final /* synthetic */ InputStream a(File file) throws FileNotFoundException { return new FileInputStream(file); } }); } } /* loaded from: classes.dex */ public static class IeS extends Sts { public IeS() { super(new RVV() { // from class: o.POV.IeS.2 @Override // o.POV.RVV public final /* synthetic */ void a(ParcelFileDescriptor parcelFileDescriptor) throws IOException { parcelFileDescriptor.close(); } @Override // o.POV.RVV public final Class b() { return ParcelFileDescriptor.class; } @Override // o.POV.RVV public final /* synthetic */ ParcelFileDescriptor a(File file) throws FileNotFoundException { return ParcelFileDescriptor.open(file, 268435456); } }); } } }