.class Lkotlin/io/path/PathsKt__PathReadWriteKt; .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,326:1\n1#2:327\n1#2:329\n53#3:328\n1290#4,2:330\n*S KotlinDebug\n*F\n+ 1 PathReadWrite.kt\nkotlin/io/path/PathsKt__PathReadWriteKt\n*L\n202#1:329\n202#1:328\n202#1:330,2\n*E\n" .end annotation .annotation runtime Lkotlin/Metadata; d1 = { "\u0000\u0082\u0001\n\u0000\n\u0002\u0010\u0002\n\u0002\u0018\u0002\n\u0000\n\u0002\u0010\u0012\n\u0002\u0008\u0002\n\u0002\u0010\u001c\n\u0002\u0010\r\n\u0000\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\u0008\u0003\n\u0002\u0018\u0002\n\u0000\n\u0002\u0010\u0008\n\u0000\n\u0002\u0010\u0011\n\u0002\u0018\u0002\n\u0002\u0008\u0002\n\u0002\u0018\u0002\n\u0002\u0008\u0003\n\u0002\u0018\u0002\n\u0002\u0010\u000e\n\u0002\u0018\u0002\n\u0002\u0008\u0003\n\u0002\u0018\u0002\n\u0002\u0008\u0002\n\u0002\u0018\u0002\n\u0002\u0008\u0003\n\u0002\u0010 \n\u0002\u0008\u0002\n\u0002\u0018\u0002\n\u0002\u0008\r\n\u0002\u0018\u0002\n\u0002\u0008\u0002\u001a\u0015\u0010\u0000\u001a\u00020\u0001*\u00020\u00022\u0006\u0010\u0003\u001a\u00020\u0004H\u0087\u0008\u001a%\u0010\u0005\u001a\u00020\u0002*\u00020\u00022\u000c\u0010\u0006\u001a\u0008\u0012\u0004\u0012\u00020\u00080\u00072\u0008\u0008\u0002\u0010\t\u001a\u00020\nH\u0087\u0008\u001a%\u0010\u0005\u001a\u00020\u0002*\u00020\u00022\u000c\u0010\u0006\u001a\u0008\u0012\u0004\u0012\u00020\u00080\u000b2\u0008\u0008\u0002\u0010\t\u001a\u00020\nH\u0087\u0008\u001a\u001e\u0010\u000c\u001a\u00020\u0001*\u00020\u00022\u0006\u0010\r\u001a\u00020\u00082\u0008\u0008\u0002\u0010\t\u001a\u00020\nH\u0007\u001a:\u0010\u000e\u001a\u00020\u000f*\u00020\u00022\u0008\u0008\u0002\u0010\t\u001a\u00020\n2\u0008\u0008\u0002\u0010\u0010\u001a\u00020\u00112\u0012\u0010\u0012\u001a\n\u0012\u0006\u0008\u0001\u0012\u00020\u00140\u0013\"\u00020\u0014H\u0087\u0008\u00a2\u0006\u0002\u0010\u0015\u001a:\u0010\u0016\u001a\u00020\u0017*\u00020\u00022\u0008\u0008\u0002\u0010\t\u001a\u00020\n2\u0008\u0008\u0002\u0010\u0010\u001a\u00020\u00112\u0012\u0010\u0012\u001a\n\u0012\u0006\u0008\u0001\u0012\u00020\u00140\u0013\"\u00020\u0014H\u0087\u0008\u00a2\u0006\u0002\u0010\u0018\u001a=\u0010\u0019\u001a\u00020\u0001*\u00020\u00022\u0008\u0008\u0002\u0010\t\u001a\u00020\n2!\u0010\u001a\u001a\u001d\u0012\u0013\u0012\u00110\u001c\u00a2\u0006\u000c\u0008\u001d\u0012\u0008\u0008\u001e\u0012\u0004\u0008\u0008(\u001f\u0012\u0004\u0012\u00020\u00010\u001bH\u0087\u0008\u00f8\u0001\u0000\u001a&\u0010 \u001a\u00020!*\u00020\u00022\u0012\u0010\u0012\u001a\n\u0012\u0006\u0008\u0001\u0012\u00020\u00140\u0013\"\u00020\u0014H\u0087\u0008\u00a2\u0006\u0002\u0010\"\u001a&\u0010#\u001a\u00020$*\u00020\u00022\u0012\u0010\u0012\u001a\n\u0012\u0006\u0008\u0001\u0012\u00020\u00140\u0013\"\u00020\u0014H\u0087\u0008\u00a2\u0006\u0002\u0010%\u001a\r\u0010&\u001a\u00020\u0004*\u00020\u0002H\u0087\u0008\u001a\u001d\u0010\'\u001a\u0008\u0012\u0004\u0012\u00020\u001c0(*\u00020\u00022\u0008\u0008\u0002\u0010\t\u001a\u00020\nH\u0087\u0008\u001a\u0016\u0010)\u001a\u00020\u001c*\u00020\u00022\u0008\u0008\u0002\u0010\t\u001a\u00020\nH\u0007\u001a0\u0010*\u001a\u00020+*\u00020\u00022\u0008\u0008\u0002\u0010\t\u001a\u00020\n2\u0012\u0010\u0012\u001a\n\u0012\u0006\u0008\u0001\u0012\u00020\u00140\u0013\"\u00020\u0014H\u0087\u0008\u00a2\u0006\u0002\u0010,\u001a?\u0010-\u001a\u0002H.\"\u0004\u0008\u0000\u0010.*\u00020\u00022\u0008\u0008\u0002\u0010\t\u001a\u00020\n2\u0018\u0010/\u001a\u0014\u0012\n\u0012\u0008\u0012\u0004\u0012\u00020\u001c0\u000b\u0012\u0004\u0012\u0002H.0\u001bH\u0087\u0008\u00f8\u0001\u0000\u00a2\u0006\u0002\u00100\u001a.\u00101\u001a\u00020\u0001*\u00020\u00022\u0006\u0010\u0003\u001a\u00020\u00042\u0012\u0010\u0012\u001a\n\u0012\u0006\u0008\u0001\u0012\u00020\u00140\u0013\"\u00020\u0014H\u0087\u0008\u00a2\u0006\u0002\u00102\u001a>\u00103\u001a\u00020\u0002*\u00020\u00022\u000c\u0010\u0006\u001a\u0008\u0012\u0004\u0012\u00020\u00080\u00072\u0008\u0008\u0002\u0010\t\u001a\u00020\n2\u0012\u0010\u0012\u001a\n\u0012\u0006\u0008\u0001\u0012\u00020\u00140\u0013\"\u00020\u0014H\u0087\u0008\u00a2\u0006\u0002\u00104\u001a>\u00103\u001a\u00020\u0002*\u00020\u00022\u000c\u0010\u0006\u001a\u0008\u0012\u0004\u0012\u00020\u00080\u000b2\u0008\u0008\u0002\u0010\t\u001a\u00020\n2\u0012\u0010\u0012\u001a\n\u0012\u0006\u0008\u0001\u0012\u00020\u00140\u0013\"\u00020\u0014H\u0087\u0008\u00a2\u0006\u0002\u00105\u001a7\u00106\u001a\u00020\u0001*\u00020\u00022\u0006\u0010\r\u001a\u00020\u00082\u0008\u0008\u0002\u0010\t\u001a\u00020\n2\u0012\u0010\u0012\u001a\n\u0012\u0006\u0008\u0001\u0012\u00020\u00140\u0013\"\u00020\u0014H\u0007\u00a2\u0006\u0002\u00107\u001a0\u00108\u001a\u000209*\u00020\u00022\u0008\u0008\u0002\u0010\t\u001a\u00020\n2\u0012\u0010\u0012\u001a\n\u0012\u0006\u0008\u0001\u0012\u00020\u00140\u0013\"\u00020\u0014H\u0087\u0008\u00a2\u0006\u0002\u0010:\u0082\u0002\u0007\n\u0005\u0008\u009920\u0001\u00a8\u0006;" } d2 = { "appendBytes", "", "Ljava/nio/file/Path;", "array", "", "appendLines", "lines", "", "", "charset", "Ljava/nio/charset/Charset;", "Lkotlin/sequences/Sequence;", "appendText", "text", "bufferedReader", "Ljava/io/BufferedReader;", "bufferSize", "", "options", "", "Ljava/nio/file/OpenOption;", "(Ljava/nio/file/Path;Ljava/nio/charset/Charset;I[Ljava/nio/file/OpenOption;)Ljava/io/BufferedReader;", "bufferedWriter", "Ljava/io/BufferedWriter;", "(Ljava/nio/file/Path;Ljava/nio/charset/Charset;I[Ljava/nio/file/OpenOption;)Ljava/io/BufferedWriter;", "forEachLine", "action", "Lkotlin/Function1;", "", "Lkotlin/ParameterName;", "name", "line", "inputStream", "Ljava/io/InputStream;", "(Ljava/nio/file/Path;[Ljava/nio/file/OpenOption;)Ljava/io/InputStream;", "outputStream", "Ljava/io/OutputStream;", "(Ljava/nio/file/Path;[Ljava/nio/file/OpenOption;)Ljava/io/OutputStream;", "readBytes", "readLines", "", "readText", "reader", "Ljava/io/InputStreamReader;", "(Ljava/nio/file/Path;Ljava/nio/charset/Charset;[Ljava/nio/file/OpenOption;)Ljava/io/InputStreamReader;", "useLines", "T", "block", "(Ljava/nio/file/Path;Ljava/nio/charset/Charset;Lkotlin/jvm/functions/Function1;)Ljava/lang/Object;", "writeBytes", "(Ljava/nio/file/Path;[B[Ljava/nio/file/OpenOption;)V", "writeLines", "(Ljava/nio/file/Path;Ljava/lang/Iterable;Ljava/nio/charset/Charset;[Ljava/nio/file/OpenOption;)Ljava/nio/file/Path;", "(Ljava/nio/file/Path;Lkotlin/sequences/Sequence;Ljava/nio/charset/Charset;[Ljava/nio/file/OpenOption;)Ljava/nio/file/Path;", "writeText", "(Ljava/nio/file/Path;Ljava/lang/CharSequence;Ljava/nio/charset/Charset;[Ljava/nio/file/OpenOption;)V", "writer", "Ljava/io/OutputStreamWriter;", "(Ljava/nio/file/Path;Ljava/nio/charset/Charset;[Ljava/nio/file/OpenOption;)Ljava/io/OutputStreamWriter;", "kotlin-stdlib-jdk7" } k = 0x5 mv = { 0x1, 0x5, 0x1 } xi = 0x1 xs = "kotlin/io/path/PathsKt" .end annotation # direct methods .method public constructor ()V .registers 1 invoke-direct {p0}, Ljava/lang/Object;->()V return-void .end method .method private static final appendBytes(Ljava/nio/file/Path;[B)V .registers 5 .annotation system Ldalvik/annotation/Throws; value = { Ljava/io/IOException; } .end annotation const/4 v0, 0x1 .line 139 new-array v0, v0, [Ljava/nio/file/OpenOption; sget-object v1, Ljava/nio/file/StandardOpenOption;->APPEND:Ljava/nio/file/StandardOpenOption; check-cast v1, Ljava/nio/file/OpenOption; 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 private static final appendLines(Ljava/nio/file/Path;Ljava/lang/Iterable;Ljava/nio/charset/Charset;)Ljava/nio/file/Path; .registers 6 .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 system Ldalvik/annotation/Throws; value = { Ljava/io/IOException; } .end annotation const/4 v0, 0x1 .line 309 new-array v0, v0, [Ljava/nio/file/OpenOption; sget-object v1, Ljava/nio/file/StandardOpenOption;->APPEND:Ljava/nio/file/StandardOpenOption; check-cast v1, Ljava/nio/file/OpenOption; 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/Intrinsics;->checkNotNullExpressionValue(Ljava/lang/Object;Ljava/lang/String;)V return-object p0 .end method .method private static final appendLines(Ljava/nio/file/Path;Lkotlin/sequences/Sequence;Ljava/nio/charset/Charset;)Ljava/nio/file/Path; .registers 6 .annotation system Ldalvik/annotation/Signature; value = { "(", "Ljava/nio/file/Path;", "Lkotlin/sequences/Sequence<", "+", "Ljava/lang/CharSequence;", ">;", "Ljava/nio/charset/Charset;", ")", "Ljava/nio/file/Path;" } .end annotation .annotation system Ldalvik/annotation/Throws; value = { Ljava/io/IOException; } .end annotation .line 322 invoke-static {p1}, Lkotlin/sequences/SequencesKt;->asIterable(Lkotlin/sequences/Sequence;)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; check-cast v1, Ljava/nio/file/OpenOption; 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/Intrinsics;->checkNotNullExpressionValue(Ljava/lang/Object;Ljava/lang/String;)V return-object p0 .end method .method static synthetic appendLines$default(Ljava/nio/file/Path;Ljava/lang/Iterable;Ljava/nio/charset/Charset;ILjava/lang/Object;)Ljava/nio/file/Path; .registers 6 .annotation system Ldalvik/annotation/Throws; value = { Ljava/io/IOException; } .end annotation and-int/lit8 p3, p3, 0x2 if-eqz p3, :cond_6 .line 308 sget-object p2, Lkotlin/text/Charsets;->UTF_8:Ljava/nio/charset/Charset; :cond_6 const/4 p3, 0x1 .line 309 new-array p3, p3, [Ljava/nio/file/OpenOption; sget-object p4, Ljava/nio/file/StandardOpenOption;->APPEND:Ljava/nio/file/StandardOpenOption; check-cast p4, Ljava/nio/file/OpenOption; const/4 v0, 0x0 aput-object p4, p3, v0 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/Intrinsics;->checkNotNullExpressionValue(Ljava/lang/Object;Ljava/lang/String;)V return-object p0 .end method .method static synthetic appendLines$default(Ljava/nio/file/Path;Lkotlin/sequences/Sequence;Ljava/nio/charset/Charset;ILjava/lang/Object;)Ljava/nio/file/Path; .registers 6 .annotation system Ldalvik/annotation/Throws; value = { Ljava/io/IOException; } .end annotation and-int/lit8 p3, p3, 0x2 if-eqz p3, :cond_6 .line 321 sget-object p2, Lkotlin/text/Charsets;->UTF_8:Ljava/nio/charset/Charset; .line 322 :cond_6 invoke-static {p1}, Lkotlin/sequences/SequencesKt;->asIterable(Lkotlin/sequences/Sequence;)Ljava/lang/Iterable; move-result-object p1 const/4 p3, 0x1 new-array p3, p3, [Ljava/nio/file/OpenOption; sget-object p4, Ljava/nio/file/StandardOpenOption;->APPEND:Ljava/nio/file/StandardOpenOption; check-cast p4, Ljava/nio/file/OpenOption; const/4 v0, 0x0 aput-object p4, p3, v0 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/Intrinsics;->checkNotNullExpressionValue(Ljava/lang/Object;Ljava/lang/String;)V return-object p0 .end method .method public static final appendText(Ljava/nio/file/Path;Ljava/lang/CharSequence;Ljava/nio/charset/Charset;)V .registers 6 .annotation system Ldalvik/annotation/Throws; value = { Ljava/io/IOException; } .end annotation const-string v0, "$this$appendText" invoke-static {p0, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V const-string v0, "text" invoke-static {p1, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V const-string v0, "charset" invoke-static {p2, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V const/4 v0, 0x1 .line 184 new-array v0, v0, [Ljava/nio/file/OpenOption; sget-object v1, Ljava/nio/file/StandardOpenOption;->APPEND:Ljava/nio/file/StandardOpenOption; check-cast v1, Ljava/nio/file/OpenOption; 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/Intrinsics;->checkNotNullExpressionValue(Ljava/lang/Object;Ljava/lang/String;)V new-instance v0, Ljava/io/OutputStreamWriter; invoke-direct {v0, p0, p2}, Ljava/io/OutputStreamWriter;->(Ljava/io/OutputStream;Ljava/nio/charset/Charset;)V check-cast v0, Ljava/io/Closeable; const/4 p0, 0x0 move-object p2, p0 check-cast p2, Ljava/lang/Throwable; :try_start_2d move-object p2, v0 check-cast p2, Ljava/io/OutputStreamWriter; invoke-virtual {p2, p1}, Ljava/io/OutputStreamWriter;->append(Ljava/lang/CharSequence;)Ljava/io/Writer; :try_end_33 .catchall {:try_start_2d .. :try_end_33} :catchall_37 invoke-static {v0, p0}, Lkotlin/io/CloseableKt;->closeFinally(Ljava/io/Closeable;Ljava/lang/Throwable;)V return-void :catchall_37 move-exception p0 :try_start_38 throw p0 :try_end_39 .catchall {:try_start_38 .. :try_end_39} :catchall_39 :catchall_39 move-exception p1 invoke-static {v0, p0}, Lkotlin/io/CloseableKt;->closeFinally(Ljava/io/Closeable;Ljava/lang/Throwable;)V throw p1 .end method .method public static synthetic appendText$default(Ljava/nio/file/Path;Ljava/lang/CharSequence;Ljava/nio/charset/Charset;ILjava/lang/Object;)V .registers 5 .annotation system Ldalvik/annotation/Throws; value = { Ljava/io/IOException; } .end annotation and-int/lit8 p3, p3, 0x2 if-eqz p3, :cond_6 .line 183 sget-object p2, Lkotlin/text/Charsets;->UTF_8:Ljava/nio/charset/Charset; :cond_6 invoke-static {p0, p1, p2}, Lkotlin/io/path/PathsKt;->appendText(Ljava/nio/file/Path;Ljava/lang/CharSequence;Ljava/nio/charset/Charset;)V return-void .end method .method private static final varargs bufferedReader(Ljava/nio/file/Path;Ljava/nio/charset/Charset;I[Ljava/nio/file/OpenOption;)Ljava/io/BufferedReader; .registers 7 .annotation system Ldalvik/annotation/Throws; value = { Ljava/io/IOException; } .end annotation .line 50 new-instance v0, Ljava/io/BufferedReader; .line 51 new-instance v1, Ljava/io/InputStreamReader; .line 52 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 51 invoke-direct {v1, p0, p1}, Ljava/io/InputStreamReader;->(Ljava/io/InputStream;Ljava/nio/charset/Charset;)V check-cast v1, Ljava/io/Reader; .line 50 invoke-direct {v0, v1, p2}, Ljava/io/BufferedReader;->(Ljava/io/Reader;I)V return-object v0 .end method .method static synthetic bufferedReader$default(Ljava/nio/file/Path;Ljava/nio/charset/Charset;I[Ljava/nio/file/OpenOption;ILjava/lang/Object;)Ljava/io/BufferedReader; .registers 7 .annotation system Ldalvik/annotation/Throws; value = { Ljava/io/IOException; } .end annotation and-int/lit8 p5, p4, 0x1 if-eqz p5, :cond_6 .line 46 sget-object p1, Lkotlin/text/Charsets;->UTF_8:Ljava/nio/charset/Charset; :cond_6 and-int/lit8 p4, p4, 0x2 if-eqz p4, :cond_c const/16 p2, 0x2000 .line 50 :cond_c new-instance p4, Ljava/io/BufferedReader; .line 51 new-instance p5, Ljava/io/InputStreamReader; .line 52 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 51 invoke-direct {p5, p0, p1}, Ljava/io/InputStreamReader;->(Ljava/io/InputStream;Ljava/nio/charset/Charset;)V check-cast p5, Ljava/io/Reader; .line 50 invoke-direct {p4, p5, p2}, Ljava/io/BufferedReader;->(Ljava/io/Reader;I)V return-object p4 .end method .method private static final varargs bufferedWriter(Ljava/nio/file/Path;Ljava/nio/charset/Charset;I[Ljava/nio/file/OpenOption;)Ljava/io/BufferedWriter; .registers 7 .annotation system Ldalvik/annotation/Throws; value = { Ljava/io/IOException; } .end annotation .line 88 new-instance v0, Ljava/io/BufferedWriter; .line 89 new-instance v1, Ljava/io/OutputStreamWriter; .line 90 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 89 invoke-direct {v1, p0, p1}, Ljava/io/OutputStreamWriter;->(Ljava/io/OutputStream;Ljava/nio/charset/Charset;)V check-cast v1, Ljava/io/Writer; .line 88 invoke-direct {v0, v1, p2}, Ljava/io/BufferedWriter;->(Ljava/io/Writer;I)V return-object v0 .end method .method static synthetic bufferedWriter$default(Ljava/nio/file/Path;Ljava/nio/charset/Charset;I[Ljava/nio/file/OpenOption;ILjava/lang/Object;)Ljava/io/BufferedWriter; .registers 7 .annotation system Ldalvik/annotation/Throws; value = { Ljava/io/IOException; } .end annotation and-int/lit8 p5, p4, 0x1 if-eqz p5, :cond_6 .line 84 sget-object p1, Lkotlin/text/Charsets;->UTF_8:Ljava/nio/charset/Charset; :cond_6 and-int/lit8 p4, p4, 0x2 if-eqz p4, :cond_c const/16 p2, 0x2000 .line 88 :cond_c new-instance p4, Ljava/io/BufferedWriter; .line 89 new-instance p5, Ljava/io/OutputStreamWriter; .line 90 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 89 invoke-direct {p5, p0, p1}, Ljava/io/OutputStreamWriter;->(Ljava/io/OutputStream;Ljava/nio/charset/Charset;)V check-cast p5, Ljava/io/Writer; .line 88 invoke-direct {p4, p5, p2}, Ljava/io/BufferedWriter;->(Ljava/io/Writer;I)V return-object p4 .end method .method private static final forEachLine(Ljava/nio/file/Path;Ljava/nio/charset/Charset;Lkotlin/jvm/functions/Function1;)V .registers 7 .annotation system Ldalvik/annotation/Signature; value = { "(", "Ljava/nio/file/Path;", "Ljava/nio/charset/Charset;", "Lkotlin/jvm/functions/Function1<", "-", "Ljava/lang/String;", "Lkotlin/Unit;", ">;)V" } .end annotation .annotation system Ldalvik/annotation/Throws; value = { Ljava/io/IOException; } .end annotation .line 202 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/Intrinsics;->checkNotNullExpressionValue(Ljava/lang/Object;Ljava/lang/String;)V check-cast p0, Ljava/io/Reader; .line 328 instance-of p1, p0, Ljava/io/BufferedReader; if-eqz p1, :cond_12 check-cast p0, Ljava/io/BufferedReader; goto :goto_1a :cond_12 new-instance p1, Ljava/io/BufferedReader; const/16 v0, 0x2000 invoke-direct {p1, p0, v0}, Ljava/io/BufferedReader;->(Ljava/io/Reader;I)V move-object p0, p1 :goto_1a check-cast p0, Ljava/io/Closeable; const/4 p1, 0x0 move-object v0, p1 check-cast v0, Ljava/lang/Throwable; const/4 v0, 0x0 const/4 v1, 0x1 :try_start_22 move-object v2, p0 check-cast v2, Ljava/io/BufferedReader; invoke-static {v2}, Lkotlin/io/TextStreamsKt;->lineSequence(Ljava/io/BufferedReader;)Lkotlin/sequences/Sequence; move-result-object v2 .line 330 invoke-interface {v2}, Lkotlin/sequences/Sequence;->iterator()Ljava/util/Iterator; move-result-object v2 :goto_2d invoke-interface {v2}, Ljava/util/Iterator;->hasNext()Z move-result v3 if-eqz v3, :cond_3b invoke-interface {v2}, Ljava/util/Iterator;->next()Ljava/lang/Object; move-result-object v3 invoke-interface {p2, v3}, Lkotlin/jvm/functions/Function1;->invoke(Ljava/lang/Object;)Ljava/lang/Object; goto :goto_2d .line 202 :cond_3b sget-object p2, Lkotlin/Unit;->INSTANCE:Lkotlin/Unit; :try_end_3d .catchall {:try_start_22 .. :try_end_3d} :catchall_51 .line 328 invoke-static {v1}, Lkotlin/jvm/internal/InlineMarker;->finallyStart(I)V invoke-static {v1, v1, v0}, Lkotlin/internal/PlatformImplementationsKt;->apiVersionIsAtLeast(III)Z move-result p2 if-eqz p2, :cond_4a invoke-static {p0, p1}, Lkotlin/io/CloseableKt;->closeFinally(Ljava/io/Closeable;Ljava/lang/Throwable;)V goto :goto_4d :cond_4a invoke-interface {p0}, Ljava/io/Closeable;->close()V :goto_4d invoke-static {v1}, Lkotlin/jvm/internal/InlineMarker;->finallyEnd(I)V return-void :catchall_51 move-exception p1 :try_start_52 throw p1 :try_end_53 .catchall {:try_start_52 .. :try_end_53} :catchall_53 :catchall_53 move-exception p2 invoke-static {v1}, Lkotlin/jvm/internal/InlineMarker;->finallyStart(I)V invoke-static {v1, v1, v0}, Lkotlin/internal/PlatformImplementationsKt;->apiVersionIsAtLeast(III)Z move-result v0 if-nez v0, :cond_61 :try_start_5d invoke-interface {p0}, Ljava/io/Closeable;->close()V :try_end_60 .catchall {:try_start_5d .. :try_end_60} :catchall_64 goto :goto_64 :cond_61 invoke-static {p0, p1}, Lkotlin/io/CloseableKt;->closeFinally(Ljava/io/Closeable;Ljava/lang/Throwable;)V :catchall_64 :goto_64 invoke-static {v1}, Lkotlin/jvm/internal/InlineMarker;->finallyEnd(I)V throw p2 .end method .method static synthetic forEachLine$default(Ljava/nio/file/Path;Ljava/nio/charset/Charset;Lkotlin/jvm/functions/Function1;ILjava/lang/Object;)V .registers 7 .annotation system Ldalvik/annotation/Throws; value = { Ljava/io/IOException; } .end annotation const/4 p4, 0x1 and-int/2addr p3, p4 if-eqz p3, :cond_6 .line 200 sget-object p1, Lkotlin/text/Charsets;->UTF_8:Ljava/nio/charset/Charset; .line 202 :cond_6 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/Intrinsics;->checkNotNullExpressionValue(Ljava/lang/Object;Ljava/lang/String;)V check-cast p0, Ljava/io/Reader; .line 328 instance-of p1, p0, Ljava/io/BufferedReader; if-eqz p1, :cond_18 check-cast p0, Ljava/io/BufferedReader; goto :goto_20 :cond_18 new-instance p1, Ljava/io/BufferedReader; const/16 p3, 0x2000 invoke-direct {p1, p0, p3}, Ljava/io/BufferedReader;->(Ljava/io/Reader;I)V move-object p0, p1 :goto_20 check-cast p0, Ljava/io/Closeable; const/4 p1, 0x0 move-object p3, p1 check-cast p3, Ljava/lang/Throwable; const/4 p3, 0x0 :try_start_27 move-object v0, p0 check-cast v0, Ljava/io/BufferedReader; invoke-static {v0}, Lkotlin/io/TextStreamsKt;->lineSequence(Ljava/io/BufferedReader;)Lkotlin/sequences/Sequence; move-result-object v0 .line 330 invoke-interface {v0}, Lkotlin/sequences/Sequence;->iterator()Ljava/util/Iterator; move-result-object v0 :goto_32 invoke-interface {v0}, Ljava/util/Iterator;->hasNext()Z move-result v1 if-eqz v1, :cond_40 invoke-interface {v0}, Ljava/util/Iterator;->next()Ljava/lang/Object; move-result-object v1 invoke-interface {p2, v1}, Lkotlin/jvm/functions/Function1;->invoke(Ljava/lang/Object;)Ljava/lang/Object; goto :goto_32 .line 202 :cond_40 sget-object p2, Lkotlin/Unit;->INSTANCE:Lkotlin/Unit; :try_end_42 .catchall {:try_start_27 .. :try_end_42} :catchall_56 .line 328 invoke-static {p4}, Lkotlin/jvm/internal/InlineMarker;->finallyStart(I)V invoke-static {p4, p4, p3}, Lkotlin/internal/PlatformImplementationsKt;->apiVersionIsAtLeast(III)Z move-result p2 if-eqz p2, :cond_4f invoke-static {p0, p1}, Lkotlin/io/CloseableKt;->closeFinally(Ljava/io/Closeable;Ljava/lang/Throwable;)V goto :goto_52 :cond_4f invoke-interface {p0}, Ljava/io/Closeable;->close()V :goto_52 invoke-static {p4}, Lkotlin/jvm/internal/InlineMarker;->finallyEnd(I)V return-void :catchall_56 move-exception p1 :try_start_57 throw p1 :try_end_58 .catchall {:try_start_57 .. :try_end_58} :catchall_58 :catchall_58 move-exception p2 invoke-static {p4}, Lkotlin/jvm/internal/InlineMarker;->finallyStart(I)V invoke-static {p4, p4, p3}, Lkotlin/internal/PlatformImplementationsKt;->apiVersionIsAtLeast(III)Z move-result p3 if-nez p3, :cond_66 :try_start_62 invoke-interface {p0}, Ljava/io/Closeable;->close()V :try_end_65 .catchall {:try_start_62 .. :try_end_65} :catchall_69 goto :goto_69 :cond_66 invoke-static {p0, p1}, Lkotlin/io/CloseableKt;->closeFinally(Ljava/io/Closeable;Ljava/lang/Throwable;)V :catchall_69 :goto_69 invoke-static {p4}, Lkotlin/jvm/internal/InlineMarker;->finallyEnd(I)V throw p2 .end method .method private static final varargs inputStream(Ljava/nio/file/Path;[Ljava/nio/file/OpenOption;)Ljava/io/InputStream; .registers 3 .annotation system Ldalvik/annotation/Throws; value = { Ljava/io/IOException; } .end annotation .line 216 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/Intrinsics;->checkNotNullExpressionValue(Ljava/lang/Object;Ljava/lang/String;)V return-object p0 .end method .method private static final varargs outputStream(Ljava/nio/file/Path;[Ljava/nio/file/OpenOption;)Ljava/io/OutputStream; .registers 3 .annotation system Ldalvik/annotation/Throws; value = { Ljava/io/IOException; } .end annotation .line 232 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/Intrinsics;->checkNotNullExpressionValue(Ljava/lang/Object;Ljava/lang/String;)V return-object p0 .end method .method private static final readBytes(Ljava/nio/file/Path;)[B .registers 2 .annotation system Ldalvik/annotation/Throws; value = { Ljava/io/IOException; } .end annotation .line 109 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/Intrinsics;->checkNotNullExpressionValue(Ljava/lang/Object;Ljava/lang/String;)V return-object p0 .end method .method private static final readLines(Ljava/nio/file/Path;Ljava/nio/charset/Charset;)Ljava/util/List; .registers 2 .annotation system Ldalvik/annotation/Signature; value = { "(", "Ljava/nio/file/Path;", "Ljava/nio/charset/Charset;", ")", "Ljava/util/List<", "Ljava/lang/String;", ">;" } .end annotation .annotation system Ldalvik/annotation/Throws; value = { Ljava/io/IOException; } .end annotation .line 249 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/Intrinsics;->checkNotNullExpressionValue(Ljava/lang/Object;Ljava/lang/String;)V return-object p0 .end method .method static synthetic readLines$default(Ljava/nio/file/Path;Ljava/nio/charset/Charset;ILjava/lang/Object;)Ljava/util/List; .registers 4 .annotation system Ldalvik/annotation/Throws; value = { Ljava/io/IOException; } .end annotation and-int/lit8 p2, p2, 0x1 if-eqz p2, :cond_6 .line 248 sget-object p1, Lkotlin/text/Charsets;->UTF_8:Ljava/nio/charset/Charset; .line 249 :cond_6 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/Intrinsics;->checkNotNullExpressionValue(Ljava/lang/Object;Ljava/lang/String;)V return-object p0 .end method .method public static final readText(Ljava/nio/file/Path;Ljava/nio/charset/Charset;)Ljava/lang/String; .registers 5 .annotation system Ldalvik/annotation/Throws; value = { Ljava/io/IOException; } .end annotation const-string v0, "$this$readText" invoke-static {p0, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V const-string v0, "charset" invoke-static {p1, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V const/4 v0, 0x0 .line 155 new-array v1, v0, [Ljava/nio/file/OpenOption; 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;->(Ljava/io/InputStream;Ljava/nio/charset/Charset;)V check-cast v2, Ljava/io/Closeable; const/4 p0, 0x0 move-object p1, p0 check-cast p1, Ljava/lang/Throwable; :try_start_22 move-object p1, v2 check-cast p1, Ljava/io/InputStreamReader; check-cast p1, Ljava/io/Reader; invoke-static {p1}, Lkotlin/io/TextStreamsKt;->readText(Ljava/io/Reader;)Ljava/lang/String; move-result-object p1 :try_end_2b .catchall {:try_start_22 .. :try_end_2b} :catchall_2f invoke-static {v2, p0}, Lkotlin/io/CloseableKt;->closeFinally(Ljava/io/Closeable;Ljava/lang/Throwable;)V return-object p1 :catchall_2f move-exception p0 :try_start_30 throw p0 :try_end_31 .catchall {:try_start_30 .. :try_end_31} :catchall_31 :catchall_31 move-exception p1 invoke-static {v2, p0}, Lkotlin/io/CloseableKt;->closeFinally(Ljava/io/Closeable;Ljava/lang/Throwable;)V throw p1 .end method .method public static synthetic readText$default(Ljava/nio/file/Path;Ljava/nio/charset/Charset;ILjava/lang/Object;)Ljava/lang/String; .registers 4 .annotation system Ldalvik/annotation/Throws; value = { Ljava/io/IOException; } .end annotation and-int/lit8 p2, p2, 0x1 if-eqz p2, :cond_6 .line 154 sget-object p1, Lkotlin/text/Charsets;->UTF_8:Ljava/nio/charset/Charset; :cond_6 invoke-static {p0, p1}, Lkotlin/io/path/PathsKt;->readText(Ljava/nio/file/Path;Ljava/nio/charset/Charset;)Ljava/lang/String; move-result-object p0 return-object p0 .end method .method private static final varargs reader(Ljava/nio/file/Path;Ljava/nio/charset/Charset;[Ljava/nio/file/OpenOption;)Ljava/io/InputStreamReader; .registers 5 .annotation system Ldalvik/annotation/Throws; value = { Ljava/io/IOException; } .end annotation .line 31 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;->(Ljava/io/InputStream;Ljava/nio/charset/Charset;)V return-object v0 .end method .method static synthetic reader$default(Ljava/nio/file/Path;Ljava/nio/charset/Charset;[Ljava/nio/file/OpenOption;ILjava/lang/Object;)Ljava/io/InputStreamReader; .registers 5 .annotation system Ldalvik/annotation/Throws; value = { Ljava/io/IOException; } .end annotation and-int/lit8 p3, p3, 0x1 if-eqz p3, :cond_6 .line 30 sget-object p1, Lkotlin/text/Charsets;->UTF_8:Ljava/nio/charset/Charset; .line 31 :cond_6 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;->(Ljava/io/InputStream;Ljava/nio/charset/Charset;)V return-object p3 .end method .method private static final useLines(Ljava/nio/file/Path;Ljava/nio/charset/Charset;Lkotlin/jvm/functions/Function1;)Ljava/lang/Object; .registers 7 .annotation system Ldalvik/annotation/Signature; value = { "(", "Ljava/nio/file/Path;", "Ljava/nio/charset/Charset;", "Lkotlin/jvm/functions/Function1<", "-", "Lkotlin/sequences/Sequence<", "Ljava/lang/String;", ">;+TT;>;)TT;" } .end annotation .annotation system Ldalvik/annotation/Throws; value = { Ljava/io/IOException; } .end annotation .line 264 invoke-static {p0, p1}, Ljava/nio/file/Files;->newBufferedReader(Ljava/nio/file/Path;Ljava/nio/charset/Charset;)Ljava/io/BufferedReader; move-result-object p0 check-cast p0, Ljava/io/Closeable; const/4 p1, 0x0 move-object v0, p1 check-cast v0, Ljava/lang/Throwable; const/4 v0, 0x0 const/4 v1, 0x1 :try_start_c move-object v2, p0 check-cast v2, Ljava/io/BufferedReader; const-string v3, "it" invoke-static {v2, v3}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullExpressionValue(Ljava/lang/Object;Ljava/lang/String;)V invoke-static {v2}, Lkotlin/io/TextStreamsKt;->lineSequence(Ljava/io/BufferedReader;)Lkotlin/sequences/Sequence; move-result-object v2 invoke-interface {p2, v2}, Lkotlin/jvm/functions/Function1;->invoke(Ljava/lang/Object;)Ljava/lang/Object; move-result-object p2 :try_end_1c .catchall {:try_start_c .. :try_end_1c} :catchall_33 invoke-static {v1}, Lkotlin/jvm/internal/InlineMarker;->finallyStart(I)V invoke-static {v1, v1, v0}, Lkotlin/internal/PlatformImplementationsKt;->apiVersionIsAtLeast(III)Z move-result v0 if-eqz v0, :cond_29 invoke-static {p0, p1}, Lkotlin/io/CloseableKt;->closeFinally(Ljava/io/Closeable;Ljava/lang/Throwable;)V goto :goto_2f :cond_29 if-nez p0, :cond_2c goto :goto_2f :cond_2c invoke-interface {p0}, Ljava/io/Closeable;->close()V :goto_2f invoke-static {v1}, Lkotlin/jvm/internal/InlineMarker;->finallyEnd(I)V return-object p2 :catchall_33 move-exception p1 :try_start_34 throw p1 :try_end_35 .catchall {:try_start_34 .. :try_end_35} :catchall_35 :catchall_35 move-exception p2 invoke-static {v1}, Lkotlin/jvm/internal/InlineMarker;->finallyStart(I)V invoke-static {v1, v1, v0}, Lkotlin/internal/PlatformImplementationsKt;->apiVersionIsAtLeast(III)Z move-result v0 if-nez v0, :cond_45 if-eqz p0, :cond_48 :try_start_41 invoke-interface {p0}, Ljava/io/Closeable;->close()V :try_end_44 .catchall {:try_start_41 .. :try_end_44} :catchall_48 goto :goto_48 :cond_45 invoke-static {p0, p1}, Lkotlin/io/CloseableKt;->closeFinally(Ljava/io/Closeable;Ljava/lang/Throwable;)V :catchall_48 :cond_48 :goto_48 invoke-static {v1}, Lkotlin/jvm/internal/InlineMarker;->finallyEnd(I)V throw p2 .end method .method static synthetic useLines$default(Ljava/nio/file/Path;Ljava/nio/charset/Charset;Lkotlin/jvm/functions/Function1;ILjava/lang/Object;)Ljava/lang/Object; .registers 7 .annotation system Ldalvik/annotation/Throws; value = { Ljava/io/IOException; } .end annotation const/4 p4, 0x1 and-int/2addr p3, p4 if-eqz p3, :cond_6 .line 263 sget-object p1, Lkotlin/text/Charsets;->UTF_8:Ljava/nio/charset/Charset; .line 264 :cond_6 invoke-static {p0, p1}, Ljava/nio/file/Files;->newBufferedReader(Ljava/nio/file/Path;Ljava/nio/charset/Charset;)Ljava/io/BufferedReader; move-result-object p0 check-cast p0, Ljava/io/Closeable; const/4 p1, 0x0 move-object p3, p1 check-cast p3, Ljava/lang/Throwable; const/4 p3, 0x0 :try_start_11 move-object v0, p0 check-cast v0, Ljava/io/BufferedReader; const-string v1, "it" invoke-static {v0, v1}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullExpressionValue(Ljava/lang/Object;Ljava/lang/String;)V invoke-static {v0}, Lkotlin/io/TextStreamsKt;->lineSequence(Ljava/io/BufferedReader;)Lkotlin/sequences/Sequence; move-result-object v0 invoke-interface {p2, v0}, Lkotlin/jvm/functions/Function1;->invoke(Ljava/lang/Object;)Ljava/lang/Object; move-result-object p2 :try_end_21 .catchall {:try_start_11 .. :try_end_21} :catchall_38 invoke-static {p4}, Lkotlin/jvm/internal/InlineMarker;->finallyStart(I)V invoke-static {p4, p4, p3}, Lkotlin/internal/PlatformImplementationsKt;->apiVersionIsAtLeast(III)Z move-result p3 if-eqz p3, :cond_2e invoke-static {p0, p1}, Lkotlin/io/CloseableKt;->closeFinally(Ljava/io/Closeable;Ljava/lang/Throwable;)V goto :goto_34 :cond_2e if-nez p0, :cond_31 goto :goto_34 :cond_31 invoke-interface {p0}, Ljava/io/Closeable;->close()V :goto_34 invoke-static {p4}, Lkotlin/jvm/internal/InlineMarker;->finallyEnd(I)V return-object p2 :catchall_38 move-exception p1 :try_start_39 throw p1 :try_end_3a .catchall {:try_start_39 .. :try_end_3a} :catchall_3a :catchall_3a move-exception p2 invoke-static {p4}, Lkotlin/jvm/internal/InlineMarker;->finallyStart(I)V invoke-static {p4, p4, p3}, Lkotlin/internal/PlatformImplementationsKt;->apiVersionIsAtLeast(III)Z move-result p3 if-nez p3, :cond_4a if-eqz p0, :cond_4d :try_start_46 invoke-interface {p0}, Ljava/io/Closeable;->close()V :try_end_49 .catchall {:try_start_46 .. :try_end_49} :catchall_4d goto :goto_4d :cond_4a invoke-static {p0, p1}, Lkotlin/io/CloseableKt;->closeFinally(Ljava/io/Closeable;Ljava/lang/Throwable;)V :catchall_4d :cond_4d :goto_4d invoke-static {p4}, Lkotlin/jvm/internal/InlineMarker;->finallyEnd(I)V throw p2 .end method .method private static final varargs writeBytes(Ljava/nio/file/Path;[B[Ljava/nio/file/OpenOption;)V .registers 4 .annotation system Ldalvik/annotation/Throws; value = { Ljava/io/IOException; } .end annotation .line 126 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 private static final varargs writeLines(Ljava/nio/file/Path;Ljava/lang/Iterable;Ljava/nio/charset/Charset;[Ljava/nio/file/OpenOption;)Ljava/nio/file/Path; .registers 5 .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 system Ldalvik/annotation/Throws; value = { Ljava/io/IOException; } .end annotation .line 280 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/Intrinsics;->checkNotNullExpressionValue(Ljava/lang/Object;Ljava/lang/String;)V return-object p0 .end method .method private static final varargs writeLines(Ljava/nio/file/Path;Lkotlin/sequences/Sequence;Ljava/nio/charset/Charset;[Ljava/nio/file/OpenOption;)Ljava/nio/file/Path; .registers 5 .annotation system Ldalvik/annotation/Signature; value = { "(", "Ljava/nio/file/Path;", "Lkotlin/sequences/Sequence<", "+", "Ljava/lang/CharSequence;", ">;", "Ljava/nio/charset/Charset;", "[", "Ljava/nio/file/OpenOption;", ")", "Ljava/nio/file/Path;" } .end annotation .annotation system Ldalvik/annotation/Throws; value = { Ljava/io/IOException; } .end annotation .line 296 invoke-static {p1}, Lkotlin/sequences/SequencesKt;->asIterable(Lkotlin/sequences/Sequence;)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/Intrinsics;->checkNotNullExpressionValue(Ljava/lang/Object;Ljava/lang/String;)V return-object p0 .end method .method static synthetic writeLines$default(Ljava/nio/file/Path;Ljava/lang/Iterable;Ljava/nio/charset/Charset;[Ljava/nio/file/OpenOption;ILjava/lang/Object;)Ljava/nio/file/Path; .registers 6 .annotation system Ldalvik/annotation/Throws; value = { Ljava/io/IOException; } .end annotation and-int/lit8 p4, p4, 0x2 if-eqz p4, :cond_6 .line 279 sget-object p2, Lkotlin/text/Charsets;->UTF_8:Ljava/nio/charset/Charset; .line 280 :cond_6 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/Intrinsics;->checkNotNullExpressionValue(Ljava/lang/Object;Ljava/lang/String;)V return-object p0 .end method .method static synthetic writeLines$default(Ljava/nio/file/Path;Lkotlin/sequences/Sequence;Ljava/nio/charset/Charset;[Ljava/nio/file/OpenOption;ILjava/lang/Object;)Ljava/nio/file/Path; .registers 6 .annotation system Ldalvik/annotation/Throws; value = { Ljava/io/IOException; } .end annotation and-int/lit8 p4, p4, 0x2 if-eqz p4, :cond_6 .line 295 sget-object p2, Lkotlin/text/Charsets;->UTF_8:Ljava/nio/charset/Charset; .line 296 :cond_6 invoke-static {p1}, Lkotlin/sequences/SequencesKt;->asIterable(Lkotlin/sequences/Sequence;)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/Intrinsics;->checkNotNullExpressionValue(Ljava/lang/Object;Ljava/lang/String;)V return-object p0 .end method .method public static final varargs writeText(Ljava/nio/file/Path;Ljava/lang/CharSequence;Ljava/nio/charset/Charset;[Ljava/nio/file/OpenOption;)V .registers 5 .annotation system Ldalvik/annotation/Throws; value = { Ljava/io/IOException; } .end annotation const-string v0, "$this$writeText" invoke-static {p0, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V const-string v0, "text" invoke-static {p1, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V const-string v0, "charset" invoke-static {p2, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V const-string v0, "options" invoke-static {p3, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V .line 171 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/Intrinsics;->checkNotNullExpressionValue(Ljava/lang/Object;Ljava/lang/String;)V new-instance p3, Ljava/io/OutputStreamWriter; invoke-direct {p3, p0, p2}, Ljava/io/OutputStreamWriter;->(Ljava/io/OutputStream;Ljava/nio/charset/Charset;)V check-cast p3, Ljava/io/Closeable; const/4 p0, 0x0 move-object p2, p0 check-cast p2, Ljava/lang/Throwable; :try_start_2f move-object p2, p3 check-cast p2, Ljava/io/OutputStreamWriter; invoke-virtual {p2, p1}, Ljava/io/OutputStreamWriter;->append(Ljava/lang/CharSequence;)Ljava/io/Writer; :try_end_35 .catchall {:try_start_2f .. :try_end_35} :catchall_39 invoke-static {p3, p0}, Lkotlin/io/CloseableKt;->closeFinally(Ljava/io/Closeable;Ljava/lang/Throwable;)V return-void :catchall_39 move-exception p0 :try_start_3a throw p0 :try_end_3b .catchall {:try_start_3a .. :try_end_3b} :catchall_3b :catchall_3b move-exception p1 invoke-static {p3, p0}, Lkotlin/io/CloseableKt;->closeFinally(Ljava/io/Closeable;Ljava/lang/Throwable;)V throw p1 .end method .method public static synthetic writeText$default(Ljava/nio/file/Path;Ljava/lang/CharSequence;Ljava/nio/charset/Charset;[Ljava/nio/file/OpenOption;ILjava/lang/Object;)V .registers 6 .annotation system Ldalvik/annotation/Throws; value = { Ljava/io/IOException; } .end annotation and-int/lit8 p4, p4, 0x2 if-eqz p4, :cond_6 .line 170 sget-object p2, Lkotlin/text/Charsets;->UTF_8:Ljava/nio/charset/Charset; :cond_6 invoke-static {p0, p1, p2, p3}, Lkotlin/io/path/PathsKt;->writeText(Ljava/nio/file/Path;Ljava/lang/CharSequence;Ljava/nio/charset/Charset;[Ljava/nio/file/OpenOption;)V return-void .end method .method private static final varargs writer(Ljava/nio/file/Path;Ljava/nio/charset/Charset;[Ljava/nio/file/OpenOption;)Ljava/io/OutputStreamWriter; .registers 5 .annotation system Ldalvik/annotation/Throws; value = { Ljava/io/IOException; } .end annotation .line 69 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;->(Ljava/io/OutputStream;Ljava/nio/charset/Charset;)V return-object v0 .end method .method static synthetic writer$default(Ljava/nio/file/Path;Ljava/nio/charset/Charset;[Ljava/nio/file/OpenOption;ILjava/lang/Object;)Ljava/io/OutputStreamWriter; .registers 5 .annotation system Ldalvik/annotation/Throws; value = { Ljava/io/IOException; } .end annotation and-int/lit8 p3, p3, 0x1 if-eqz p3, :cond_6 .line 68 sget-object p1, Lkotlin/text/Charsets;->UTF_8:Ljava/nio/charset/Charset; .line 69 :cond_6 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;->(Ljava/io/OutputStream;Ljava/nio/charset/Charset;)V return-object p3 .end method