c.java 源代码
package f1;
import java.io.File;
import java.io.FileInputStream;
import java.io.FileNotFoundException;
import java.io.IOException;
import java.io.InputStream;
import s0.e;
import u0.l;
public class c<T> implements e<File, T> {
private static final a f22434c = new a();
private e<InputStream, T> f22435a;
private final a f22436b;
public static class a {
a() {
}
public InputStream a(File file) throws FileNotFoundException {
return new FileInputStream(file);
}
}
public c(e<InputStream, T> eVar) {
this(eVar, f22434c);
}
@Override
public l<T> a(File file, int i6, int i7) throws IOException {
InputStream inputStream = null;
try {
inputStream = this.f22436b.a(file);
l<T> a7 = this.f22435a.a(inputStream, i6, i7);
if (inputStream != null) {
try {
inputStream.close();
} catch (IOException unused) {
}
}
return a7;
} catch (Throwable th) {
if (inputStream != null) {
try {
inputStream.close();
} catch (IOException unused2) {
}
}
throw th;
}
}
@Override
public String getId() {
return "";
}
c(e<InputStream, T> eVar, a aVar) {
this.f22435a = eVar;
this.f22436b = aVar;
}
}