2022-06-10 21:38:30 +09:00

1725 lines
50 KiB
Smali

.class public Lbj/c;
.super Ljava/lang/Object;
.source "PathReadWrite.kt"
# annotations
.annotation system Ldalvik/annotation/SourceDebugExtension;
value = "SMAP\nPathReadWrite.kt\nKotlin\n*S Kotlin\n*F\n+ 1 PathReadWrite.kt\nkotlin/io/path/PathsKt__PathReadWriteKt\n+ 2 fake.kt\nkotlin/jvm/internal/FakeKt\n+ 3 ReadWrite.kt\nkotlin/io/TextStreamsKt\n+ 4 _Sequences.kt\nkotlin/sequences/SequencesKt___SequencesKt\n*L\n1#1,306:1\n1#2:307\n1#2:309\n53#3:308\n1256#4,2:310\n*E\n*S KotlinDebug\n*F\n+ 1 PathReadWrite.kt\nkotlin/io/path/PathsKt__PathReadWriteKt\n*L\n190#1:309\n190#1:308\n190#1,2:310\n*E\n"
.end annotation
.annotation runtime Lkotlin/Metadata;
bv = {}
d1 = {
"\u0000\u008c\u0001\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0000\n\u0002\u0010\u0011\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0002\u0008\u0002\n\u0002\u0010\u0008\n\u0000\n\u0002\u0018\u0002\n\u0002\u0008\u0002\n\u0002\u0018\u0002\n\u0002\u0008\u0002\n\u0002\u0018\u0002\n\u0002\u0008\u0002\n\u0002\u0010\u0012\n\u0002\u0008\u0002\n\u0002\u0018\u0002\n\u0002\u0008\u0003\n\u0002\u0010\u000e\n\u0000\n\u0002\u0010\r\n\u0002\u0008\u0004\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\u0008\u0004\n\u0002\u0018\u0002\n\u0002\u0008\u0002\n\u0002\u0018\u0002\n\u0002\u0008\u0002\n\u0002\u0010 \n\u0002\u0008\u0002\n\u0002\u0018\u0002\n\u0002\u0008\u0003\n\u0002\u0010\u001c\n\u0002\u0008\u0008\u001a2\u0010\u0007\u001a\u00020\u0006*\u00020\u00002\u0008\u0008\u0002\u0010\u0002\u001a\u00020\u00012\u0012\u0010\u0005\u001a\n\u0012\u0006\u0008\u0001\u0012\u00020\u00040\u0003\"\u00020\u0004H\u0087\u0008\u00a2\u0006\u0004\u0008\u0007\u0010\u0008\u001a<\u0010\u000c\u001a\u00020\u000b*\u00020\u00002\u0008\u0008\u0002\u0010\u0002\u001a\u00020\u00012\u0008\u0008\u0002\u0010\n\u001a\u00020\t2\u0012\u0010\u0005\u001a\n\u0012\u0006\u0008\u0001\u0012\u00020\u00040\u0003\"\u00020\u0004H\u0087\u0008\u00a2\u0006\u0004\u0008\u000c\u0010\r\u001a2\u0010\u000f\u001a\u00020\u000e*\u00020\u00002\u0008\u0008\u0002\u0010\u0002\u001a\u00020\u00012\u0012\u0010\u0005\u001a\n\u0012\u0006\u0008\u0001\u0012\u00020\u00040\u0003\"\u00020\u0004H\u0087\u0008\u00a2\u0006\u0004\u0008\u000f\u0010\u0010\u001a<\u0010\u0012\u001a\u00020\u0011*\u00020\u00002\u0008\u0008\u0002\u0010\u0002\u001a\u00020\u00012\u0008\u0008\u0002\u0010\n\u001a\u00020\t2\u0012\u0010\u0005\u001a\n\u0012\u0006\u0008\u0001\u0012\u00020\u00040\u0003\"\u00020\u0004H\u0087\u0008\u00a2\u0006\u0004\u0008\u0012\u0010\u0013\u001a\r\u0010\u0015\u001a\u00020\u0014*\u00020\u0000H\u0087\u0008\u001a0\u0010\u0018\u001a\u00020\u0017*\u00020\u00002\u0006\u0010\u0016\u001a\u00020\u00142\u0012\u0010\u0005\u001a\n\u0012\u0006\u0008\u0001\u0012\u00020\u00040\u0003\"\u00020\u0004H\u0087\u0008\u00a2\u0006\u0004\u0008\u0018\u0010\u0019\u001a\u0015\u0010\u001a\u001a\u00020\u0017*\u00020\u00002\u0006\u0010\u0016\u001a\u00020\u0014H\u0087\u0008\u001a\u0016\u0010\u001c\u001a\u00020\u001b*\u00020\u00002\u0008\u0008\u0002\u0010\u0002\u001a\u00020\u0001H\u0007\u001a9\u0010\u001f\u001a\u00020\u0017*\u00020\u00002\u0006\u0010\u001e\u001a\u00020\u001d2\u0008\u0008\u0002\u0010\u0002\u001a\u00020\u00012\u0012\u0010\u0005\u001a\n\u0012\u0006\u0008\u0001\u0012\u00020\u00040\u0003\"\u00020\u0004H\u0007\u00a2\u0006\u0004\u0008\u001f\u0010 \u001a\u001e\u0010!\u001a\u00020\u0017*\u00020\u00002\u0006\u0010\u001e\u001a\u00020\u001d2\u0008\u0008\u0002\u0010\u0002\u001a\u00020\u0001H\u0007\u001a=\u0010\'\u001a\u00020\u0017*\u00020\u00002\u0008\u0008\u0002\u0010\u0002\u001a\u00020\u00012!\u0010&\u001a\u001d\u0012\u0013\u0012\u00110\u001b\u00a2\u0006\u000c\u0008#\u0012\u0008\u0008$\u0012\u0004\u0008\u0008(%\u0012\u0004\u0012\u00020\u00170\"H\u0087\u0008\u00f8\u0001\u0000\u001a(\u0010)\u001a\u00020(*\u00020\u00002\u0012\u0010\u0005\u001a\n\u0012\u0006\u0008\u0001\u0012\u00020\u00040\u0003\"\u00020\u0004H\u0087\u0008\u00a2\u0006\u0004\u0008)\u0010*\u001a(\u0010,\u001a\u00020+*\u00020\u00002\u0012\u0010\u0005\u001a\n\u0012\u0006\u0008\u0001\u0012\u00020\u00040\u0003\"\u00020\u0004H\u0087\u0008\u00a2\u0006\u0004\u0008,\u0010-\u001a\u001d\u0010/\u001a\u0008\u0012\u0004\u0012\u00020\u001b0.*\u00020\u00002\u0008\u0008\u0002\u0010\u0002\u001a\u00020\u0001H\u0087\u0008\u001aA\u00103\u001a\u00028\u0000\"\u0004\u0008\u0000\u00100*\u00020\u00002\u0008\u0008\u0002\u0010\u0002\u001a\u00020\u00012\u0018\u00102\u001a\u0014\u0012\n\u0012\u0008\u0012\u0004\u0012\u00020\u001b01\u0012\u0004\u0012\u00028\u00000\"H\u0087\u0008\u00f8\u0001\u0000\u00a2\u0006\u0004\u00083\u00104\u001a@\u00107\u001a\u00020\u0000*\u00020\u00002\u000c\u00106\u001a\u0008\u0012\u0004\u0012\u00020\u001d052\u0008\u0008\u0002\u0010\u0002\u001a\u00020\u00012\u0012\u0010\u0005\u001a\n\u0012\u0006\u0008\u0001\u0012\u00020\u00040\u0003\"\u00020\u0004H\u0087\u0008\u00a2\u0006\u0004\u00087\u00108\u001a@\u00109\u001a\u00020\u0000*\u00020\u00002\u000c\u00106\u001a\u0008\u0012\u0004\u0012\u00020\u001d012\u0008\u0008\u0002\u0010\u0002\u001a\u00020\u00012\u0012\u0010\u0005\u001a\n\u0012\u0006\u0008\u0001\u0012\u00020\u00040\u0003\"\u00020\u0004H\u0087\u0008\u00a2\u0006\u0004\u00089\u0010:\u001a%\u0010;\u001a\u00020\u0000*\u00020\u00002\u000c\u00106\u001a\u0008\u0012\u0004\u0012\u00020\u001d052\u0008\u0008\u0002\u0010\u0002\u001a\u00020\u0001H\u0087\u0008\u001a%\u0010<\u001a\u00020\u0000*\u00020\u00002\u000c\u00106\u001a\u0008\u0012\u0004\u0012\u00020\u001d012\u0008\u0008\u0002\u0010\u0002\u001a\u00020\u0001H\u0087\u0008\u0082\u0002\u0007\n\u0005\u0008\u009920\u0001\u00a8\u0006="
}
d2 = {
"Ljava/nio/file/Path;",
"Ljava/nio/charset/Charset;",
"charset",
"",
"Ljava/nio/file/OpenOption;",
"options",
"Ljava/io/InputStreamReader;",
"u",
"(Ljava/nio/file/Path;Ljava/nio/charset/Charset;[Ljava/nio/file/OpenOption;)Ljava/io/InputStreamReader;",
"",
"bufferSize",
"Ljava/io/BufferedReader;",
"h",
"(Ljava/nio/file/Path;Ljava/nio/charset/Charset;I[Ljava/nio/file/OpenOption;)Ljava/io/BufferedReader;",
"Ljava/io/OutputStreamWriter;",
"F",
"(Ljava/nio/file/Path;Ljava/nio/charset/Charset;[Ljava/nio/file/OpenOption;)Ljava/io/OutputStreamWriter;",
"Ljava/io/BufferedWriter;",
"j",
"(Ljava/nio/file/Path;Ljava/nio/charset/Charset;I[Ljava/nio/file/OpenOption;)Ljava/io/BufferedWriter;",
"",
"p",
"array",
"Lkotlin/d1;",
"y",
"(Ljava/nio/file/Path;[B[Ljava/nio/file/OpenOption;)V",
"a",
"",
"s",
"",
"text",
"D",
"(Ljava/nio/file/Path;Ljava/lang/CharSequence;Ljava/nio/charset/Charset;[Ljava/nio/file/OpenOption;)V",
"f",
"Lkotlin/Function1;",
"Lkotlin/ParameterName;",
"name",
"line",
"action",
"l",
"Ljava/io/InputStream;",
"n",
"(Ljava/nio/file/Path;[Ljava/nio/file/OpenOption;)Ljava/io/InputStream;",
"Ljava/io/OutputStream;",
"o",
"(Ljava/nio/file/Path;[Ljava/nio/file/OpenOption;)Ljava/io/OutputStream;",
"",
"q",
"T",
"Lkotlin/sequences/m;",
"block",
"w",
"(Ljava/nio/file/Path;Ljava/nio/charset/Charset;Lej/l;)Ljava/lang/Object;",
"",
"lines",
"z",
"(Ljava/nio/file/Path;Ljava/lang/Iterable;Ljava/nio/charset/Charset;[Ljava/nio/file/OpenOption;)Ljava/nio/file/Path;",
"A",
"(Ljava/nio/file/Path;Lkotlin/sequences/m;Ljava/nio/charset/Charset;[Ljava/nio/file/OpenOption;)Ljava/nio/file/Path;",
"b",
"c",
"kotlin-stdlib-jdk7"
}
k = 0x5
mv = {
0x1,
0x4,
0x1
}
xs = "kotlin/io/path/PathsKt"
.end annotation
# direct methods
.method public constructor <init>()V
.locals 0
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
return-void
.end method
.method public static final varargs A(Ljava/nio/file/Path;Lkotlin/sequences/m;Ljava/nio/charset/Charset;[Ljava/nio/file/OpenOption;)Ljava/nio/file/Path;
.locals 1
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Ljava/nio/file/Path;",
"Lkotlin/sequences/m<",
"+",
"Ljava/lang/CharSequence;",
">;",
"Ljava/nio/charset/Charset;",
"[",
"Ljava/nio/file/OpenOption;",
")",
"Ljava/nio/file/Path;"
}
.end annotation
.annotation build Lkotlin/SinceKotlin;
version = "1.4"
.end annotation
.annotation build Lkotlin/internal/InlineOnly;
.end annotation
.annotation build Lkotlin/io/path/ExperimentalPathApi;
.end annotation
.line 1
invoke-static {p1}, Lkotlin/sequences/SequencesKt___SequencesKt;->G(Lkotlin/sequences/m;)Ljava/lang/Iterable;
move-result-object p1
array-length v0, p3
invoke-static {p3, v0}, Ljava/util/Arrays;->copyOf([Ljava/lang/Object;I)[Ljava/lang/Object;
move-result-object p3
check-cast p3, [Ljava/nio/file/OpenOption;
invoke-static {p0, p1, p2, p3}, Ljava/nio/file/Files;->write(Ljava/nio/file/Path;Ljava/lang/Iterable;Ljava/nio/charset/Charset;[Ljava/nio/file/OpenOption;)Ljava/nio/file/Path;
move-result-object p0
const-string p1, "Files.write(this, lines.\u2026ble(), charset, *options)"
invoke-static {p0, p1}, Lkotlin/jvm/internal/f0;->o(Ljava/lang/Object;Ljava/lang/String;)V
return-object p0
.end method
.method public static synthetic B(Ljava/nio/file/Path;Ljava/lang/Iterable;Ljava/nio/charset/Charset;[Ljava/nio/file/OpenOption;ILjava/lang/Object;)Ljava/nio/file/Path;
.locals 0
and-int/lit8 p4, p4, 0x2
if-eqz p4, :cond_0
.line 1
sget-object p2, Lkotlin/text/d;->a:Ljava/nio/charset/Charset;
.line 2
:cond_0
array-length p4, p3
invoke-static {p3, p4}, Ljava/util/Arrays;->copyOf([Ljava/lang/Object;I)[Ljava/lang/Object;
move-result-object p3
check-cast p3, [Ljava/nio/file/OpenOption;
invoke-static {p0, p1, p2, p3}, Ljava/nio/file/Files;->write(Ljava/nio/file/Path;Ljava/lang/Iterable;Ljava/nio/charset/Charset;[Ljava/nio/file/OpenOption;)Ljava/nio/file/Path;
move-result-object p0
const-string p1, "Files.write(this, lines, charset, *options)"
invoke-static {p0, p1}, Lkotlin/jvm/internal/f0;->o(Ljava/lang/Object;Ljava/lang/String;)V
return-object p0
.end method
.method public static synthetic C(Ljava/nio/file/Path;Lkotlin/sequences/m;Ljava/nio/charset/Charset;[Ljava/nio/file/OpenOption;ILjava/lang/Object;)Ljava/nio/file/Path;
.locals 0
and-int/lit8 p4, p4, 0x2
if-eqz p4, :cond_0
.line 1
sget-object p2, Lkotlin/text/d;->a:Ljava/nio/charset/Charset;
.line 2
:cond_0
invoke-static {p1}, Lkotlin/sequences/SequencesKt___SequencesKt;->G(Lkotlin/sequences/m;)Ljava/lang/Iterable;
move-result-object p1
array-length p4, p3
invoke-static {p3, p4}, Ljava/util/Arrays;->copyOf([Ljava/lang/Object;I)[Ljava/lang/Object;
move-result-object p3
check-cast p3, [Ljava/nio/file/OpenOption;
invoke-static {p0, p1, p2, p3}, Ljava/nio/file/Files;->write(Ljava/nio/file/Path;Ljava/lang/Iterable;Ljava/nio/charset/Charset;[Ljava/nio/file/OpenOption;)Ljava/nio/file/Path;
move-result-object p0
const-string p1, "Files.write(this, lines.\u2026ble(), charset, *options)"
invoke-static {p0, p1}, Lkotlin/jvm/internal/f0;->o(Ljava/lang/Object;Ljava/lang/String;)V
return-object p0
.end method
.method public static final varargs D(Ljava/nio/file/Path;Ljava/lang/CharSequence;Ljava/nio/charset/Charset;[Ljava/nio/file/OpenOption;)V
.locals 1
.param p0 # Ljava/nio/file/Path;
.annotation build Lorg/jetbrains/annotations/NotNull;
.end annotation
.end param
.param p1 # Ljava/lang/CharSequence;
.annotation build Lorg/jetbrains/annotations/NotNull;
.end annotation
.end param
.param p2 # Ljava/nio/charset/Charset;
.annotation build Lorg/jetbrains/annotations/NotNull;
.end annotation
.end param
.param p3 # [Ljava/nio/file/OpenOption;
.annotation build Lorg/jetbrains/annotations/NotNull;
.end annotation
.end param
.annotation build Lkotlin/SinceKotlin;
version = "1.4"
.end annotation
.annotation build Lkotlin/io/path/ExperimentalPathApi;
.end annotation
const-string v0, "$this$writeText"
invoke-static {p0, v0}, Lkotlin/jvm/internal/f0;->p(Ljava/lang/Object;Ljava/lang/String;)V
const-string v0, "text"
invoke-static {p1, v0}, Lkotlin/jvm/internal/f0;->p(Ljava/lang/Object;Ljava/lang/String;)V
const-string v0, "charset"
invoke-static {p2, v0}, Lkotlin/jvm/internal/f0;->p(Ljava/lang/Object;Ljava/lang/String;)V
const-string v0, "options"
invoke-static {p3, v0}, Lkotlin/jvm/internal/f0;->p(Ljava/lang/Object;Ljava/lang/String;)V
.line 1
array-length v0, p3
invoke-static {p3, v0}, Ljava/util/Arrays;->copyOf([Ljava/lang/Object;I)[Ljava/lang/Object;
move-result-object p3
check-cast p3, [Ljava/nio/file/OpenOption;
invoke-static {p0, p3}, Ljava/nio/file/Files;->newOutputStream(Ljava/nio/file/Path;[Ljava/nio/file/OpenOption;)Ljava/io/OutputStream;
move-result-object p0
const-string p3, "Files.newOutputStream(this, *options)"
invoke-static {p0, p3}, Lkotlin/jvm/internal/f0;->o(Ljava/lang/Object;Ljava/lang/String;)V
new-instance p3, Ljava/io/OutputStreamWriter;
invoke-direct {p3, p0, p2}, Ljava/io/OutputStreamWriter;-><init>(Ljava/io/OutputStream;Ljava/nio/charset/Charset;)V
:try_start_0
invoke-virtual {p3, p1}, Ljava/io/OutputStreamWriter;->append(Ljava/lang/CharSequence;)Ljava/io/Writer;
:try_end_0
.catchall {:try_start_0 .. :try_end_0} :catchall_0
const/4 p0, 0x0
invoke-static {p3, p0}, Lkotlin/io/b;->a(Ljava/io/Closeable;Ljava/lang/Throwable;)V
return-void
:catchall_0
move-exception p0
:try_start_1
throw p0
:try_end_1
.catchall {:try_start_1 .. :try_end_1} :catchall_1
:catchall_1
move-exception p1
invoke-static {p3, p0}, Lkotlin/io/b;->a(Ljava/io/Closeable;Ljava/lang/Throwable;)V
throw p1
.end method
.method public static synthetic E(Ljava/nio/file/Path;Ljava/lang/CharSequence;Ljava/nio/charset/Charset;[Ljava/nio/file/OpenOption;ILjava/lang/Object;)V
.locals 0
and-int/lit8 p4, p4, 0x2
if-eqz p4, :cond_0
.line 1
sget-object p2, Lkotlin/text/d;->a:Ljava/nio/charset/Charset;
:cond_0
invoke-static {p0, p1, p2, p3}, Lbj/c;->D(Ljava/nio/file/Path;Ljava/lang/CharSequence;Ljava/nio/charset/Charset;[Ljava/nio/file/OpenOption;)V
return-void
.end method
.method public static final varargs F(Ljava/nio/file/Path;Ljava/nio/charset/Charset;[Ljava/nio/file/OpenOption;)Ljava/io/OutputStreamWriter;
.locals 2
.annotation build Lkotlin/SinceKotlin;
version = "1.4"
.end annotation
.annotation build Lkotlin/internal/InlineOnly;
.end annotation
.annotation build Lkotlin/io/path/ExperimentalPathApi;
.end annotation
.line 1
new-instance v0, Ljava/io/OutputStreamWriter;
array-length v1, p2
invoke-static {p2, v1}, Ljava/util/Arrays;->copyOf([Ljava/lang/Object;I)[Ljava/lang/Object;
move-result-object p2
check-cast p2, [Ljava/nio/file/OpenOption;
invoke-static {p0, p2}, Ljava/nio/file/Files;->newOutputStream(Ljava/nio/file/Path;[Ljava/nio/file/OpenOption;)Ljava/io/OutputStream;
move-result-object p0
invoke-direct {v0, p0, p1}, Ljava/io/OutputStreamWriter;-><init>(Ljava/io/OutputStream;Ljava/nio/charset/Charset;)V
return-object v0
.end method
.method public static synthetic G(Ljava/nio/file/Path;Ljava/nio/charset/Charset;[Ljava/nio/file/OpenOption;ILjava/lang/Object;)Ljava/io/OutputStreamWriter;
.locals 0
and-int/lit8 p3, p3, 0x1
if-eqz p3, :cond_0
.line 1
sget-object p1, Lkotlin/text/d;->a:Ljava/nio/charset/Charset;
.line 2
:cond_0
new-instance p3, Ljava/io/OutputStreamWriter;
array-length p4, p2
invoke-static {p2, p4}, Ljava/util/Arrays;->copyOf([Ljava/lang/Object;I)[Ljava/lang/Object;
move-result-object p2
check-cast p2, [Ljava/nio/file/OpenOption;
invoke-static {p0, p2}, Ljava/nio/file/Files;->newOutputStream(Ljava/nio/file/Path;[Ljava/nio/file/OpenOption;)Ljava/io/OutputStream;
move-result-object p0
invoke-direct {p3, p0, p1}, Ljava/io/OutputStreamWriter;-><init>(Ljava/io/OutputStream;Ljava/nio/charset/Charset;)V
return-object p3
.end method
.method public static final a(Ljava/nio/file/Path;[B)V
.locals 3
.annotation build Lkotlin/SinceKotlin;
version = "1.4"
.end annotation
.annotation build Lkotlin/internal/InlineOnly;
.end annotation
.annotation build Lkotlin/io/path/ExperimentalPathApi;
.end annotation
const/4 v0, 0x1
new-array v0, v0, [Ljava/nio/file/OpenOption;
.line 1
sget-object v1, Ljava/nio/file/StandardOpenOption;->APPEND:Ljava/nio/file/StandardOpenOption;
const/4 v2, 0x0
aput-object v1, v0, v2
invoke-static {p0, p1, v0}, Ljava/nio/file/Files;->write(Ljava/nio/file/Path;[B[Ljava/nio/file/OpenOption;)Ljava/nio/file/Path;
return-void
.end method
.method public static final b(Ljava/nio/file/Path;Ljava/lang/Iterable;Ljava/nio/charset/Charset;)Ljava/nio/file/Path;
.locals 3
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Ljava/nio/file/Path;",
"Ljava/lang/Iterable<",
"+",
"Ljava/lang/CharSequence;",
">;",
"Ljava/nio/charset/Charset;",
")",
"Ljava/nio/file/Path;"
}
.end annotation
.annotation build Lkotlin/SinceKotlin;
version = "1.4"
.end annotation
.annotation build Lkotlin/internal/InlineOnly;
.end annotation
.annotation build Lkotlin/io/path/ExperimentalPathApi;
.end annotation
const/4 v0, 0x1
new-array v0, v0, [Ljava/nio/file/OpenOption;
.line 1
sget-object v1, Ljava/nio/file/StandardOpenOption;->APPEND:Ljava/nio/file/StandardOpenOption;
const/4 v2, 0x0
aput-object v1, v0, v2
invoke-static {p0, p1, p2, v0}, Ljava/nio/file/Files;->write(Ljava/nio/file/Path;Ljava/lang/Iterable;Ljava/nio/charset/Charset;[Ljava/nio/file/OpenOption;)Ljava/nio/file/Path;
move-result-object p0
const-string p1, "Files.write(this, lines,\u2026tandardOpenOption.APPEND)"
invoke-static {p0, p1}, Lkotlin/jvm/internal/f0;->o(Ljava/lang/Object;Ljava/lang/String;)V
return-object p0
.end method
.method public static final c(Ljava/nio/file/Path;Lkotlin/sequences/m;Ljava/nio/charset/Charset;)Ljava/nio/file/Path;
.locals 3
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Ljava/nio/file/Path;",
"Lkotlin/sequences/m<",
"+",
"Ljava/lang/CharSequence;",
">;",
"Ljava/nio/charset/Charset;",
")",
"Ljava/nio/file/Path;"
}
.end annotation
.annotation build Lkotlin/SinceKotlin;
version = "1.4"
.end annotation
.annotation build Lkotlin/internal/InlineOnly;
.end annotation
.annotation build Lkotlin/io/path/ExperimentalPathApi;
.end annotation
.line 1
invoke-static {p1}, Lkotlin/sequences/SequencesKt___SequencesKt;->G(Lkotlin/sequences/m;)Ljava/lang/Iterable;
move-result-object p1
const/4 v0, 0x1
new-array v0, v0, [Ljava/nio/file/OpenOption;
sget-object v1, Ljava/nio/file/StandardOpenOption;->APPEND:Ljava/nio/file/StandardOpenOption;
const/4 v2, 0x0
aput-object v1, v0, v2
invoke-static {p0, p1, p2, v0}, Ljava/nio/file/Files;->write(Ljava/nio/file/Path;Ljava/lang/Iterable;Ljava/nio/charset/Charset;[Ljava/nio/file/OpenOption;)Ljava/nio/file/Path;
move-result-object p0
const-string p1, "Files.write(this, lines.\u2026tandardOpenOption.APPEND)"
invoke-static {p0, p1}, Lkotlin/jvm/internal/f0;->o(Ljava/lang/Object;Ljava/lang/String;)V
return-object p0
.end method
.method public static synthetic d(Ljava/nio/file/Path;Ljava/lang/Iterable;Ljava/nio/charset/Charset;ILjava/lang/Object;)Ljava/nio/file/Path;
.locals 1
and-int/lit8 p3, p3, 0x2
if-eqz p3, :cond_0
.line 1
sget-object p2, Lkotlin/text/d;->a:Ljava/nio/charset/Charset;
:cond_0
const/4 p3, 0x1
new-array p3, p3, [Ljava/nio/file/OpenOption;
const/4 p4, 0x0
.line 2
sget-object v0, Ljava/nio/file/StandardOpenOption;->APPEND:Ljava/nio/file/StandardOpenOption;
aput-object v0, p3, p4
invoke-static {p0, p1, p2, p3}, Ljava/nio/file/Files;->write(Ljava/nio/file/Path;Ljava/lang/Iterable;Ljava/nio/charset/Charset;[Ljava/nio/file/OpenOption;)Ljava/nio/file/Path;
move-result-object p0
const-string p1, "Files.write(this, lines,\u2026tandardOpenOption.APPEND)"
invoke-static {p0, p1}, Lkotlin/jvm/internal/f0;->o(Ljava/lang/Object;Ljava/lang/String;)V
return-object p0
.end method
.method public static synthetic e(Ljava/nio/file/Path;Lkotlin/sequences/m;Ljava/nio/charset/Charset;ILjava/lang/Object;)Ljava/nio/file/Path;
.locals 1
and-int/lit8 p3, p3, 0x2
if-eqz p3, :cond_0
.line 1
sget-object p2, Lkotlin/text/d;->a:Ljava/nio/charset/Charset;
.line 2
:cond_0
invoke-static {p1}, Lkotlin/sequences/SequencesKt___SequencesKt;->G(Lkotlin/sequences/m;)Ljava/lang/Iterable;
move-result-object p1
const/4 p3, 0x1
new-array p3, p3, [Ljava/nio/file/OpenOption;
const/4 p4, 0x0
sget-object v0, Ljava/nio/file/StandardOpenOption;->APPEND:Ljava/nio/file/StandardOpenOption;
aput-object v0, p3, p4
invoke-static {p0, p1, p2, p3}, Ljava/nio/file/Files;->write(Ljava/nio/file/Path;Ljava/lang/Iterable;Ljava/nio/charset/Charset;[Ljava/nio/file/OpenOption;)Ljava/nio/file/Path;
move-result-object p0
const-string p1, "Files.write(this, lines.\u2026tandardOpenOption.APPEND)"
invoke-static {p0, p1}, Lkotlin/jvm/internal/f0;->o(Ljava/lang/Object;Ljava/lang/String;)V
return-object p0
.end method
.method public static final f(Ljava/nio/file/Path;Ljava/lang/CharSequence;Ljava/nio/charset/Charset;)V
.locals 3
.param p0 # Ljava/nio/file/Path;
.annotation build Lorg/jetbrains/annotations/NotNull;
.end annotation
.end param
.param p1 # Ljava/lang/CharSequence;
.annotation build Lorg/jetbrains/annotations/NotNull;
.end annotation
.end param
.param p2 # Ljava/nio/charset/Charset;
.annotation build Lorg/jetbrains/annotations/NotNull;
.end annotation
.end param
.annotation build Lkotlin/SinceKotlin;
version = "1.4"
.end annotation
.annotation build Lkotlin/io/path/ExperimentalPathApi;
.end annotation
const-string v0, "$this$appendText"
invoke-static {p0, v0}, Lkotlin/jvm/internal/f0;->p(Ljava/lang/Object;Ljava/lang/String;)V
const-string v0, "text"
invoke-static {p1, v0}, Lkotlin/jvm/internal/f0;->p(Ljava/lang/Object;Ljava/lang/String;)V
const-string v0, "charset"
invoke-static {p2, v0}, Lkotlin/jvm/internal/f0;->p(Ljava/lang/Object;Ljava/lang/String;)V
const/4 v0, 0x1
new-array v0, v0, [Ljava/nio/file/OpenOption;
.line 1
sget-object v1, Ljava/nio/file/StandardOpenOption;->APPEND:Ljava/nio/file/StandardOpenOption;
const/4 v2, 0x0
aput-object v1, v0, v2
invoke-static {p0, v0}, Ljava/nio/file/Files;->newOutputStream(Ljava/nio/file/Path;[Ljava/nio/file/OpenOption;)Ljava/io/OutputStream;
move-result-object p0
const-string v0, "Files.newOutputStream(th\u2026tandardOpenOption.APPEND)"
invoke-static {p0, v0}, Lkotlin/jvm/internal/f0;->o(Ljava/lang/Object;Ljava/lang/String;)V
new-instance v0, Ljava/io/OutputStreamWriter;
invoke-direct {v0, p0, p2}, Ljava/io/OutputStreamWriter;-><init>(Ljava/io/OutputStream;Ljava/nio/charset/Charset;)V
:try_start_0
invoke-virtual {v0, p1}, Ljava/io/OutputStreamWriter;->append(Ljava/lang/CharSequence;)Ljava/io/Writer;
:try_end_0
.catchall {:try_start_0 .. :try_end_0} :catchall_0
const/4 p0, 0x0
invoke-static {v0, p0}, Lkotlin/io/b;->a(Ljava/io/Closeable;Ljava/lang/Throwable;)V
return-void
:catchall_0
move-exception p0
:try_start_1
throw p0
:try_end_1
.catchall {:try_start_1 .. :try_end_1} :catchall_1
:catchall_1
move-exception p1
invoke-static {v0, p0}, Lkotlin/io/b;->a(Ljava/io/Closeable;Ljava/lang/Throwable;)V
throw p1
.end method
.method public static synthetic g(Ljava/nio/file/Path;Ljava/lang/CharSequence;Ljava/nio/charset/Charset;ILjava/lang/Object;)V
.locals 0
and-int/lit8 p3, p3, 0x2
if-eqz p3, :cond_0
.line 1
sget-object p2, Lkotlin/text/d;->a:Ljava/nio/charset/Charset;
:cond_0
invoke-static {p0, p1, p2}, Lbj/c;->f(Ljava/nio/file/Path;Ljava/lang/CharSequence;Ljava/nio/charset/Charset;)V
return-void
.end method
.method public static final varargs h(Ljava/nio/file/Path;Ljava/nio/charset/Charset;I[Ljava/nio/file/OpenOption;)Ljava/io/BufferedReader;
.locals 3
.annotation build Lkotlin/SinceKotlin;
version = "1.4"
.end annotation
.annotation build Lkotlin/internal/InlineOnly;
.end annotation
.annotation build Lkotlin/io/path/ExperimentalPathApi;
.end annotation
.line 1
new-instance v0, Ljava/io/BufferedReader;
.line 2
new-instance v1, Ljava/io/InputStreamReader;
.line 3
array-length v2, p3
invoke-static {p3, v2}, Ljava/util/Arrays;->copyOf([Ljava/lang/Object;I)[Ljava/lang/Object;
move-result-object p3
check-cast p3, [Ljava/nio/file/OpenOption;
invoke-static {p0, p3}, Ljava/nio/file/Files;->newInputStream(Ljava/nio/file/Path;[Ljava/nio/file/OpenOption;)Ljava/io/InputStream;
move-result-object p0
.line 4
invoke-direct {v1, p0, p1}, Ljava/io/InputStreamReader;-><init>(Ljava/io/InputStream;Ljava/nio/charset/Charset;)V
.line 5
invoke-direct {v0, v1, p2}, Ljava/io/BufferedReader;-><init>(Ljava/io/Reader;I)V
return-object v0
.end method
.method public static synthetic i(Ljava/nio/file/Path;Ljava/nio/charset/Charset;I[Ljava/nio/file/OpenOption;ILjava/lang/Object;)Ljava/io/BufferedReader;
.locals 1
and-int/lit8 p5, p4, 0x1
if-eqz p5, :cond_0
.line 1
sget-object p1, Lkotlin/text/d;->a:Ljava/nio/charset/Charset;
:cond_0
and-int/lit8 p4, p4, 0x2
if-eqz p4, :cond_1
const/16 p2, 0x2000
.line 2
:cond_1
new-instance p4, Ljava/io/BufferedReader;
.line 3
new-instance p5, Ljava/io/InputStreamReader;
.line 4
array-length v0, p3
invoke-static {p3, v0}, Ljava/util/Arrays;->copyOf([Ljava/lang/Object;I)[Ljava/lang/Object;
move-result-object p3
check-cast p3, [Ljava/nio/file/OpenOption;
invoke-static {p0, p3}, Ljava/nio/file/Files;->newInputStream(Ljava/nio/file/Path;[Ljava/nio/file/OpenOption;)Ljava/io/InputStream;
move-result-object p0
.line 5
invoke-direct {p5, p0, p1}, Ljava/io/InputStreamReader;-><init>(Ljava/io/InputStream;Ljava/nio/charset/Charset;)V
.line 6
invoke-direct {p4, p5, p2}, Ljava/io/BufferedReader;-><init>(Ljava/io/Reader;I)V
return-object p4
.end method
.method public static final varargs j(Ljava/nio/file/Path;Ljava/nio/charset/Charset;I[Ljava/nio/file/OpenOption;)Ljava/io/BufferedWriter;
.locals 3
.annotation build Lkotlin/SinceKotlin;
version = "1.4"
.end annotation
.annotation build Lkotlin/internal/InlineOnly;
.end annotation
.annotation build Lkotlin/io/path/ExperimentalPathApi;
.end annotation
.line 1
new-instance v0, Ljava/io/BufferedWriter;
.line 2
new-instance v1, Ljava/io/OutputStreamWriter;
.line 3
array-length v2, p3
invoke-static {p3, v2}, Ljava/util/Arrays;->copyOf([Ljava/lang/Object;I)[Ljava/lang/Object;
move-result-object p3
check-cast p3, [Ljava/nio/file/OpenOption;
invoke-static {p0, p3}, Ljava/nio/file/Files;->newOutputStream(Ljava/nio/file/Path;[Ljava/nio/file/OpenOption;)Ljava/io/OutputStream;
move-result-object p0
.line 4
invoke-direct {v1, p0, p1}, Ljava/io/OutputStreamWriter;-><init>(Ljava/io/OutputStream;Ljava/nio/charset/Charset;)V
.line 5
invoke-direct {v0, v1, p2}, Ljava/io/BufferedWriter;-><init>(Ljava/io/Writer;I)V
return-object v0
.end method
.method public static synthetic k(Ljava/nio/file/Path;Ljava/nio/charset/Charset;I[Ljava/nio/file/OpenOption;ILjava/lang/Object;)Ljava/io/BufferedWriter;
.locals 1
and-int/lit8 p5, p4, 0x1
if-eqz p5, :cond_0
.line 1
sget-object p1, Lkotlin/text/d;->a:Ljava/nio/charset/Charset;
:cond_0
and-int/lit8 p4, p4, 0x2
if-eqz p4, :cond_1
const/16 p2, 0x2000
.line 2
:cond_1
new-instance p4, Ljava/io/BufferedWriter;
.line 3
new-instance p5, Ljava/io/OutputStreamWriter;
.line 4
array-length v0, p3
invoke-static {p3, v0}, Ljava/util/Arrays;->copyOf([Ljava/lang/Object;I)[Ljava/lang/Object;
move-result-object p3
check-cast p3, [Ljava/nio/file/OpenOption;
invoke-static {p0, p3}, Ljava/nio/file/Files;->newOutputStream(Ljava/nio/file/Path;[Ljava/nio/file/OpenOption;)Ljava/io/OutputStream;
move-result-object p0
.line 5
invoke-direct {p5, p0, p1}, Ljava/io/OutputStreamWriter;-><init>(Ljava/io/OutputStream;Ljava/nio/charset/Charset;)V
.line 6
invoke-direct {p4, p5, p2}, Ljava/io/BufferedWriter;-><init>(Ljava/io/Writer;I)V
return-object p4
.end method
.method public static final l(Ljava/nio/file/Path;Ljava/nio/charset/Charset;Lej/l;)V
.locals 4
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Ljava/nio/file/Path;",
"Ljava/nio/charset/Charset;",
"Lej/l<",
"-",
"Ljava/lang/String;",
"Lkotlin/d1;",
">;)V"
}
.end annotation
.annotation build Lkotlin/SinceKotlin;
version = "1.4"
.end annotation
.annotation build Lkotlin/internal/InlineOnly;
.end annotation
.annotation build Lkotlin/io/path/ExperimentalPathApi;
.end annotation
.line 1
invoke-static {p0, p1}, Ljava/nio/file/Files;->newBufferedReader(Ljava/nio/file/Path;Ljava/nio/charset/Charset;)Ljava/io/BufferedReader;
move-result-object p0
const-string p1, "Files.newBufferedReader(this, charset)"
invoke-static {p0, p1}, Lkotlin/jvm/internal/f0;->o(Ljava/lang/Object;Ljava/lang/String;)V
.line 2
instance-of p1, p0, Ljava/io/BufferedReader;
if-eqz p1, :cond_0
goto :goto_0
:cond_0
new-instance p1, Ljava/io/BufferedReader;
const/16 v0, 0x2000
invoke-direct {p1, p0, v0}, Ljava/io/BufferedReader;-><init>(Ljava/io/Reader;I)V
move-object p0, p1
:goto_0
const/4 p1, 0x0
const/4 v0, 0x0
const/4 v1, 0x1
:try_start_0
invoke-static {p0}, Lkotlin/io/TextStreamsKt;->h(Ljava/io/BufferedReader;)Lkotlin/sequences/m;
move-result-object v2
.line 3
invoke-interface {v2}, Lkotlin/sequences/m;->iterator()Ljava/util/Iterator;
move-result-object v2
:goto_1
invoke-interface {v2}, Ljava/util/Iterator;->hasNext()Z
move-result v3
if-eqz v3, :cond_1
invoke-interface {v2}, Ljava/util/Iterator;->next()Ljava/lang/Object;
move-result-object v3
invoke-interface {p2, v3}, Lej/l;->invoke(Ljava/lang/Object;)Ljava/lang/Object;
goto :goto_1
.line 4
:cond_1
sget-object p2, Lkotlin/d1;->a:Lkotlin/d1;
:try_end_0
.catchall {:try_start_0 .. :try_end_0} :catchall_0
.line 5
invoke-static {v1}, Lkotlin/jvm/internal/c0;->d(I)V
invoke-static {v1, v1, v0}, Lyi/b;->a(III)Z
move-result p2
if-eqz p2, :cond_2
invoke-static {p0, p1}, Lkotlin/io/b;->a(Ljava/io/Closeable;Ljava/lang/Throwable;)V
goto :goto_2
:cond_2
invoke-interface {p0}, Ljava/io/Closeable;->close()V
:goto_2
invoke-static {v1}, Lkotlin/jvm/internal/c0;->c(I)V
return-void
:catchall_0
move-exception p1
:try_start_1
throw p1
:try_end_1
.catchall {:try_start_1 .. :try_end_1} :catchall_1
:catchall_1
move-exception p2
invoke-static {v1}, Lkotlin/jvm/internal/c0;->d(I)V
invoke-static {v1, v1, v0}, Lyi/b;->a(III)Z
move-result v0
if-nez v0, :cond_3
:try_start_2
invoke-interface {p0}, Ljava/io/Closeable;->close()V
:try_end_2
.catchall {:try_start_2 .. :try_end_2} :catchall_2
goto :goto_3
:cond_3
invoke-static {p0, p1}, Lkotlin/io/b;->a(Ljava/io/Closeable;Ljava/lang/Throwable;)V
:catchall_2
:goto_3
invoke-static {v1}, Lkotlin/jvm/internal/c0;->c(I)V
throw p2
.end method
.method public static synthetic m(Ljava/nio/file/Path;Ljava/nio/charset/Charset;Lej/l;ILjava/lang/Object;)V
.locals 2
const/4 p4, 0x1
and-int/2addr p3, p4
if-eqz p3, :cond_0
.line 1
sget-object p1, Lkotlin/text/d;->a:Ljava/nio/charset/Charset;
.line 2
:cond_0
invoke-static {p0, p1}, Ljava/nio/file/Files;->newBufferedReader(Ljava/nio/file/Path;Ljava/nio/charset/Charset;)Ljava/io/BufferedReader;
move-result-object p0
const-string p1, "Files.newBufferedReader(this, charset)"
invoke-static {p0, p1}, Lkotlin/jvm/internal/f0;->o(Ljava/lang/Object;Ljava/lang/String;)V
const/16 p1, 0x2000
.line 3
instance-of p3, p0, Ljava/io/BufferedReader;
if-eqz p3, :cond_1
goto :goto_0
:cond_1
new-instance p3, Ljava/io/BufferedReader;
invoke-direct {p3, p0, p1}, Ljava/io/BufferedReader;-><init>(Ljava/io/Reader;I)V
move-object p0, p3
:goto_0
const/4 p1, 0x0
const/4 p3, 0x0
:try_start_0
invoke-static {p0}, Lkotlin/io/TextStreamsKt;->h(Ljava/io/BufferedReader;)Lkotlin/sequences/m;
move-result-object v0
.line 4
invoke-interface {v0}, Lkotlin/sequences/m;->iterator()Ljava/util/Iterator;
move-result-object v0
:goto_1
invoke-interface {v0}, Ljava/util/Iterator;->hasNext()Z
move-result v1
if-eqz v1, :cond_2
invoke-interface {v0}, Ljava/util/Iterator;->next()Ljava/lang/Object;
move-result-object v1
invoke-interface {p2, v1}, Lej/l;->invoke(Ljava/lang/Object;)Ljava/lang/Object;
goto :goto_1
.line 5
:cond_2
sget-object p2, Lkotlin/d1;->a:Lkotlin/d1;
:try_end_0
.catchall {:try_start_0 .. :try_end_0} :catchall_0
.line 6
invoke-static {p4}, Lkotlin/jvm/internal/c0;->d(I)V
invoke-static {p4, p4, p3}, Lyi/b;->a(III)Z
move-result p2
if-eqz p2, :cond_3
invoke-static {p0, p1}, Lkotlin/io/b;->a(Ljava/io/Closeable;Ljava/lang/Throwable;)V
goto :goto_2
:cond_3
invoke-interface {p0}, Ljava/io/Closeable;->close()V
:goto_2
invoke-static {p4}, Lkotlin/jvm/internal/c0;->c(I)V
return-void
:catchall_0
move-exception p1
:try_start_1
throw p1
:try_end_1
.catchall {:try_start_1 .. :try_end_1} :catchall_1
:catchall_1
move-exception p2
invoke-static {p4}, Lkotlin/jvm/internal/c0;->d(I)V
invoke-static {p4, p4, p3}, Lyi/b;->a(III)Z
move-result p3
if-nez p3, :cond_4
:try_start_2
invoke-interface {p0}, Ljava/io/Closeable;->close()V
:try_end_2
.catchall {:try_start_2 .. :try_end_2} :catchall_2
goto :goto_3
:cond_4
invoke-static {p0, p1}, Lkotlin/io/b;->a(Ljava/io/Closeable;Ljava/lang/Throwable;)V
:catchall_2
:goto_3
invoke-static {p4}, Lkotlin/jvm/internal/c0;->c(I)V
throw p2
.end method
.method public static final varargs n(Ljava/nio/file/Path;[Ljava/nio/file/OpenOption;)Ljava/io/InputStream;
.locals 1
.annotation build Lkotlin/SinceKotlin;
version = "1.4"
.end annotation
.annotation build Lkotlin/internal/InlineOnly;
.end annotation
.annotation build Lkotlin/io/path/ExperimentalPathApi;
.end annotation
.line 1
array-length v0, p1
invoke-static {p1, v0}, Ljava/util/Arrays;->copyOf([Ljava/lang/Object;I)[Ljava/lang/Object;
move-result-object p1
check-cast p1, [Ljava/nio/file/OpenOption;
invoke-static {p0, p1}, Ljava/nio/file/Files;->newInputStream(Ljava/nio/file/Path;[Ljava/nio/file/OpenOption;)Ljava/io/InputStream;
move-result-object p0
const-string p1, "Files.newInputStream(this, *options)"
invoke-static {p0, p1}, Lkotlin/jvm/internal/f0;->o(Ljava/lang/Object;Ljava/lang/String;)V
return-object p0
.end method
.method public static final varargs o(Ljava/nio/file/Path;[Ljava/nio/file/OpenOption;)Ljava/io/OutputStream;
.locals 1
.annotation build Lkotlin/SinceKotlin;
version = "1.4"
.end annotation
.annotation build Lkotlin/internal/InlineOnly;
.end annotation
.annotation build Lkotlin/io/path/ExperimentalPathApi;
.end annotation
.line 1
array-length v0, p1
invoke-static {p1, v0}, Ljava/util/Arrays;->copyOf([Ljava/lang/Object;I)[Ljava/lang/Object;
move-result-object p1
check-cast p1, [Ljava/nio/file/OpenOption;
invoke-static {p0, p1}, Ljava/nio/file/Files;->newOutputStream(Ljava/nio/file/Path;[Ljava/nio/file/OpenOption;)Ljava/io/OutputStream;
move-result-object p0
const-string p1, "Files.newOutputStream(this, *options)"
invoke-static {p0, p1}, Lkotlin/jvm/internal/f0;->o(Ljava/lang/Object;Ljava/lang/String;)V
return-object p0
.end method
.method public static final p(Ljava/nio/file/Path;)[B
.locals 1
.annotation build Lkotlin/SinceKotlin;
version = "1.4"
.end annotation
.annotation build Lkotlin/internal/InlineOnly;
.end annotation
.annotation build Lkotlin/io/path/ExperimentalPathApi;
.end annotation
.line 1
invoke-static {p0}, Ljava/nio/file/Files;->readAllBytes(Ljava/nio/file/Path;)[B
move-result-object p0
const-string v0, "Files.readAllBytes(this)"
invoke-static {p0, v0}, Lkotlin/jvm/internal/f0;->o(Ljava/lang/Object;Ljava/lang/String;)V
return-object p0
.end method
.method public static final q(Ljava/nio/file/Path;Ljava/nio/charset/Charset;)Ljava/util/List;
.locals 0
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Ljava/nio/file/Path;",
"Ljava/nio/charset/Charset;",
")",
"Ljava/util/List<",
"Ljava/lang/String;",
">;"
}
.end annotation
.annotation build Lkotlin/SinceKotlin;
version = "1.4"
.end annotation
.annotation build Lkotlin/internal/InlineOnly;
.end annotation
.annotation build Lkotlin/io/path/ExperimentalPathApi;
.end annotation
.line 1
invoke-static {p0, p1}, Ljava/nio/file/Files;->readAllLines(Ljava/nio/file/Path;Ljava/nio/charset/Charset;)Ljava/util/List;
move-result-object p0
const-string p1, "Files.readAllLines(this, charset)"
invoke-static {p0, p1}, Lkotlin/jvm/internal/f0;->o(Ljava/lang/Object;Ljava/lang/String;)V
return-object p0
.end method
.method public static synthetic r(Ljava/nio/file/Path;Ljava/nio/charset/Charset;ILjava/lang/Object;)Ljava/util/List;
.locals 0
and-int/lit8 p2, p2, 0x1
if-eqz p2, :cond_0
.line 1
sget-object p1, Lkotlin/text/d;->a:Ljava/nio/charset/Charset;
.line 2
:cond_0
invoke-static {p0, p1}, Ljava/nio/file/Files;->readAllLines(Ljava/nio/file/Path;Ljava/nio/charset/Charset;)Ljava/util/List;
move-result-object p0
const-string p1, "Files.readAllLines(this, charset)"
invoke-static {p0, p1}, Lkotlin/jvm/internal/f0;->o(Ljava/lang/Object;Ljava/lang/String;)V
return-object p0
.end method
.method public static final s(Ljava/nio/file/Path;Ljava/nio/charset/Charset;)Ljava/lang/String;
.locals 3
.param p0 # Ljava/nio/file/Path;
.annotation build Lorg/jetbrains/annotations/NotNull;
.end annotation
.end param
.param p1 # Ljava/nio/charset/Charset;
.annotation build Lorg/jetbrains/annotations/NotNull;
.end annotation
.end param
.annotation build Lkotlin/SinceKotlin;
version = "1.4"
.end annotation
.annotation build Lkotlin/io/path/ExperimentalPathApi;
.end annotation
.annotation build Lorg/jetbrains/annotations/NotNull;
.end annotation
const-string v0, "$this$readText"
invoke-static {p0, v0}, Lkotlin/jvm/internal/f0;->p(Ljava/lang/Object;Ljava/lang/String;)V
const-string v0, "charset"
invoke-static {p1, v0}, Lkotlin/jvm/internal/f0;->p(Ljava/lang/Object;Ljava/lang/String;)V
const/4 v0, 0x0
new-array v1, v0, [Ljava/nio/file/OpenOption;
.line 1
new-instance v2, Ljava/io/InputStreamReader;
invoke-static {v1, v0}, Ljava/util/Arrays;->copyOf([Ljava/lang/Object;I)[Ljava/lang/Object;
move-result-object v0
check-cast v0, [Ljava/nio/file/OpenOption;
invoke-static {p0, v0}, Ljava/nio/file/Files;->newInputStream(Ljava/nio/file/Path;[Ljava/nio/file/OpenOption;)Ljava/io/InputStream;
move-result-object p0
invoke-direct {v2, p0, p1}, Ljava/io/InputStreamReader;-><init>(Ljava/io/InputStream;Ljava/nio/charset/Charset;)V
:try_start_0
invoke-static {v2}, Lkotlin/io/TextStreamsKt;->k(Ljava/io/Reader;)Ljava/lang/String;
move-result-object p0
:try_end_0
.catchall {:try_start_0 .. :try_end_0} :catchall_0
const/4 p1, 0x0
invoke-static {v2, p1}, Lkotlin/io/b;->a(Ljava/io/Closeable;Ljava/lang/Throwable;)V
return-object p0
:catchall_0
move-exception p0
:try_start_1
throw p0
:try_end_1
.catchall {:try_start_1 .. :try_end_1} :catchall_1
:catchall_1
move-exception p1
invoke-static {v2, p0}, Lkotlin/io/b;->a(Ljava/io/Closeable;Ljava/lang/Throwable;)V
throw p1
.end method
.method public static synthetic t(Ljava/nio/file/Path;Ljava/nio/charset/Charset;ILjava/lang/Object;)Ljava/lang/String;
.locals 0
and-int/lit8 p2, p2, 0x1
if-eqz p2, :cond_0
.line 1
sget-object p1, Lkotlin/text/d;->a:Ljava/nio/charset/Charset;
:cond_0
invoke-static {p0, p1}, Lbj/c;->s(Ljava/nio/file/Path;Ljava/nio/charset/Charset;)Ljava/lang/String;
move-result-object p0
return-object p0
.end method
.method public static final varargs u(Ljava/nio/file/Path;Ljava/nio/charset/Charset;[Ljava/nio/file/OpenOption;)Ljava/io/InputStreamReader;
.locals 2
.annotation build Lkotlin/SinceKotlin;
version = "1.4"
.end annotation
.annotation build Lkotlin/internal/InlineOnly;
.end annotation
.annotation build Lkotlin/io/path/ExperimentalPathApi;
.end annotation
.line 1
new-instance v0, Ljava/io/InputStreamReader;
array-length v1, p2
invoke-static {p2, v1}, Ljava/util/Arrays;->copyOf([Ljava/lang/Object;I)[Ljava/lang/Object;
move-result-object p2
check-cast p2, [Ljava/nio/file/OpenOption;
invoke-static {p0, p2}, Ljava/nio/file/Files;->newInputStream(Ljava/nio/file/Path;[Ljava/nio/file/OpenOption;)Ljava/io/InputStream;
move-result-object p0
invoke-direct {v0, p0, p1}, Ljava/io/InputStreamReader;-><init>(Ljava/io/InputStream;Ljava/nio/charset/Charset;)V
return-object v0
.end method
.method public static synthetic v(Ljava/nio/file/Path;Ljava/nio/charset/Charset;[Ljava/nio/file/OpenOption;ILjava/lang/Object;)Ljava/io/InputStreamReader;
.locals 0
and-int/lit8 p3, p3, 0x1
if-eqz p3, :cond_0
.line 1
sget-object p1, Lkotlin/text/d;->a:Ljava/nio/charset/Charset;
.line 2
:cond_0
new-instance p3, Ljava/io/InputStreamReader;
array-length p4, p2
invoke-static {p2, p4}, Ljava/util/Arrays;->copyOf([Ljava/lang/Object;I)[Ljava/lang/Object;
move-result-object p2
check-cast p2, [Ljava/nio/file/OpenOption;
invoke-static {p0, p2}, Ljava/nio/file/Files;->newInputStream(Ljava/nio/file/Path;[Ljava/nio/file/OpenOption;)Ljava/io/InputStream;
move-result-object p0
invoke-direct {p3, p0, p1}, Ljava/io/InputStreamReader;-><init>(Ljava/io/InputStream;Ljava/nio/charset/Charset;)V
return-object p3
.end method
.method public static final w(Ljava/nio/file/Path;Ljava/nio/charset/Charset;Lej/l;)Ljava/lang/Object;
.locals 2
.annotation system Ldalvik/annotation/Signature;
value = {
"<T:",
"Ljava/lang/Object;",
">(",
"Ljava/nio/file/Path;",
"Ljava/nio/charset/Charset;",
"Lej/l<",
"-",
"Lkotlin/sequences/m<",
"Ljava/lang/String;",
">;+TT;>;)TT;"
}
.end annotation
.annotation build Lkotlin/SinceKotlin;
version = "1.4"
.end annotation
.annotation build Lkotlin/internal/InlineOnly;
.end annotation
.annotation build Lkotlin/io/path/ExperimentalPathApi;
.end annotation
.line 1
invoke-static {p0, p1}, Ljava/nio/file/Files;->newBufferedReader(Ljava/nio/file/Path;Ljava/nio/charset/Charset;)Ljava/io/BufferedReader;
move-result-object p0
const/4 p1, 0x0
const/4 v0, 0x1
:try_start_0
const-string v1, "it"
invoke-static {p0, v1}, Lkotlin/jvm/internal/f0;->o(Ljava/lang/Object;Ljava/lang/String;)V
invoke-static {p0}, Lkotlin/io/TextStreamsKt;->h(Ljava/io/BufferedReader;)Lkotlin/sequences/m;
move-result-object v1
invoke-interface {p2, v1}, Lej/l;->invoke(Ljava/lang/Object;)Ljava/lang/Object;
move-result-object p2
:try_end_0
.catchall {:try_start_0 .. :try_end_0} :catchall_0
invoke-static {v0}, Lkotlin/jvm/internal/c0;->d(I)V
invoke-static {v0, v0, p1}, Lyi/b;->a(III)Z
move-result p1
if-eqz p1, :cond_0
const/4 p1, 0x0
invoke-static {p0, p1}, Lkotlin/io/b;->a(Ljava/io/Closeable;Ljava/lang/Throwable;)V
goto :goto_0
:cond_0
if-nez p0, :cond_1
goto :goto_0
:cond_1
invoke-interface {p0}, Ljava/io/Closeable;->close()V
:goto_0
invoke-static {v0}, Lkotlin/jvm/internal/c0;->c(I)V
return-object p2
:catchall_0
move-exception p2
:try_start_1
throw p2
:try_end_1
.catchall {:try_start_1 .. :try_end_1} :catchall_1
:catchall_1
move-exception v1
invoke-static {v0}, Lkotlin/jvm/internal/c0;->d(I)V
invoke-static {v0, v0, p1}, Lyi/b;->a(III)Z
move-result p1
if-nez p1, :cond_2
if-eqz p0, :cond_3
:try_start_2
invoke-interface {p0}, Ljava/io/Closeable;->close()V
:try_end_2
.catchall {:try_start_2 .. :try_end_2} :catchall_2
goto :goto_1
:cond_2
invoke-static {p0, p2}, Lkotlin/io/b;->a(Ljava/io/Closeable;Ljava/lang/Throwable;)V
:catchall_2
:cond_3
:goto_1
invoke-static {v0}, Lkotlin/jvm/internal/c0;->c(I)V
throw v1
.end method
.method public static synthetic x(Ljava/nio/file/Path;Ljava/nio/charset/Charset;Lej/l;ILjava/lang/Object;)Ljava/lang/Object;
.locals 1
const/4 p4, 0x1
and-int/2addr p3, p4
if-eqz p3, :cond_0
.line 1
sget-object p1, Lkotlin/text/d;->a:Ljava/nio/charset/Charset;
.line 2
:cond_0
invoke-static {p0, p1}, Ljava/nio/file/Files;->newBufferedReader(Ljava/nio/file/Path;Ljava/nio/charset/Charset;)Ljava/io/BufferedReader;
move-result-object p0
const/4 p1, 0x0
const/4 p3, 0x0
:try_start_0
const-string v0, "it"
invoke-static {p0, v0}, Lkotlin/jvm/internal/f0;->o(Ljava/lang/Object;Ljava/lang/String;)V
invoke-static {p0}, Lkotlin/io/TextStreamsKt;->h(Ljava/io/BufferedReader;)Lkotlin/sequences/m;
move-result-object v0
invoke-interface {p2, v0}, Lej/l;->invoke(Ljava/lang/Object;)Ljava/lang/Object;
move-result-object p2
:try_end_0
.catchall {:try_start_0 .. :try_end_0} :catchall_0
invoke-static {p4}, Lkotlin/jvm/internal/c0;->d(I)V
invoke-static {p4, p4, p3}, Lyi/b;->a(III)Z
move-result p3
if-eqz p3, :cond_1
invoke-static {p0, p1}, Lkotlin/io/b;->a(Ljava/io/Closeable;Ljava/lang/Throwable;)V
goto :goto_0
:cond_1
if-nez p0, :cond_2
goto :goto_0
:cond_2
invoke-interface {p0}, Ljava/io/Closeable;->close()V
:goto_0
invoke-static {p4}, Lkotlin/jvm/internal/c0;->c(I)V
return-object p2
:catchall_0
move-exception p1
:try_start_1
throw p1
:try_end_1
.catchall {:try_start_1 .. :try_end_1} :catchall_1
:catchall_1
move-exception p2
invoke-static {p4}, Lkotlin/jvm/internal/c0;->d(I)V
invoke-static {p4, p4, p3}, Lyi/b;->a(III)Z
move-result p3
if-nez p3, :cond_3
if-eqz p0, :cond_4
:try_start_2
invoke-interface {p0}, Ljava/io/Closeable;->close()V
:try_end_2
.catchall {:try_start_2 .. :try_end_2} :catchall_2
goto :goto_1
:cond_3
invoke-static {p0, p1}, Lkotlin/io/b;->a(Ljava/io/Closeable;Ljava/lang/Throwable;)V
:catchall_2
:cond_4
:goto_1
invoke-static {p4}, Lkotlin/jvm/internal/c0;->c(I)V
throw p2
.end method
.method public static final varargs y(Ljava/nio/file/Path;[B[Ljava/nio/file/OpenOption;)V
.locals 1
.annotation build Lkotlin/SinceKotlin;
version = "1.4"
.end annotation
.annotation build Lkotlin/internal/InlineOnly;
.end annotation
.annotation build Lkotlin/io/path/ExperimentalPathApi;
.end annotation
.line 1
array-length v0, p2
invoke-static {p2, v0}, Ljava/util/Arrays;->copyOf([Ljava/lang/Object;I)[Ljava/lang/Object;
move-result-object p2
check-cast p2, [Ljava/nio/file/OpenOption;
invoke-static {p0, p1, p2}, Ljava/nio/file/Files;->write(Ljava/nio/file/Path;[B[Ljava/nio/file/OpenOption;)Ljava/nio/file/Path;
return-void
.end method
.method public static final varargs z(Ljava/nio/file/Path;Ljava/lang/Iterable;Ljava/nio/charset/Charset;[Ljava/nio/file/OpenOption;)Ljava/nio/file/Path;
.locals 1
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Ljava/nio/file/Path;",
"Ljava/lang/Iterable<",
"+",
"Ljava/lang/CharSequence;",
">;",
"Ljava/nio/charset/Charset;",
"[",
"Ljava/nio/file/OpenOption;",
")",
"Ljava/nio/file/Path;"
}
.end annotation
.annotation build Lkotlin/SinceKotlin;
version = "1.4"
.end annotation
.annotation build Lkotlin/internal/InlineOnly;
.end annotation
.annotation build Lkotlin/io/path/ExperimentalPathApi;
.end annotation
.line 1
array-length v0, p3
invoke-static {p3, v0}, Ljava/util/Arrays;->copyOf([Ljava/lang/Object;I)[Ljava/lang/Object;
move-result-object p3
check-cast p3, [Ljava/nio/file/OpenOption;
invoke-static {p0, p1, p2, p3}, Ljava/nio/file/Files;->write(Ljava/nio/file/Path;Ljava/lang/Iterable;Ljava/nio/charset/Charset;[Ljava/nio/file/OpenOption;)Ljava/nio/file/Path;
move-result-object p0
const-string p1, "Files.write(this, lines, charset, *options)"
invoke-static {p0, p1}, Lkotlin/jvm/internal/f0;->o(Ljava/lang/Object;Ljava/lang/String;)V
return-object p0
.end method