what-the-bank/sources/o/SbQ.java

55 lines
1.4 KiB
Java
Raw Normal View History

2024-07-27 18:17:47 +07:00
package o;
import android.content.ContentResolver;
import android.net.Uri;
import java.io.FileNotFoundException;
import java.io.IOException;
import o.InterfaceC12232euN;
/* loaded from: classes.dex */
public abstract class SbQ<T> implements InterfaceC12232euN<T> {
private T c;
private final Uri d;
private final ContentResolver e;
protected abstract T DK_(Uri uri, ContentResolver contentResolver) throws FileNotFoundException;
@Override // o.InterfaceC12232euN
public final void a() {
}
protected abstract void b(T t) throws IOException;
public SbQ(ContentResolver contentResolver, Uri uri) {
this.e = contentResolver;
this.d = uri;
}
@Override // o.InterfaceC12232euN
public final void c(EnumC3495ayd enumC3495ayd, InterfaceC12232euN.IeS<? super T> ieS) {
try {
T DK_ = DK_(this.d, this.e);
this.c = DK_;
ieS.a((InterfaceC12232euN.IeS<? super T>) DK_);
} catch (FileNotFoundException e) {
ieS.a((Exception) e);
}
}
@Override // o.InterfaceC12232euN
public final void e() {
T t = this.c;
if (t != null) {
try {
b(t);
} catch (IOException unused) {
}
}
}
@Override // o.InterfaceC12232euN
public final pNW d() {
return pNW.LOCAL;
}
}