2021-10-15 06:18:26 +00:00
|
|
|
package c0.y;
|
2021-08-04 23:47:20 +00:00
|
|
|
|
2021-10-15 06:18:26 +00:00
|
|
|
import c0.g0.c;
|
|
|
|
import c0.z.d.m;
|
2021-08-04 23:47:20 +00:00
|
|
|
import java.io.File;
|
|
|
|
import java.io.FileInputStream;
|
|
|
|
import java.io.InputStreamReader;
|
|
|
|
import java.nio.charset.Charset;
|
2021-08-03 07:33:18 +00:00
|
|
|
/* compiled from: FileReadWrite.kt */
|
|
|
|
public class f {
|
2021-08-04 23:47:20 +00:00
|
|
|
/* JADX WARNING: Code restructure failed: missing block: B:10:0x0023, code lost:
|
|
|
|
throw r0;
|
|
|
|
*/
|
|
|
|
/* JADX WARNING: Code restructure failed: missing block: B:8:0x001f, code lost:
|
|
|
|
r0 = move-exception;
|
|
|
|
*/
|
|
|
|
/* JADX WARNING: Code restructure failed: missing block: B:9:0x0020, code lost:
|
2021-10-15 06:18:26 +00:00
|
|
|
c0.y.b.closeFinally(r1, r2);
|
2021-08-04 23:47:20 +00:00
|
|
|
*/
|
|
|
|
public static final String readText(File file, Charset charset) {
|
|
|
|
m.checkNotNullParameter(file, "$this$readText");
|
|
|
|
m.checkNotNullParameter(charset, "charset");
|
|
|
|
InputStreamReader inputStreamReader = new InputStreamReader(new FileInputStream(file), charset);
|
|
|
|
String readText = i.readText(inputStreamReader);
|
|
|
|
b.closeFinally(inputStreamReader, null);
|
|
|
|
return readText;
|
|
|
|
}
|
|
|
|
|
|
|
|
public static /* synthetic */ String readText$default(File file, Charset charset, int i, Object obj) {
|
|
|
|
if ((i & 1) != 0) {
|
|
|
|
charset = c.a;
|
|
|
|
}
|
|
|
|
return readText(file, charset);
|
|
|
|
}
|
2021-08-03 07:33:18 +00:00
|
|
|
}
|