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 implements InterfaceC12232euN { 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 ieS) { try { T DK_ = DK_(this.d, this.e); this.c = DK_; ieS.a((InterfaceC12232euN.IeS) 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; } }