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

74 lines
2.2 KiB
Java

package o;
import android.content.res.AssetFileDescriptor;
import android.content.res.AssetManager;
import android.net.Uri;
import java.io.InputStream;
import o.SCe;
/* loaded from: classes.dex */
public final class KtO<Data> implements SCe<Uri, Data> {
private final AssetManager b;
private final LWm<Data> c;
/* loaded from: classes.dex */
public interface LWm<Data> {
InterfaceC12232euN<Data> Eu_(AssetManager assetManager, String str);
}
@Override // o.SCe
public final /* synthetic */ boolean d(Uri uri) {
Uri uri2 = uri;
return "file".equals(uri2.getScheme()) && !uri2.getPathSegments().isEmpty() && "android_asset".equals(uri2.getPathSegments().get(0));
}
@Override // o.SCe
public final /* synthetic */ SCe.IeS e(Uri uri, int i, int i2, unA una) {
Uri uri2 = uri;
return new SCe.IeS(new xBn(uri2), this.c.Eu_(this.b, uri2.toString().substring(22)));
}
public KtO(AssetManager assetManager, LWm<Data> lWm) {
this.b = assetManager;
this.c = lWm;
}
/* loaded from: classes.dex */
public static class HBt implements rIx<Uri, InputStream>, LWm<InputStream> {
private final AssetManager c;
public HBt(AssetManager assetManager) {
this.c = assetManager;
}
@Override // o.rIx
public final SCe<Uri, InputStream> c(Vzp vzp) {
return new KtO(this.c, this);
}
@Override // o.KtO.LWm
public final InterfaceC12232euN<InputStream> Eu_(AssetManager assetManager, String str) {
return new IVF(assetManager, str);
}
}
/* loaded from: classes.dex */
public static class IeS implements rIx<Uri, AssetFileDescriptor>, LWm<AssetFileDescriptor> {
private final AssetManager c;
public IeS(AssetManager assetManager) {
this.c = assetManager;
}
@Override // o.rIx
public final SCe<Uri, AssetFileDescriptor> c(Vzp vzp) {
return new KtO(this.c, this);
}
@Override // o.KtO.LWm
public final InterfaceC12232euN<AssetFileDescriptor> Eu_(AssetManager assetManager, String str) {
return new OSV(assetManager, str);
}
}
}