147 lines
4.3 KiB
Java
147 lines
4.3 KiB
Java
|
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<Data> implements SCe<File, Data> {
|
||
|
private final RVV<Data> e;
|
||
|
|
||
|
/* loaded from: classes.dex */
|
||
|
public interface RVV<Data> {
|
||
|
Data a(File file) throws FileNotFoundException;
|
||
|
|
||
|
void a(Data data) throws IOException;
|
||
|
|
||
|
Class<Data> 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<Data> rvv) {
|
||
|
this.e = rvv;
|
||
|
}
|
||
|
|
||
|
/* loaded from: classes.dex */
|
||
|
static final class HBt<Data> implements InterfaceC12232euN<Data> {
|
||
|
private final RVV<Data> a;
|
||
|
private Data b;
|
||
|
private final File c;
|
||
|
|
||
|
@Override // o.InterfaceC12232euN
|
||
|
public final void a() {
|
||
|
}
|
||
|
|
||
|
HBt(File file, RVV<Data> 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<? super Data> ieS) {
|
||
|
try {
|
||
|
Data a = this.a.a(this.c);
|
||
|
this.b = a;
|
||
|
ieS.a((InterfaceC12232euN.IeS<? super Data>) 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>) data);
|
||
|
} catch (IOException unused) {
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
|
||
|
@Override // o.InterfaceC12232euN
|
||
|
public final Class<Data> c() {
|
||
|
return this.a.b();
|
||
|
}
|
||
|
|
||
|
@Override // o.InterfaceC12232euN
|
||
|
public final pNW d() {
|
||
|
return pNW.LOCAL;
|
||
|
}
|
||
|
}
|
||
|
|
||
|
/* loaded from: classes.dex */
|
||
|
public static class Sts<Data> implements rIx<File, Data> {
|
||
|
private final RVV<Data> a;
|
||
|
|
||
|
public Sts(RVV<Data> rvv) {
|
||
|
this.a = rvv;
|
||
|
}
|
||
|
|
||
|
@Override // o.rIx
|
||
|
public final SCe<File, Data> c(Vzp vzp) {
|
||
|
return new POV(this.a);
|
||
|
}
|
||
|
}
|
||
|
|
||
|
/* loaded from: classes.dex */
|
||
|
public static class LWm extends Sts<InputStream> {
|
||
|
public LWm() {
|
||
|
super(new RVV<InputStream>() { // 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<InputStream> 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<ParcelFileDescriptor> {
|
||
|
public IeS() {
|
||
|
super(new RVV<ParcelFileDescriptor>() { // 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<ParcelFileDescriptor> b() {
|
||
|
return ParcelFileDescriptor.class;
|
||
|
}
|
||
|
|
||
|
@Override // o.POV.RVV
|
||
|
public final /* synthetic */ ParcelFileDescriptor a(File file) throws FileNotFoundException {
|
||
|
return ParcelFileDescriptor.open(file, 268435456);
|
||
|
}
|
||
|
});
|
||
|
}
|
||
|
}
|
||
|
}
|