1499 lines
		
	
	
		
			41 KiB
		
	
	
	
		
			Smali
		
	
	
	
	
	
			
		
		
	
	
			1499 lines
		
	
	
		
			41 KiB
		
	
	
	
		
			Smali
		
	
	
	
	
	
| .class public Lkotlin/io/FilesKt__FileReadWriteKt;
 | |
| .super Lkotlin/io/k;
 | |
| .source "FileReadWrite.kt"
 | |
| 
 | |
| 
 | |
| # annotations
 | |
| .annotation system Ldalvik/annotation/SourceDebugExtension;
 | |
|     value = "SMAP\nFileReadWrite.kt\nKotlin\n*S Kotlin\n*F\n+ 1 FileReadWrite.kt\nkotlin/io/FilesKt__FileReadWriteKt\n+ 2 fake.kt\nkotlin/jvm/internal/FakeKt\n*L\n1#1,233:1\n1#2:234\n*E\n"
 | |
| .end annotation
 | |
| 
 | |
| .annotation runtime Lkotlin/Metadata;
 | |
|     bv = {}
 | |
|     d1 = {
 | |
|         "\u0000v\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0000\n\u0002\u0010\u0008\n\u0000\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0000\n\u0002\u0010\u0012\n\u0002\u0008\u0002\n\u0002\u0018\u0002\n\u0002\u0008\u0002\n\u0002\u0010\u000e\n\u0002\u0008\u0004\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\u0008\u0007\n\u0002\u0018\u0002\n\u0002\u0008\u0002\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0000\n\u0002\u0010 \n\u0002\u0008\u0002\n\u0002\u0018\u0002\n\u0002\u0008\u0005\u001a\u0017\u0010\u0004\u001a\u00020\u0003*\u00020\u00002\u0008\u0008\u0002\u0010\u0002\u001a\u00020\u0001H\u0087\u0008\u001a!\u0010\u0008\u001a\u00020\u0007*\u00020\u00002\u0008\u0008\u0002\u0010\u0002\u001a\u00020\u00012\u0008\u0008\u0002\u0010\u0006\u001a\u00020\u0005H\u0087\u0008\u001a\u0017\u0010\n\u001a\u00020\t*\u00020\u00002\u0008\u0008\u0002\u0010\u0002\u001a\u00020\u0001H\u0087\u0008\u001a!\u0010\u000c\u001a\u00020\u000b*\u00020\u00002\u0008\u0008\u0002\u0010\u0002\u001a\u00020\u00012\u0008\u0008\u0002\u0010\u0006\u001a\u00020\u0005H\u0087\u0008\u001a\u0017\u0010\u000e\u001a\u00020\r*\u00020\u00002\u0008\u0008\u0002\u0010\u0002\u001a\u00020\u0001H\u0087\u0008\u001a\n\u0010\u0010\u001a\u00020\u000f*\u00020\u0000\u001a\u0012\u0010\u0013\u001a\u00020\u0012*\u00020\u00002\u0006\u0010\u0011\u001a\u00020\u000f\u001a\u0012\u0010\u0014\u001a\u00020\u0012*\u00020\u00002\u0006\u0010\u0011\u001a\u00020\u000f\u001a\u0014\u0010\u0016\u001a\u00020\u0015*\u00020\u00002\u0008\u0008\u0002\u0010\u0002\u001a\u00020\u0001\u001a\u001c\u0010\u0018\u001a\u00020\u0012*\u00020\u00002\u0006\u0010\u0017\u001a\u00020\u00152\u0008\u0008\u0002\u0010\u0002\u001a\u00020\u0001\u001a\u001c\u0010\u0019\u001a\u00020\u0012*\u00020\u00002\u0006\u0010\u0017\u001a\u00020\u00152\u0008\u0008\u0002\u0010\u0002\u001a\u00020\u0001\u001aB\u0010 \u001a\u00020\u0012*\u00020\u000026\u0010\u001f\u001a2\u0012\u0013\u0012\u00110\u000f\u00a2\u0006\u000c\u0008\u001b\u0012\u0008\u0008\u001c\u0012\u0004\u0008\u0008(\u001d\u0012\u0013\u0012\u00110\u0005\u00a2\u0006\u000c\u0008\u001b\u0012\u0008\u0008\u001c\u0012\u0004\u0008\u0008(\u001e\u0012\u0004\u0012\u00020\u00120\u001a\u001aJ\u0010\"\u001a\u00020\u0012*\u00020\u00002\u0006\u0010!\u001a\u00020\u000526\u0010\u001f\u001a2\u0012\u0013\u0012\u00110\u000f\u00a2\u0006\u000c\u0008\u001b\u0012\u0008\u0008\u001c\u0012\u0004\u0008\u0008(\u001d\u0012\u0013\u0012\u00110\u0005\u00a2\u0006\u000c\u0008\u001b\u0012\u0008\u0008\u001c\u0012\u0004\u0008\u0008(\u001e\u0012\u0004\u0012\u00020\u00120\u001a\u001a7\u0010%\u001a\u00020\u0012*\u00020\u00002\u0008\u0008\u0002\u0010\u0002\u001a\u00020\u00012!\u0010\u001f\u001a\u001d\u0012\u0013\u0012\u00110\u0015\u00a2\u0006\u000c\u0008\u001b\u0012\u0008\u0008\u001c\u0012\u0004\u0008\u0008($\u0012\u0004\u0012\u00020\u00120#\u001a\r\u0010\'\u001a\u00020&*\u00020\u0000H\u0087\u0008\u001a\r\u0010)\u001a\u00020(*\u00020\u0000H\u0087\u0008\u001a\u001a\u0010+\u001a\u0008\u0012\u0004\u0012\u00020\u00150**\u00020\u00002\u0008\u0008\u0002\u0010\u0002\u001a\u00020\u0001\u001aD\u00100\u001a\u00028\u0000\"\u0004\u0008\u0000\u0010,*\u00020\u00002\u0008\u0008\u0002\u0010\u0002\u001a\u00020\u00012\u0018\u0010.\u001a\u0014\u0012\n\u0012\u0008\u0012\u0004\u0012\u00020\u00150-\u0012\u0004\u0012\u00028\u00000#H\u0086\u0008\u00f8\u0001\u0000\u00f8\u0001\u0001\u00a2\u0006\u0004\u00080\u00101\u0082\u0002\u000f\n\u0006\u0008\u0011(/0\u0001\n\u0005\u0008\u009920\u0001\u00a8\u00062"
 | |
|     }
 | |
|     d2 = {
 | |
|         "Ljava/io/File;",
 | |
|         "Ljava/nio/charset/Charset;",
 | |
|         "charset",
 | |
|         "Ljava/io/InputStreamReader;",
 | |
|         "A",
 | |
|         "",
 | |
|         "bufferSize",
 | |
|         "Ljava/io/BufferedReader;",
 | |
|         "j",
 | |
|         "Ljava/io/OutputStreamWriter;",
 | |
|         "H",
 | |
|         "Ljava/io/BufferedWriter;",
 | |
|         "l",
 | |
|         "Ljava/io/PrintWriter;",
 | |
|         "t",
 | |
|         "",
 | |
|         "v",
 | |
|         "array",
 | |
|         "Lkotlin/d1;",
 | |
|         "E",
 | |
|         "g",
 | |
|         "",
 | |
|         "y",
 | |
|         "text",
 | |
|         "F",
 | |
|         "h",
 | |
|         "Lkotlin/Function2;",
 | |
|         "Lkotlin/ParameterName;",
 | |
|         "name",
 | |
|         "buffer",
 | |
|         "bytesRead",
 | |
|         "action",
 | |
|         "o",
 | |
|         "blockSize",
 | |
|         "n",
 | |
|         "Lkotlin/Function1;",
 | |
|         "line",
 | |
|         "p",
 | |
|         "Ljava/io/FileInputStream;",
 | |
|         "r",
 | |
|         "Ljava/io/FileOutputStream;",
 | |
|         "s",
 | |
|         "",
 | |
|         "w",
 | |
|         "T",
 | |
|         "Lkotlin/sequences/m;",
 | |
|         "block",
 | |
|         "Requires newer compiler version to be inlined correctly.",
 | |
|         "C",
 | |
|         "(Ljava/io/File;Ljava/nio/charset/Charset;Lej/l;)Ljava/lang/Object;",
 | |
|         "kotlin-stdlib"
 | |
|     }
 | |
|     k = 0x5
 | |
|     mv = {
 | |
|         0x1,
 | |
|         0x5,
 | |
|         0x1
 | |
|     }
 | |
|     xs = "kotlin/io/FilesKt"
 | |
| .end annotation
 | |
| 
 | |
| 
 | |
| # direct methods
 | |
| .method public constructor <init>()V
 | |
|     .locals 0
 | |
| 
 | |
|     invoke-direct {p0}, Lkotlin/io/k;-><init>()V
 | |
| 
 | |
|     return-void
 | |
| .end method
 | |
| 
 | |
| .method public static final A(Ljava/io/File;Ljava/nio/charset/Charset;)Ljava/io/InputStreamReader;
 | |
|     .locals 1
 | |
|     .annotation build Lkotlin/internal/InlineOnly;
 | |
|     .end annotation
 | |
| 
 | |
|     .line 1
 | |
|     new-instance v0, Ljava/io/FileInputStream;
 | |
| 
 | |
|     invoke-direct {v0, p0}, Ljava/io/FileInputStream;-><init>(Ljava/io/File;)V
 | |
| 
 | |
|     new-instance p0, Ljava/io/InputStreamReader;
 | |
| 
 | |
|     invoke-direct {p0, v0, p1}, Ljava/io/InputStreamReader;-><init>(Ljava/io/InputStream;Ljava/nio/charset/Charset;)V
 | |
| 
 | |
|     return-object p0
 | |
| .end method
 | |
| 
 | |
| .method public static synthetic B(Ljava/io/File;Ljava/nio/charset/Charset;ILjava/lang/Object;)Ljava/io/InputStreamReader;
 | |
|     .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
 | |
|     new-instance p2, Ljava/io/FileInputStream;
 | |
| 
 | |
|     invoke-direct {p2, p0}, Ljava/io/FileInputStream;-><init>(Ljava/io/File;)V
 | |
| 
 | |
|     new-instance p0, Ljava/io/InputStreamReader;
 | |
| 
 | |
|     invoke-direct {p0, p2, p1}, Ljava/io/InputStreamReader;-><init>(Ljava/io/InputStream;Ljava/nio/charset/Charset;)V
 | |
| 
 | |
|     return-object p0
 | |
| .end method
 | |
| 
 | |
| .method public static final C(Ljava/io/File;Ljava/nio/charset/Charset;Lej/l;)Ljava/lang/Object;
 | |
|     .locals 3
 | |
|     .param p0    # Ljava/io/File;
 | |
|         .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
 | |
|     .param p2    # Lej/l;
 | |
|         .annotation build Lorg/jetbrains/annotations/NotNull;
 | |
|         .end annotation
 | |
|     .end param
 | |
|     .annotation system Ldalvik/annotation/Signature;
 | |
|         value = {
 | |
|             "<T:",
 | |
|             "Ljava/lang/Object;",
 | |
|             ">(",
 | |
|             "Ljava/io/File;",
 | |
|             "Ljava/nio/charset/Charset;",
 | |
|             "Lej/l<",
 | |
|             "-",
 | |
|             "Lkotlin/sequences/m<",
 | |
|             "Ljava/lang/String;",
 | |
|             ">;+TT;>;)TT;"
 | |
|         }
 | |
|     .end annotation
 | |
| 
 | |
|     const-string v0, "$this$useLines"
 | |
| 
 | |
|     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-string v0, "block"
 | |
| 
 | |
|     invoke-static {p2, v0}, Lkotlin/jvm/internal/f0;->p(Ljava/lang/Object;Ljava/lang/String;)V
 | |
| 
 | |
|     .line 1
 | |
|     new-instance v0, Ljava/io/FileInputStream;
 | |
| 
 | |
|     invoke-direct {v0, p0}, Ljava/io/FileInputStream;-><init>(Ljava/io/File;)V
 | |
| 
 | |
|     new-instance p0, Ljava/io/InputStreamReader;
 | |
| 
 | |
|     invoke-direct {p0, v0, p1}, Ljava/io/InputStreamReader;-><init>(Ljava/io/InputStream;Ljava/nio/charset/Charset;)V
 | |
| 
 | |
|     instance-of p1, p0, Ljava/io/BufferedReader;
 | |
| 
 | |
|     if-eqz p1, :cond_0
 | |
| 
 | |
|     check-cast p0, Ljava/io/BufferedReader;
 | |
| 
 | |
|     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
 | |
| 
 | |
|     invoke-interface {p2, v2}, 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 {v1}, Lkotlin/jvm/internal/c0;->d(I)V
 | |
| 
 | |
|     invoke-static {v1, v1, v0}, Lyi/b;->a(III)Z
 | |
| 
 | |
|     move-result v0
 | |
| 
 | |
|     if-eqz v0, :cond_1
 | |
| 
 | |
|     invoke-static {p0, p1}, Lkotlin/io/b;->a(Ljava/io/Closeable;Ljava/lang/Throwable;)V
 | |
| 
 | |
|     goto :goto_1
 | |
| 
 | |
|     :cond_1
 | |
|     invoke-interface {p0}, Ljava/io/Closeable;->close()V
 | |
| 
 | |
|     :goto_1
 | |
|     invoke-static {v1}, 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 {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_2
 | |
| 
 | |
|     :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_2
 | |
| 
 | |
|     :cond_2
 | |
|     invoke-static {p0, p1}, Lkotlin/io/b;->a(Ljava/io/Closeable;Ljava/lang/Throwable;)V
 | |
| 
 | |
|     :catchall_2
 | |
|     :goto_2
 | |
|     invoke-static {v1}, Lkotlin/jvm/internal/c0;->c(I)V
 | |
| 
 | |
|     throw p2
 | |
| .end method
 | |
| 
 | |
| .method public static synthetic D(Ljava/io/File;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;
 | |
| 
 | |
|     :cond_0
 | |
|     const-string p3, "$this$useLines"
 | |
| 
 | |
|     invoke-static {p0, p3}, Lkotlin/jvm/internal/f0;->p(Ljava/lang/Object;Ljava/lang/String;)V
 | |
| 
 | |
|     const-string p3, "charset"
 | |
| 
 | |
|     invoke-static {p1, p3}, Lkotlin/jvm/internal/f0;->p(Ljava/lang/Object;Ljava/lang/String;)V
 | |
| 
 | |
|     const-string p3, "block"
 | |
| 
 | |
|     invoke-static {p2, p3}, Lkotlin/jvm/internal/f0;->p(Ljava/lang/Object;Ljava/lang/String;)V
 | |
| 
 | |
|     const/16 p3, 0x2000
 | |
| 
 | |
|     .line 2
 | |
|     new-instance v0, Ljava/io/FileInputStream;
 | |
| 
 | |
|     invoke-direct {v0, p0}, Ljava/io/FileInputStream;-><init>(Ljava/io/File;)V
 | |
| 
 | |
|     new-instance p0, Ljava/io/InputStreamReader;
 | |
| 
 | |
|     invoke-direct {p0, v0, p1}, Ljava/io/InputStreamReader;-><init>(Ljava/io/InputStream;Ljava/nio/charset/Charset;)V
 | |
| 
 | |
|     instance-of p1, p0, Ljava/io/BufferedReader;
 | |
| 
 | |
|     if-eqz p1, :cond_1
 | |
| 
 | |
|     check-cast p0, Ljava/io/BufferedReader;
 | |
| 
 | |
|     goto :goto_0
 | |
| 
 | |
|     :cond_1
 | |
|     new-instance p1, Ljava/io/BufferedReader;
 | |
| 
 | |
|     invoke-direct {p1, p0, p3}, Ljava/io/BufferedReader;-><init>(Ljava/io/Reader;I)V
 | |
| 
 | |
|     move-object p0, p1
 | |
| 
 | |
|     :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
 | |
| 
 | |
|     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_2
 | |
| 
 | |
|     invoke-static {p0, p1}, Lkotlin/io/b;->a(Ljava/io/Closeable;Ljava/lang/Throwable;)V
 | |
| 
 | |
|     goto :goto_1
 | |
| 
 | |
|     :cond_2
 | |
|     invoke-interface {p0}, Ljava/io/Closeable;->close()V
 | |
| 
 | |
|     :goto_1
 | |
|     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
 | |
| 
 | |
|     :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_2
 | |
| 
 | |
|     :cond_3
 | |
|     invoke-static {p0, p1}, Lkotlin/io/b;->a(Ljava/io/Closeable;Ljava/lang/Throwable;)V
 | |
| 
 | |
|     :catchall_2
 | |
|     :goto_2
 | |
|     invoke-static {p4}, Lkotlin/jvm/internal/c0;->c(I)V
 | |
| 
 | |
|     throw p2
 | |
| .end method
 | |
| 
 | |
| .method public static final E(Ljava/io/File;[B)V
 | |
|     .locals 1
 | |
|     .param p0    # Ljava/io/File;
 | |
|         .annotation build Lorg/jetbrains/annotations/NotNull;
 | |
|         .end annotation
 | |
|     .end param
 | |
|     .param p1    # [B
 | |
|         .annotation build Lorg/jetbrains/annotations/NotNull;
 | |
|         .end annotation
 | |
|     .end param
 | |
| 
 | |
|     const-string v0, "$this$writeBytes"
 | |
| 
 | |
|     invoke-static {p0, v0}, Lkotlin/jvm/internal/f0;->p(Ljava/lang/Object;Ljava/lang/String;)V
 | |
| 
 | |
|     const-string v0, "array"
 | |
| 
 | |
|     invoke-static {p1, v0}, Lkotlin/jvm/internal/f0;->p(Ljava/lang/Object;Ljava/lang/String;)V
 | |
| 
 | |
|     .line 1
 | |
|     new-instance v0, Ljava/io/FileOutputStream;
 | |
| 
 | |
|     invoke-direct {v0, p0}, Ljava/io/FileOutputStream;-><init>(Ljava/io/File;)V
 | |
| 
 | |
|     :try_start_0
 | |
|     invoke-virtual {v0, p1}, Ljava/io/FileOutputStream;->write([B)V
 | |
| 
 | |
|     sget-object p0, Lkotlin/d1;->a:Lkotlin/d1;
 | |
|     :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 final F(Ljava/io/File;Ljava/lang/String;Ljava/nio/charset/Charset;)V
 | |
|     .locals 1
 | |
|     .param p0    # Ljava/io/File;
 | |
|         .annotation build Lorg/jetbrains/annotations/NotNull;
 | |
|         .end annotation
 | |
|     .end param
 | |
|     .param p1    # Ljava/lang/String;
 | |
|         .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
 | |
| 
 | |
|     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
 | |
| 
 | |
|     .line 1
 | |
|     invoke-virtual {p1, p2}, Ljava/lang/String;->getBytes(Ljava/nio/charset/Charset;)[B
 | |
| 
 | |
|     move-result-object p1
 | |
| 
 | |
|     const-string p2, "(this as java.lang.String).getBytes(charset)"
 | |
| 
 | |
|     invoke-static {p1, p2}, Lkotlin/jvm/internal/f0;->o(Ljava/lang/Object;Ljava/lang/String;)V
 | |
| 
 | |
|     invoke-static {p0, p1}, Lkotlin/io/FilesKt__FileReadWriteKt;->E(Ljava/io/File;[B)V
 | |
| 
 | |
|     return-void
 | |
| .end method
 | |
| 
 | |
| .method public static synthetic G(Ljava/io/File;Ljava/lang/String;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}, Lkotlin/io/FilesKt__FileReadWriteKt;->F(Ljava/io/File;Ljava/lang/String;Ljava/nio/charset/Charset;)V
 | |
| 
 | |
|     return-void
 | |
| .end method
 | |
| 
 | |
| .method public static final H(Ljava/io/File;Ljava/nio/charset/Charset;)Ljava/io/OutputStreamWriter;
 | |
|     .locals 1
 | |
|     .annotation build Lkotlin/internal/InlineOnly;
 | |
|     .end annotation
 | |
| 
 | |
|     .line 1
 | |
|     new-instance v0, Ljava/io/FileOutputStream;
 | |
| 
 | |
|     invoke-direct {v0, p0}, Ljava/io/FileOutputStream;-><init>(Ljava/io/File;)V
 | |
| 
 | |
|     new-instance p0, Ljava/io/OutputStreamWriter;
 | |
| 
 | |
|     invoke-direct {p0, v0, p1}, Ljava/io/OutputStreamWriter;-><init>(Ljava/io/OutputStream;Ljava/nio/charset/Charset;)V
 | |
| 
 | |
|     return-object p0
 | |
| .end method
 | |
| 
 | |
| .method public static synthetic I(Ljava/io/File;Ljava/nio/charset/Charset;ILjava/lang/Object;)Ljava/io/OutputStreamWriter;
 | |
|     .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
 | |
|     new-instance p2, Ljava/io/FileOutputStream;
 | |
| 
 | |
|     invoke-direct {p2, p0}, Ljava/io/FileOutputStream;-><init>(Ljava/io/File;)V
 | |
| 
 | |
|     new-instance p0, Ljava/io/OutputStreamWriter;
 | |
| 
 | |
|     invoke-direct {p0, p2, p1}, Ljava/io/OutputStreamWriter;-><init>(Ljava/io/OutputStream;Ljava/nio/charset/Charset;)V
 | |
| 
 | |
|     return-object p0
 | |
| .end method
 | |
| 
 | |
| .method public static final g(Ljava/io/File;[B)V
 | |
|     .locals 2
 | |
|     .param p0    # Ljava/io/File;
 | |
|         .annotation build Lorg/jetbrains/annotations/NotNull;
 | |
|         .end annotation
 | |
|     .end param
 | |
|     .param p1    # [B
 | |
|         .annotation build Lorg/jetbrains/annotations/NotNull;
 | |
|         .end annotation
 | |
|     .end param
 | |
| 
 | |
|     const-string v0, "$this$appendBytes"
 | |
| 
 | |
|     invoke-static {p0, v0}, Lkotlin/jvm/internal/f0;->p(Ljava/lang/Object;Ljava/lang/String;)V
 | |
| 
 | |
|     const-string v0, "array"
 | |
| 
 | |
|     invoke-static {p1, v0}, Lkotlin/jvm/internal/f0;->p(Ljava/lang/Object;Ljava/lang/String;)V
 | |
| 
 | |
|     .line 1
 | |
|     new-instance v0, Ljava/io/FileOutputStream;
 | |
| 
 | |
|     const/4 v1, 0x1
 | |
| 
 | |
|     invoke-direct {v0, p0, v1}, Ljava/io/FileOutputStream;-><init>(Ljava/io/File;Z)V
 | |
| 
 | |
|     :try_start_0
 | |
|     invoke-virtual {v0, p1}, Ljava/io/FileOutputStream;->write([B)V
 | |
| 
 | |
|     sget-object p0, Lkotlin/d1;->a:Lkotlin/d1;
 | |
|     :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 final h(Ljava/io/File;Ljava/lang/String;Ljava/nio/charset/Charset;)V
 | |
|     .locals 1
 | |
|     .param p0    # Ljava/io/File;
 | |
|         .annotation build Lorg/jetbrains/annotations/NotNull;
 | |
|         .end annotation
 | |
|     .end param
 | |
|     .param p1    # Ljava/lang/String;
 | |
|         .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
 | |
| 
 | |
|     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
 | |
| 
 | |
|     .line 1
 | |
|     invoke-virtual {p1, p2}, Ljava/lang/String;->getBytes(Ljava/nio/charset/Charset;)[B
 | |
| 
 | |
|     move-result-object p1
 | |
| 
 | |
|     const-string p2, "(this as java.lang.String).getBytes(charset)"
 | |
| 
 | |
|     invoke-static {p1, p2}, Lkotlin/jvm/internal/f0;->o(Ljava/lang/Object;Ljava/lang/String;)V
 | |
| 
 | |
|     invoke-static {p0, p1}, Lkotlin/io/FilesKt__FileReadWriteKt;->g(Ljava/io/File;[B)V
 | |
| 
 | |
|     return-void
 | |
| .end method
 | |
| 
 | |
| .method public static synthetic i(Ljava/io/File;Ljava/lang/String;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}, Lkotlin/io/FilesKt__FileReadWriteKt;->h(Ljava/io/File;Ljava/lang/String;Ljava/nio/charset/Charset;)V
 | |
| 
 | |
|     return-void
 | |
| .end method
 | |
| 
 | |
| .method public static final j(Ljava/io/File;Ljava/nio/charset/Charset;I)Ljava/io/BufferedReader;
 | |
|     .locals 1
 | |
|     .annotation build Lkotlin/internal/InlineOnly;
 | |
|     .end annotation
 | |
| 
 | |
|     .line 1
 | |
|     new-instance v0, Ljava/io/FileInputStream;
 | |
| 
 | |
|     invoke-direct {v0, p0}, Ljava/io/FileInputStream;-><init>(Ljava/io/File;)V
 | |
| 
 | |
|     new-instance p0, Ljava/io/InputStreamReader;
 | |
| 
 | |
|     invoke-direct {p0, v0, p1}, Ljava/io/InputStreamReader;-><init>(Ljava/io/InputStream;Ljava/nio/charset/Charset;)V
 | |
| 
 | |
|     instance-of p1, p0, Ljava/io/BufferedReader;
 | |
| 
 | |
|     if-eqz p1, :cond_0
 | |
| 
 | |
|     check-cast p0, Ljava/io/BufferedReader;
 | |
| 
 | |
|     goto :goto_0
 | |
| 
 | |
|     :cond_0
 | |
|     new-instance p1, Ljava/io/BufferedReader;
 | |
| 
 | |
|     invoke-direct {p1, p0, p2}, Ljava/io/BufferedReader;-><init>(Ljava/io/Reader;I)V
 | |
| 
 | |
|     move-object p0, p1
 | |
| 
 | |
|     :goto_0
 | |
|     return-object p0
 | |
| .end method
 | |
| 
 | |
| .method public static synthetic k(Ljava/io/File;Ljava/nio/charset/Charset;IILjava/lang/Object;)Ljava/io/BufferedReader;
 | |
|     .locals 0
 | |
| 
 | |
|     and-int/lit8 p4, p3, 0x1
 | |
| 
 | |
|     if-eqz p4, :cond_0
 | |
| 
 | |
|     .line 1
 | |
|     sget-object p1, Lkotlin/text/d;->a:Ljava/nio/charset/Charset;
 | |
| 
 | |
|     :cond_0
 | |
|     and-int/lit8 p3, p3, 0x2
 | |
| 
 | |
|     if-eqz p3, :cond_1
 | |
| 
 | |
|     const/16 p2, 0x2000
 | |
| 
 | |
|     .line 2
 | |
|     :cond_1
 | |
|     new-instance p3, Ljava/io/FileInputStream;
 | |
| 
 | |
|     invoke-direct {p3, p0}, Ljava/io/FileInputStream;-><init>(Ljava/io/File;)V
 | |
| 
 | |
|     new-instance p0, Ljava/io/InputStreamReader;
 | |
| 
 | |
|     invoke-direct {p0, p3, p1}, Ljava/io/InputStreamReader;-><init>(Ljava/io/InputStream;Ljava/nio/charset/Charset;)V
 | |
| 
 | |
|     instance-of p1, p0, Ljava/io/BufferedReader;
 | |
| 
 | |
|     if-eqz p1, :cond_2
 | |
| 
 | |
|     check-cast p0, Ljava/io/BufferedReader;
 | |
| 
 | |
|     goto :goto_0
 | |
| 
 | |
|     :cond_2
 | |
|     new-instance p1, Ljava/io/BufferedReader;
 | |
| 
 | |
|     invoke-direct {p1, p0, p2}, Ljava/io/BufferedReader;-><init>(Ljava/io/Reader;I)V
 | |
| 
 | |
|     move-object p0, p1
 | |
| 
 | |
|     :goto_0
 | |
|     return-object p0
 | |
| .end method
 | |
| 
 | |
| .method public static final l(Ljava/io/File;Ljava/nio/charset/Charset;I)Ljava/io/BufferedWriter;
 | |
|     .locals 1
 | |
|     .annotation build Lkotlin/internal/InlineOnly;
 | |
|     .end annotation
 | |
| 
 | |
|     .line 1
 | |
|     new-instance v0, Ljava/io/FileOutputStream;
 | |
| 
 | |
|     invoke-direct {v0, p0}, Ljava/io/FileOutputStream;-><init>(Ljava/io/File;)V
 | |
| 
 | |
|     new-instance p0, Ljava/io/OutputStreamWriter;
 | |
| 
 | |
|     invoke-direct {p0, v0, p1}, Ljava/io/OutputStreamWriter;-><init>(Ljava/io/OutputStream;Ljava/nio/charset/Charset;)V
 | |
| 
 | |
|     instance-of p1, p0, Ljava/io/BufferedWriter;
 | |
| 
 | |
|     if-eqz p1, :cond_0
 | |
| 
 | |
|     check-cast p0, Ljava/io/BufferedWriter;
 | |
| 
 | |
|     goto :goto_0
 | |
| 
 | |
|     :cond_0
 | |
|     new-instance p1, Ljava/io/BufferedWriter;
 | |
| 
 | |
|     invoke-direct {p1, p0, p2}, Ljava/io/BufferedWriter;-><init>(Ljava/io/Writer;I)V
 | |
| 
 | |
|     move-object p0, p1
 | |
| 
 | |
|     :goto_0
 | |
|     return-object p0
 | |
| .end method
 | |
| 
 | |
| .method public static synthetic m(Ljava/io/File;Ljava/nio/charset/Charset;IILjava/lang/Object;)Ljava/io/BufferedWriter;
 | |
|     .locals 0
 | |
| 
 | |
|     and-int/lit8 p4, p3, 0x1
 | |
| 
 | |
|     if-eqz p4, :cond_0
 | |
| 
 | |
|     .line 1
 | |
|     sget-object p1, Lkotlin/text/d;->a:Ljava/nio/charset/Charset;
 | |
| 
 | |
|     :cond_0
 | |
|     and-int/lit8 p3, p3, 0x2
 | |
| 
 | |
|     if-eqz p3, :cond_1
 | |
| 
 | |
|     const/16 p2, 0x2000
 | |
| 
 | |
|     .line 2
 | |
|     :cond_1
 | |
|     new-instance p3, Ljava/io/FileOutputStream;
 | |
| 
 | |
|     invoke-direct {p3, p0}, Ljava/io/FileOutputStream;-><init>(Ljava/io/File;)V
 | |
| 
 | |
|     new-instance p0, Ljava/io/OutputStreamWriter;
 | |
| 
 | |
|     invoke-direct {p0, p3, p1}, Ljava/io/OutputStreamWriter;-><init>(Ljava/io/OutputStream;Ljava/nio/charset/Charset;)V
 | |
| 
 | |
|     instance-of p1, p0, Ljava/io/BufferedWriter;
 | |
| 
 | |
|     if-eqz p1, :cond_2
 | |
| 
 | |
|     check-cast p0, Ljava/io/BufferedWriter;
 | |
| 
 | |
|     goto :goto_0
 | |
| 
 | |
|     :cond_2
 | |
|     new-instance p1, Ljava/io/BufferedWriter;
 | |
| 
 | |
|     invoke-direct {p1, p0, p2}, Ljava/io/BufferedWriter;-><init>(Ljava/io/Writer;I)V
 | |
| 
 | |
|     move-object p0, p1
 | |
| 
 | |
|     :goto_0
 | |
|     return-object p0
 | |
| .end method
 | |
| 
 | |
| .method public static final n(Ljava/io/File;ILej/p;)V
 | |
|     .locals 1
 | |
|     .param p0    # Ljava/io/File;
 | |
|         .annotation build Lorg/jetbrains/annotations/NotNull;
 | |
|         .end annotation
 | |
|     .end param
 | |
|     .param p2    # Lej/p;
 | |
|         .annotation build Lorg/jetbrains/annotations/NotNull;
 | |
|         .end annotation
 | |
|     .end param
 | |
|     .annotation system Ldalvik/annotation/Signature;
 | |
|         value = {
 | |
|             "(",
 | |
|             "Ljava/io/File;",
 | |
|             "I",
 | |
|             "Lej/p<",
 | |
|             "-[B-",
 | |
|             "Ljava/lang/Integer;",
 | |
|             "Lkotlin/d1;",
 | |
|             ">;)V"
 | |
|         }
 | |
|     .end annotation
 | |
| 
 | |
|     const-string v0, "$this$forEachBlock"
 | |
| 
 | |
|     invoke-static {p0, v0}, Lkotlin/jvm/internal/f0;->p(Ljava/lang/Object;Ljava/lang/String;)V
 | |
| 
 | |
|     const-string v0, "action"
 | |
| 
 | |
|     invoke-static {p2, v0}, Lkotlin/jvm/internal/f0;->p(Ljava/lang/Object;Ljava/lang/String;)V
 | |
| 
 | |
|     const/16 v0, 0x200
 | |
| 
 | |
|     .line 1
 | |
|     invoke-static {p1, v0}, Lkj/q;->n(II)I
 | |
| 
 | |
|     move-result p1
 | |
| 
 | |
|     new-array p1, p1, [B
 | |
| 
 | |
|     .line 2
 | |
|     new-instance v0, Ljava/io/FileInputStream;
 | |
| 
 | |
|     invoke-direct {v0, p0}, Ljava/io/FileInputStream;-><init>(Ljava/io/File;)V
 | |
| 
 | |
|     .line 3
 | |
|     :goto_0
 | |
|     :try_start_0
 | |
|     invoke-virtual {v0, p1}, Ljava/io/FileInputStream;->read([B)I
 | |
| 
 | |
|     move-result p0
 | |
| 
 | |
|     if-gtz p0, :cond_0
 | |
| 
 | |
|     .line 4
 | |
|     sget-object p0, Lkotlin/d1;->a:Lkotlin/d1;
 | |
|     :try_end_0
 | |
|     .catchall {:try_start_0 .. :try_end_0} :catchall_0
 | |
| 
 | |
|     const/4 p0, 0x0
 | |
| 
 | |
|     .line 5
 | |
|     invoke-static {v0, p0}, Lkotlin/io/b;->a(Ljava/io/Closeable;Ljava/lang/Throwable;)V
 | |
| 
 | |
|     return-void
 | |
| 
 | |
|     .line 6
 | |
|     :cond_0
 | |
|     :try_start_1
 | |
|     invoke-static {p0}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;
 | |
| 
 | |
|     move-result-object p0
 | |
| 
 | |
|     invoke-interface {p2, p1, p0}, Lej/p;->invoke(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
 | |
|     :try_end_1
 | |
|     .catchall {:try_start_1 .. :try_end_1} :catchall_0
 | |
| 
 | |
|     goto :goto_0
 | |
| 
 | |
|     :catchall_0
 | |
|     move-exception p0
 | |
| 
 | |
|     .line 7
 | |
|     :try_start_2
 | |
|     throw p0
 | |
|     :try_end_2
 | |
|     .catchall {:try_start_2 .. :try_end_2} :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 final o(Ljava/io/File;Lej/p;)V
 | |
|     .locals 1
 | |
|     .param p0    # Ljava/io/File;
 | |
|         .annotation build Lorg/jetbrains/annotations/NotNull;
 | |
|         .end annotation
 | |
|     .end param
 | |
|     .param p1    # Lej/p;
 | |
|         .annotation build Lorg/jetbrains/annotations/NotNull;
 | |
|         .end annotation
 | |
|     .end param
 | |
|     .annotation system Ldalvik/annotation/Signature;
 | |
|         value = {
 | |
|             "(",
 | |
|             "Ljava/io/File;",
 | |
|             "Lej/p<",
 | |
|             "-[B-",
 | |
|             "Ljava/lang/Integer;",
 | |
|             "Lkotlin/d1;",
 | |
|             ">;)V"
 | |
|         }
 | |
|     .end annotation
 | |
| 
 | |
|     const-string v0, "$this$forEachBlock"
 | |
| 
 | |
|     invoke-static {p0, v0}, Lkotlin/jvm/internal/f0;->p(Ljava/lang/Object;Ljava/lang/String;)V
 | |
| 
 | |
|     const-string v0, "action"
 | |
| 
 | |
|     invoke-static {p1, v0}, Lkotlin/jvm/internal/f0;->p(Ljava/lang/Object;Ljava/lang/String;)V
 | |
| 
 | |
|     const/16 v0, 0x1000
 | |
| 
 | |
|     .line 1
 | |
|     invoke-static {p0, v0, p1}, Lkotlin/io/FilesKt__FileReadWriteKt;->n(Ljava/io/File;ILej/p;)V
 | |
| 
 | |
|     return-void
 | |
| .end method
 | |
| 
 | |
| .method public static final p(Ljava/io/File;Ljava/nio/charset/Charset;Lej/l;)V
 | |
|     .locals 3
 | |
|     .param p0    # Ljava/io/File;
 | |
|         .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
 | |
|     .param p2    # Lej/l;
 | |
|         .annotation build Lorg/jetbrains/annotations/NotNull;
 | |
|         .end annotation
 | |
|     .end param
 | |
|     .annotation system Ldalvik/annotation/Signature;
 | |
|         value = {
 | |
|             "(",
 | |
|             "Ljava/io/File;",
 | |
|             "Ljava/nio/charset/Charset;",
 | |
|             "Lej/l<",
 | |
|             "-",
 | |
|             "Ljava/lang/String;",
 | |
|             "Lkotlin/d1;",
 | |
|             ">;)V"
 | |
|         }
 | |
|     .end annotation
 | |
| 
 | |
|     const-string v0, "$this$forEachLine"
 | |
| 
 | |
|     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-string v0, "action"
 | |
| 
 | |
|     invoke-static {p2, v0}, Lkotlin/jvm/internal/f0;->p(Ljava/lang/Object;Ljava/lang/String;)V
 | |
| 
 | |
|     .line 1
 | |
|     new-instance v0, Ljava/io/BufferedReader;
 | |
| 
 | |
|     new-instance v1, Ljava/io/InputStreamReader;
 | |
| 
 | |
|     new-instance v2, Ljava/io/FileInputStream;
 | |
| 
 | |
|     invoke-direct {v2, p0}, Ljava/io/FileInputStream;-><init>(Ljava/io/File;)V
 | |
| 
 | |
|     invoke-direct {v1, v2, p1}, Ljava/io/InputStreamReader;-><init>(Ljava/io/InputStream;Ljava/nio/charset/Charset;)V
 | |
| 
 | |
|     invoke-direct {v0, v1}, Ljava/io/BufferedReader;-><init>(Ljava/io/Reader;)V
 | |
| 
 | |
|     invoke-static {v0, p2}, Lkotlin/io/TextStreamsKt;->g(Ljava/io/Reader;Lej/l;)V
 | |
| 
 | |
|     return-void
 | |
| .end method
 | |
| 
 | |
| .method public static synthetic q(Ljava/io/File;Ljava/nio/charset/Charset;Lej/l;ILjava/lang/Object;)V
 | |
|     .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;
 | |
| 
 | |
|     :cond_0
 | |
|     invoke-static {p0, p1, p2}, Lkotlin/io/FilesKt__FileReadWriteKt;->p(Ljava/io/File;Ljava/nio/charset/Charset;Lej/l;)V
 | |
| 
 | |
|     return-void
 | |
| .end method
 | |
| 
 | |
| .method public static final r(Ljava/io/File;)Ljava/io/FileInputStream;
 | |
|     .locals 1
 | |
|     .annotation build Lkotlin/internal/InlineOnly;
 | |
|     .end annotation
 | |
| 
 | |
|     .line 1
 | |
|     new-instance v0, Ljava/io/FileInputStream;
 | |
| 
 | |
|     invoke-direct {v0, p0}, Ljava/io/FileInputStream;-><init>(Ljava/io/File;)V
 | |
| 
 | |
|     return-object v0
 | |
| .end method
 | |
| 
 | |
| .method public static final s(Ljava/io/File;)Ljava/io/FileOutputStream;
 | |
|     .locals 1
 | |
|     .annotation build Lkotlin/internal/InlineOnly;
 | |
|     .end annotation
 | |
| 
 | |
|     .line 1
 | |
|     new-instance v0, Ljava/io/FileOutputStream;
 | |
| 
 | |
|     invoke-direct {v0, p0}, Ljava/io/FileOutputStream;-><init>(Ljava/io/File;)V
 | |
| 
 | |
|     return-object v0
 | |
| .end method
 | |
| 
 | |
| .method public static final t(Ljava/io/File;Ljava/nio/charset/Charset;)Ljava/io/PrintWriter;
 | |
|     .locals 2
 | |
|     .annotation build Lkotlin/internal/InlineOnly;
 | |
|     .end annotation
 | |
| 
 | |
|     .line 1
 | |
|     new-instance v0, Ljava/io/PrintWriter;
 | |
| 
 | |
|     new-instance v1, Ljava/io/FileOutputStream;
 | |
| 
 | |
|     invoke-direct {v1, p0}, Ljava/io/FileOutputStream;-><init>(Ljava/io/File;)V
 | |
| 
 | |
|     new-instance p0, Ljava/io/OutputStreamWriter;
 | |
| 
 | |
|     invoke-direct {p0, v1, p1}, Ljava/io/OutputStreamWriter;-><init>(Ljava/io/OutputStream;Ljava/nio/charset/Charset;)V
 | |
| 
 | |
|     instance-of p1, p0, Ljava/io/BufferedWriter;
 | |
| 
 | |
|     if-eqz p1, :cond_0
 | |
| 
 | |
|     check-cast p0, Ljava/io/BufferedWriter;
 | |
| 
 | |
|     goto :goto_0
 | |
| 
 | |
|     :cond_0
 | |
|     new-instance p1, Ljava/io/BufferedWriter;
 | |
| 
 | |
|     const/16 v1, 0x2000
 | |
| 
 | |
|     invoke-direct {p1, p0, v1}, Ljava/io/BufferedWriter;-><init>(Ljava/io/Writer;I)V
 | |
| 
 | |
|     move-object p0, p1
 | |
| 
 | |
|     :goto_0
 | |
|     invoke-direct {v0, p0}, Ljava/io/PrintWriter;-><init>(Ljava/io/Writer;)V
 | |
| 
 | |
|     return-object v0
 | |
| .end method
 | |
| 
 | |
| .method public static synthetic u(Ljava/io/File;Ljava/nio/charset/Charset;ILjava/lang/Object;)Ljava/io/PrintWriter;
 | |
|     .locals 1
 | |
| 
 | |
|     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
 | |
|     new-instance p2, Ljava/io/PrintWriter;
 | |
| 
 | |
|     const/16 p3, 0x2000
 | |
| 
 | |
|     new-instance v0, Ljava/io/FileOutputStream;
 | |
| 
 | |
|     invoke-direct {v0, p0}, Ljava/io/FileOutputStream;-><init>(Ljava/io/File;)V
 | |
| 
 | |
|     new-instance p0, Ljava/io/OutputStreamWriter;
 | |
| 
 | |
|     invoke-direct {p0, v0, p1}, Ljava/io/OutputStreamWriter;-><init>(Ljava/io/OutputStream;Ljava/nio/charset/Charset;)V
 | |
| 
 | |
|     instance-of p1, p0, Ljava/io/BufferedWriter;
 | |
| 
 | |
|     if-eqz p1, :cond_1
 | |
| 
 | |
|     check-cast p0, Ljava/io/BufferedWriter;
 | |
| 
 | |
|     goto :goto_0
 | |
| 
 | |
|     :cond_1
 | |
|     new-instance p1, Ljava/io/BufferedWriter;
 | |
| 
 | |
|     invoke-direct {p1, p0, p3}, Ljava/io/BufferedWriter;-><init>(Ljava/io/Writer;I)V
 | |
| 
 | |
|     move-object p0, p1
 | |
| 
 | |
|     :goto_0
 | |
|     invoke-direct {p2, p0}, Ljava/io/PrintWriter;-><init>(Ljava/io/Writer;)V
 | |
| 
 | |
|     return-object p2
 | |
| .end method
 | |
| 
 | |
| .method public static final v(Ljava/io/File;)[B
 | |
|     .locals 10
 | |
|     .param p0    # Ljava/io/File;
 | |
|         .annotation build Lorg/jetbrains/annotations/NotNull;
 | |
|         .end annotation
 | |
|     .end param
 | |
|     .annotation build Lorg/jetbrains/annotations/NotNull;
 | |
|     .end annotation
 | |
| 
 | |
|     const-string v0, "$this$readBytes"
 | |
| 
 | |
|     invoke-static {p0, v0}, Lkotlin/jvm/internal/f0;->p(Ljava/lang/Object;Ljava/lang/String;)V
 | |
| 
 | |
|     .line 1
 | |
|     new-instance v0, Ljava/io/FileInputStream;
 | |
| 
 | |
|     invoke-direct {v0, p0}, Ljava/io/FileInputStream;-><init>(Ljava/io/File;)V
 | |
| 
 | |
|     .line 2
 | |
|     :try_start_0
 | |
|     invoke-virtual {p0}, Ljava/io/File;->length()J
 | |
| 
 | |
|     move-result-wide v1
 | |
|     :try_end_0
 | |
|     .catchall {:try_start_0 .. :try_end_0} :catchall_0
 | |
| 
 | |
|     const v3, 0x7fffffff
 | |
| 
 | |
|     int-to-long v3, v3
 | |
| 
 | |
|     cmp-long v3, v1, v3
 | |
| 
 | |
|     const-string v4, "File "
 | |
| 
 | |
|     if-gtz v3, :cond_5
 | |
| 
 | |
|     long-to-int v1, v1
 | |
| 
 | |
|     .line 3
 | |
|     :try_start_1
 | |
|     new-array v2, v1, [B
 | |
| 
 | |
|     const/4 v3, 0x0
 | |
| 
 | |
|     move v5, v1
 | |
| 
 | |
|     move v6, v3
 | |
| 
 | |
|     :goto_0
 | |
|     if-lez v5, :cond_1
 | |
| 
 | |
|     .line 4
 | |
|     invoke-virtual {v0, v2, v6, v5}, Ljava/io/FileInputStream;->read([BII)I
 | |
| 
 | |
|     move-result v7
 | |
|     :try_end_1
 | |
|     .catchall {:try_start_1 .. :try_end_1} :catchall_0
 | |
| 
 | |
|     if-gez v7, :cond_0
 | |
| 
 | |
|     goto :goto_1
 | |
| 
 | |
|     :cond_0
 | |
|     sub-int/2addr v5, v7
 | |
| 
 | |
|     add-int/2addr v6, v7
 | |
| 
 | |
|     goto :goto_0
 | |
| 
 | |
|     :cond_1
 | |
|     :goto_1
 | |
|     const-string v7, "java.util.Arrays.copyOf(this, newSize)"
 | |
| 
 | |
|     const/4 v8, 0x0
 | |
| 
 | |
|     if-lez v5, :cond_2
 | |
| 
 | |
|     .line 5
 | |
|     :try_start_2
 | |
|     invoke-static {v2, v6}, Ljava/util/Arrays;->copyOf([BI)[B
 | |
| 
 | |
|     move-result-object v2
 | |
| 
 | |
|     invoke-static {v2, v7}, Lkotlin/jvm/internal/f0;->o(Ljava/lang/Object;Ljava/lang/String;)V
 | |
| 
 | |
|     goto :goto_2
 | |
| 
 | |
|     .line 6
 | |
|     :cond_2
 | |
|     invoke-virtual {v0}, Ljava/io/FileInputStream;->read()I
 | |
| 
 | |
|     move-result v5
 | |
| 
 | |
|     const/4 v6, -0x1
 | |
| 
 | |
|     if-ne v5, v6, :cond_3
 | |
| 
 | |
|     goto :goto_2
 | |
| 
 | |
|     .line 7
 | |
|     :cond_3
 | |
|     new-instance v6, Lkotlin/io/f;
 | |
| 
 | |
|     const/16 v9, 0x2001
 | |
| 
 | |
|     invoke-direct {v6, v9}, Lkotlin/io/f;-><init>(I)V
 | |
| 
 | |
|     .line 8
 | |
|     invoke-virtual {v6, v5}, Ljava/io/ByteArrayOutputStream;->write(I)V
 | |
| 
 | |
|     const/4 v5, 0x2
 | |
| 
 | |
|     .line 9
 | |
|     invoke-static {v0, v6, v3, v5, v8}, Lkotlin/io/a;->l(Ljava/io/InputStream;Ljava/io/OutputStream;IILjava/lang/Object;)J
 | |
| 
 | |
|     .line 10
 | |
|     invoke-virtual {v6}, Ljava/io/ByteArrayOutputStream;->size()I
 | |
| 
 | |
|     move-result v5
 | |
| 
 | |
|     add-int/2addr v5, v1
 | |
| 
 | |
|     if-ltz v5, :cond_4
 | |
| 
 | |
|     .line 11
 | |
|     invoke-virtual {v6}, Lkotlin/io/f;->a()[B
 | |
| 
 | |
|     move-result-object p0
 | |
| 
 | |
|     .line 12
 | |
|     invoke-static {v2, v5}, Ljava/util/Arrays;->copyOf([BI)[B
 | |
| 
 | |
|     move-result-object v2
 | |
| 
 | |
|     invoke-static {v2, v7}, Lkotlin/jvm/internal/f0;->o(Ljava/lang/Object;Ljava/lang/String;)V
 | |
| 
 | |
|     .line 13
 | |
|     invoke-virtual {v6}, Ljava/io/ByteArrayOutputStream;->size()I
 | |
| 
 | |
|     move-result v4
 | |
| 
 | |
|     .line 14
 | |
|     invoke-static {p0, v2, v1, v3, v4}, Lkotlin/collections/n;->W0([B[BIII)[B
 | |
| 
 | |
|     move-result-object v2
 | |
|     :try_end_2
 | |
|     .catchall {:try_start_2 .. :try_end_2} :catchall_0
 | |
| 
 | |
|     .line 15
 | |
|     :goto_2
 | |
|     invoke-static {v0, v8}, Lkotlin/io/b;->a(Ljava/io/Closeable;Ljava/lang/Throwable;)V
 | |
| 
 | |
|     return-object v2
 | |
| 
 | |
|     .line 16
 | |
|     :cond_4
 | |
|     :try_start_3
 | |
|     new-instance v1, Ljava/lang/OutOfMemoryError;
 | |
| 
 | |
|     new-instance v2, Ljava/lang/StringBuilder;
 | |
| 
 | |
|     invoke-direct {v2}, Ljava/lang/StringBuilder;-><init>()V
 | |
| 
 | |
|     invoke-virtual {v2, v4}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
 | |
| 
 | |
|     invoke-virtual {v2, p0}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder;
 | |
| 
 | |
|     const-string p0, " is too big to fit in memory."
 | |
| 
 | |
|     invoke-virtual {v2, p0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
 | |
| 
 | |
|     invoke-virtual {v2}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
 | |
| 
 | |
|     move-result-object p0
 | |
| 
 | |
|     invoke-direct {v1, p0}, Ljava/lang/OutOfMemoryError;-><init>(Ljava/lang/String;)V
 | |
| 
 | |
|     throw v1
 | |
| 
 | |
|     .line 17
 | |
|     :cond_5
 | |
|     new-instance v3, Ljava/lang/OutOfMemoryError;
 | |
| 
 | |
|     new-instance v5, Ljava/lang/StringBuilder;
 | |
| 
 | |
|     invoke-direct {v5}, Ljava/lang/StringBuilder;-><init>()V
 | |
| 
 | |
|     invoke-virtual {v5, v4}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
 | |
| 
 | |
|     invoke-virtual {v5, p0}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder;
 | |
| 
 | |
|     const-string p0, " is too big ("
 | |
| 
 | |
|     invoke-virtual {v5, p0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
 | |
| 
 | |
|     invoke-virtual {v5, v1, v2}, Ljava/lang/StringBuilder;->append(J)Ljava/lang/StringBuilder;
 | |
| 
 | |
|     const-string p0, " bytes) to fit in memory."
 | |
| 
 | |
|     invoke-virtual {v5, p0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
 | |
| 
 | |
|     invoke-virtual {v5}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
 | |
| 
 | |
|     move-result-object p0
 | |
| 
 | |
|     invoke-direct {v3, p0}, Ljava/lang/OutOfMemoryError;-><init>(Ljava/lang/String;)V
 | |
| 
 | |
|     throw v3
 | |
|     :try_end_3
 | |
|     .catchall {:try_start_3 .. :try_end_3} :catchall_0
 | |
| 
 | |
|     :catchall_0
 | |
|     move-exception p0
 | |
| 
 | |
|     .line 18
 | |
|     :try_start_4
 | |
|     throw p0
 | |
|     :try_end_4
 | |
|     .catchall {:try_start_4 .. :try_end_4} :catchall_1
 | |
| 
 | |
|     :catchall_1
 | |
|     move-exception v1
 | |
| 
 | |
|     invoke-static {v0, p0}, Lkotlin/io/b;->a(Ljava/io/Closeable;Ljava/lang/Throwable;)V
 | |
| 
 | |
|     throw v1
 | |
| .end method
 | |
| 
 | |
| .method public static final w(Ljava/io/File;Ljava/nio/charset/Charset;)Ljava/util/List;
 | |
|     .locals 2
 | |
|     .param p0    # Ljava/io/File;
 | |
|         .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 system Ldalvik/annotation/Signature;
 | |
|         value = {
 | |
|             "(",
 | |
|             "Ljava/io/File;",
 | |
|             "Ljava/nio/charset/Charset;",
 | |
|             ")",
 | |
|             "Ljava/util/List<",
 | |
|             "Ljava/lang/String;",
 | |
|             ">;"
 | |
|         }
 | |
|     .end annotation
 | |
| 
 | |
|     .annotation build Lorg/jetbrains/annotations/NotNull;
 | |
|     .end annotation
 | |
| 
 | |
|     const-string v0, "$this$readLines"
 | |
| 
 | |
|     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
 | |
| 
 | |
|     .line 1
 | |
|     new-instance v0, Ljava/util/ArrayList;
 | |
| 
 | |
|     invoke-direct {v0}, Ljava/util/ArrayList;-><init>()V
 | |
| 
 | |
|     .line 2
 | |
|     new-instance v1, Lkotlin/io/FilesKt__FileReadWriteKt$readLines$1;
 | |
| 
 | |
|     invoke-direct {v1, v0}, Lkotlin/io/FilesKt__FileReadWriteKt$readLines$1;-><init>(Ljava/util/ArrayList;)V
 | |
| 
 | |
|     invoke-static {p0, p1, v1}, Lkotlin/io/FilesKt__FileReadWriteKt;->p(Ljava/io/File;Ljava/nio/charset/Charset;Lej/l;)V
 | |
| 
 | |
|     return-object v0
 | |
| .end method
 | |
| 
 | |
| .method public static synthetic x(Ljava/io/File;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;
 | |
| 
 | |
|     :cond_0
 | |
|     invoke-static {p0, p1}, Lkotlin/io/FilesKt__FileReadWriteKt;->w(Ljava/io/File;Ljava/nio/charset/Charset;)Ljava/util/List;
 | |
| 
 | |
|     move-result-object p0
 | |
| 
 | |
|     return-object p0
 | |
| .end method
 | |
| 
 | |
| .method public static final y(Ljava/io/File;Ljava/nio/charset/Charset;)Ljava/lang/String;
 | |
|     .locals 1
 | |
|     .param p0    # Ljava/io/File;
 | |
|         .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 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
 | |
| 
 | |
|     .line 1
 | |
|     new-instance v0, Ljava/io/FileInputStream;
 | |
| 
 | |
|     invoke-direct {v0, p0}, Ljava/io/FileInputStream;-><init>(Ljava/io/File;)V
 | |
| 
 | |
|     new-instance p0, Ljava/io/InputStreamReader;
 | |
| 
 | |
|     invoke-direct {p0, v0, p1}, Ljava/io/InputStreamReader;-><init>(Ljava/io/InputStream;Ljava/nio/charset/Charset;)V
 | |
| 
 | |
|     :try_start_0
 | |
|     invoke-static {p0}, Lkotlin/io/TextStreamsKt;->k(Ljava/io/Reader;)Ljava/lang/String;
 | |
| 
 | |
|     move-result-object p1
 | |
|     :try_end_0
 | |
|     .catchall {:try_start_0 .. :try_end_0} :catchall_0
 | |
| 
 | |
|     const/4 v0, 0x0
 | |
| 
 | |
|     invoke-static {p0, v0}, Lkotlin/io/b;->a(Ljava/io/Closeable;Ljava/lang/Throwable;)V
 | |
| 
 | |
|     return-object p1
 | |
| 
 | |
|     :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 v0
 | |
| 
 | |
|     invoke-static {p0, p1}, Lkotlin/io/b;->a(Ljava/io/Closeable;Ljava/lang/Throwable;)V
 | |
| 
 | |
|     throw v0
 | |
| .end method
 | |
| 
 | |
| .method public static synthetic z(Ljava/io/File;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}, Lkotlin/io/FilesKt__FileReadWriteKt;->y(Ljava/io/File;Ljava/nio/charset/Charset;)Ljava/lang/String;
 | |
| 
 | |
|     move-result-object p0
 | |
| 
 | |
|     return-object p0
 | |
| .end method
 |