what-the-bank/sources/com/kofax/mobile/sdk/i/e.java

34 lines
994 B
Java

package com.kofax.mobile.sdk.i;
import com.kofax.kmc.kut.utilities.error.ErrorInfo;
import com.kofax.kmc.kut.utilities.error.KmcRuntimeException;
import java.io.File;
import o.InterfaceC13391fZD;
/* loaded from: classes3.dex */
public class e implements com.kofax.mobile.sdk.b.a {
private static final String za = "Fields.xml";
private final i yR;
@InterfaceC13391fZD
public e(com.kofax.mobile.sdk._internal.impl.extraction.onDevice.a aVar) {
if (aVar == null) {
throw new IllegalArgumentException("provider cannot be null");
}
this.yR = new i(aVar.get());
}
@Override // com.kofax.mobile.sdk.b.a
public File G(String str) {
return r(str, za);
}
private File r(String str, String str2) {
File file = new File(this.yR.getProject(str, this.yR.X(str)), str2);
if (file.exists()) {
return file;
}
throw new KmcRuntimeException(ErrorInfo.KMC_GN_FILE_NOT_FOUND);
}
}