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

37 lines
1.1 KiB
Java
Raw Permalink Normal View History

2024-07-27 18:17:47 +07:00
package com.kofax.mobile.sdk.i;
import com.kofax.kmc.kut.utilities.error.FileNotFoundException;
import java.io.File;
import o.InterfaceC13391fZD;
/* loaded from: classes3.dex */
public class a implements com.kofax.mobile.sdk.b.b {
private final i yR;
@InterfaceC13391fZD
public a(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.b
public File H(String str) {
return r(str, ".config");
}
@Override // com.kofax.mobile.sdk.b.b
public File I(String str) {
return r(str, ".model");
}
private File r(String str, String str2) {
File file = new File(this.yR.getProject(str, this.yR.X(str)), "Classifier".concat(String.valueOf(str2)));
if (file.exists()) {
return file;
}
throw new RuntimeException(new FileNotFoundException("could not find classifier config"));
}
}