.class public final Lkotlin/io/ByteStreamsKt; .super Ljava/lang/Object; .source "IOStreams.kt" # annotations .annotation runtime Lkotlin/Metadata; d1 = { "\u0000Z\n\u0000\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0000\n\u0002\u0010\u0008\n\u0002\u0018\u0002\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\u0018\u0002\n\u0002\u0010\u000e\n\u0000\n\u0002\u0010\t\n\u0002\u0008\u0002\n\u0002\u0010\u0012\n\u0002\u0008\u0003\n\u0002\u0018\u0002\n\u0002\u0008\u0003\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0000\u001a\u0017\u0010\u0000\u001a\u00020\u0001*\u00020\u00022\u0008\u0008\u0002\u0010\u0003\u001a\u00020\u0004H\u0087\u0008\u001a\u0017\u0010\u0000\u001a\u00020\u0005*\u00020\u00062\u0008\u0008\u0002\u0010\u0003\u001a\u00020\u0004H\u0087\u0008\u001a\u0017\u0010\u0007\u001a\u00020\u0008*\u00020\u00022\u0008\u0008\u0002\u0010\t\u001a\u00020\nH\u0087\u0008\u001a\u0017\u0010\u000b\u001a\u00020\u000c*\u00020\u00062\u0008\u0008\u0002\u0010\t\u001a\u00020\nH\u0087\u0008\u001a\u0017\u0010\r\u001a\u00020\u000e*\u00020\u000f2\u0008\u0008\u0002\u0010\t\u001a\u00020\nH\u0087\u0008\u001a\u001c\u0010\u0010\u001a\u00020\u0011*\u00020\u00022\u0006\u0010\u0012\u001a\u00020\u00062\u0008\u0008\u0002\u0010\u0003\u001a\u00020\u0004\u001a\r\u0010\u0013\u001a\u00020\u000e*\u00020\u0014H\u0087\u0008\u001a\u001d\u0010\u0013\u001a\u00020\u000e*\u00020\u00142\u0006\u0010\u0015\u001a\u00020\u00042\u0006\u0010\u0016\u001a\u00020\u0004H\u0087\u0008\u001a\r\u0010\u0017\u001a\u00020\u0018*\u00020\u0001H\u0086\u0002\u001a\u000c\u0010\u0019\u001a\u00020\u0014*\u00020\u0002H\u0007\u001a\u0016\u0010\u0019\u001a\u00020\u0014*\u00020\u00022\u0008\u0008\u0002\u0010\u001a\u001a\u00020\u0004H\u0007\u001a\u0017\u0010\u001b\u001a\u00020\u001c*\u00020\u00022\u0008\u0008\u0002\u0010\t\u001a\u00020\nH\u0087\u0008\u001a\u0017\u0010\u001d\u001a\u00020\u001e*\u00020\u00062\u0008\u0008\u0002\u0010\t\u001a\u00020\nH\u0087\u0008\u00a8\u0006\u001f" } d2 = { "buffered", "Ljava/io/BufferedInputStream;", "Ljava/io/InputStream;", "bufferSize", "", "Ljava/io/BufferedOutputStream;", "Ljava/io/OutputStream;", "bufferedReader", "Ljava/io/BufferedReader;", "charset", "Ljava/nio/charset/Charset;", "bufferedWriter", "Ljava/io/BufferedWriter;", "byteInputStream", "Ljava/io/ByteArrayInputStream;", "", "copyTo", "", "out", "inputStream", "", "offset", "length", "iterator", "Lkotlin/collections/ByteIterator;", "readBytes", "estimatedSize", "reader", "Ljava/io/InputStreamReader;", "writer", "Ljava/io/OutputStreamWriter;", "kotlin-stdlib" } k = 0x2 mv = { 0x1, 0x9, 0x0 } xi = 0x30 .end annotation # direct methods .method private static final buffered(Ljava/io/InputStream;I)Ljava/io/BufferedInputStream; .locals 1 const-string v0, "" invoke-static {p0, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V .line 72 instance-of v0, p0, Ljava/io/BufferedInputStream; if-eqz v0, :cond_0 check-cast p0, Ljava/io/BufferedInputStream; goto :goto_0 :cond_0 new-instance v0, Ljava/io/BufferedInputStream; invoke-direct {v0, p0, p1}, Ljava/io/BufferedInputStream;->(Ljava/io/InputStream;I)V move-object p0, v0 :goto_0 return-object p0 .end method .method private static final buffered(Ljava/io/OutputStream;I)Ljava/io/BufferedOutputStream; .locals 1 const-string v0, "" invoke-static {p0, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V .line 88 instance-of v0, p0, Ljava/io/BufferedOutputStream; if-eqz v0, :cond_0 check-cast p0, Ljava/io/BufferedOutputStream; goto :goto_0 :cond_0 new-instance v0, Ljava/io/BufferedOutputStream; invoke-direct {v0, p0, p1}, Ljava/io/BufferedOutputStream;->(Ljava/io/OutputStream;I)V move-object p0, v0 :goto_0 return-object p0 .end method .method static synthetic buffered$default(Ljava/io/InputStream;IILjava/lang/Object;)Ljava/io/BufferedInputStream; .locals 0 and-int/lit8 p2, p2, 0x1 if-eqz p2, :cond_0 const/16 p1, 0x2000 :cond_0 const-string p2, "" .line 71 invoke-static {p0, p2}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V .line 72 instance-of p2, p0, Ljava/io/BufferedInputStream; if-eqz p2, :cond_1 check-cast p0, Ljava/io/BufferedInputStream; goto :goto_0 :cond_1 new-instance p2, Ljava/io/BufferedInputStream; invoke-direct {p2, p0, p1}, Ljava/io/BufferedInputStream;->(Ljava/io/InputStream;I)V move-object p0, p2 :goto_0 return-object p0 .end method .method static synthetic buffered$default(Ljava/io/OutputStream;IILjava/lang/Object;)Ljava/io/BufferedOutputStream; .locals 0 and-int/lit8 p2, p2, 0x1 if-eqz p2, :cond_0 const/16 p1, 0x2000 :cond_0 const-string p2, "" .line 87 invoke-static {p0, p2}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V .line 88 instance-of p2, p0, Ljava/io/BufferedOutputStream; if-eqz p2, :cond_1 check-cast p0, Ljava/io/BufferedOutputStream; goto :goto_0 :cond_1 new-instance p2, Ljava/io/BufferedOutputStream; invoke-direct {p2, p0, p1}, Ljava/io/BufferedOutputStream;->(Ljava/io/OutputStream;I)V move-object p0, p2 :goto_0 return-object p0 .end method .method private static final bufferedReader(Ljava/io/InputStream;Ljava/nio/charset/Charset;)Ljava/io/BufferedReader; .locals 1 const-string v0, "" 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 new-instance v0, Ljava/io/InputStreamReader; .line 80 invoke-direct {v0, p0, p1}, Ljava/io/InputStreamReader;->(Ljava/io/InputStream;Ljava/nio/charset/Charset;)V check-cast v0, Ljava/io/Reader; instance-of p0, v0, Ljava/io/BufferedReader; if-eqz p0, :cond_0 check-cast v0, Ljava/io/BufferedReader; goto :goto_0 :cond_0 new-instance p0, Ljava/io/BufferedReader; const/16 p1, 0x2000 invoke-direct {p0, v0, p1}, Ljava/io/BufferedReader;->(Ljava/io/Reader;I)V move-object v0, p0 :goto_0 return-object v0 .end method .method static synthetic bufferedReader$default(Ljava/io/InputStream;Ljava/nio/charset/Charset;ILjava/lang/Object;)Ljava/io/BufferedReader; .locals 0 and-int/lit8 p2, p2, 0x1 if-eqz p2, :cond_0 .line 80 sget-object p1, Lkotlin/text/Charsets;->UTF_8:Ljava/nio/charset/Charset; :cond_0 const-string p2, "" invoke-static {p0, p2}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V const-string p2, "charset" invoke-static {p1, p2}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V new-instance p2, Ljava/io/InputStreamReader; invoke-direct {p2, p0, p1}, Ljava/io/InputStreamReader;->(Ljava/io/InputStream;Ljava/nio/charset/Charset;)V check-cast p2, Ljava/io/Reader; instance-of p0, p2, Ljava/io/BufferedReader; if-eqz p0, :cond_1 check-cast p2, Ljava/io/BufferedReader; goto :goto_0 :cond_1 new-instance p0, Ljava/io/BufferedReader; const/16 p1, 0x2000 invoke-direct {p0, p2, p1}, Ljava/io/BufferedReader;->(Ljava/io/Reader;I)V move-object p2, p0 :goto_0 return-object p2 .end method .method private static final bufferedWriter(Ljava/io/OutputStream;Ljava/nio/charset/Charset;)Ljava/io/BufferedWriter; .locals 1 const-string v0, "" 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 new-instance v0, Ljava/io/OutputStreamWriter; .line 96 invoke-direct {v0, p0, p1}, Ljava/io/OutputStreamWriter;->(Ljava/io/OutputStream;Ljava/nio/charset/Charset;)V check-cast v0, Ljava/io/Writer; instance-of p0, v0, Ljava/io/BufferedWriter; if-eqz p0, :cond_0 check-cast v0, Ljava/io/BufferedWriter; goto :goto_0 :cond_0 new-instance p0, Ljava/io/BufferedWriter; const/16 p1, 0x2000 invoke-direct {p0, v0, p1}, Ljava/io/BufferedWriter;->(Ljava/io/Writer;I)V move-object v0, p0 :goto_0 return-object v0 .end method .method static synthetic bufferedWriter$default(Ljava/io/OutputStream;Ljava/nio/charset/Charset;ILjava/lang/Object;)Ljava/io/BufferedWriter; .locals 0 and-int/lit8 p2, p2, 0x1 if-eqz p2, :cond_0 .line 96 sget-object p1, Lkotlin/text/Charsets;->UTF_8:Ljava/nio/charset/Charset; :cond_0 const-string p2, "" invoke-static {p0, p2}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V const-string p2, "charset" invoke-static {p1, p2}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V new-instance p2, Ljava/io/OutputStreamWriter; invoke-direct {p2, p0, p1}, Ljava/io/OutputStreamWriter;->(Ljava/io/OutputStream;Ljava/nio/charset/Charset;)V check-cast p2, Ljava/io/Writer; instance-of p0, p2, Ljava/io/BufferedWriter; if-eqz p0, :cond_1 check-cast p2, Ljava/io/BufferedWriter; goto :goto_0 :cond_1 new-instance p0, Ljava/io/BufferedWriter; const/16 p1, 0x2000 invoke-direct {p0, p2, p1}, Ljava/io/BufferedWriter;->(Ljava/io/Writer;I)V move-object p2, p0 :goto_0 return-object p2 .end method .method private static final byteInputStream(Ljava/lang/String;Ljava/nio/charset/Charset;)Ljava/io/ByteArrayInputStream; .locals 1 const-string v0, "" 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 .line 50 new-instance v0, Ljava/io/ByteArrayInputStream; invoke-virtual {p0, p1}, Ljava/lang/String;->getBytes(Ljava/nio/charset/Charset;)[B move-result-object p0 const-string p1, "getBytes(...)" invoke-static {p0, p1}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullExpressionValue(Ljava/lang/Object;Ljava/lang/String;)V invoke-direct {v0, p0}, Ljava/io/ByteArrayInputStream;->([B)V return-object v0 .end method .method static synthetic byteInputStream$default(Ljava/lang/String;Ljava/nio/charset/Charset;ILjava/lang/Object;)Ljava/io/ByteArrayInputStream; .locals 0 and-int/lit8 p2, p2, 0x1 if-eqz p2, :cond_0 .line 50 sget-object p1, Lkotlin/text/Charsets;->UTF_8:Ljava/nio/charset/Charset; :cond_0 const-string p2, "" invoke-static {p0, p2}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V const-string p2, "charset" invoke-static {p1, p2}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V new-instance p2, Ljava/io/ByteArrayInputStream; invoke-virtual {p0, p1}, Ljava/lang/String;->getBytes(Ljava/nio/charset/Charset;)[B move-result-object p0 const-string p1, "getBytes(...)" invoke-static {p0, p1}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullExpressionValue(Ljava/lang/Object;Ljava/lang/String;)V invoke-direct {p2, p0}, Ljava/io/ByteArrayInputStream;->([B)V return-object p2 .end method .method public static final copyTo(Ljava/io/InputStream;Ljava/io/OutputStream;I)J .locals 5 const-string v0, "" invoke-static {p0, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V const-string v0, "out" invoke-static {p1, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V .line 105 new-array p2, p2, [B .line 106 invoke-virtual {p0, p2}, Ljava/io/InputStream;->read([B)I move-result v0 const-wide/16 v1, 0x0 :goto_0 if-ltz v0, :cond_0 const/4 v3, 0x0 .line 108 invoke-virtual {p1, p2, v3, v0}, Ljava/io/OutputStream;->write([BII)V int-to-long v3, v0 add-long/2addr v1, v3 .line 110 invoke-virtual {p0, p2}, Ljava/io/InputStream;->read([B)I move-result v0 goto :goto_0 :cond_0 return-wide v1 .end method .method public static synthetic copyTo$default(Ljava/io/InputStream;Ljava/io/OutputStream;IILjava/lang/Object;)J .locals 0 and-int/lit8 p3, p3, 0x2 if-eqz p3, :cond_0 const/16 p2, 0x2000 .line 103 :cond_0 invoke-static {p0, p1, p2}, Lkotlin/io/ByteStreamsKt;->copyTo(Ljava/io/InputStream;Ljava/io/OutputStream;I)J move-result-wide p0 return-wide p0 .end method .method private static final inputStream([B)Ljava/io/ByteArrayInputStream; .locals 1 const-string v0, "" invoke-static {p0, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V .line 56 new-instance v0, Ljava/io/ByteArrayInputStream; invoke-direct {v0, p0}, Ljava/io/ByteArrayInputStream;->([B)V return-object v0 .end method .method private static final inputStream([BII)Ljava/io/ByteArrayInputStream; .locals 1 const-string v0, "" invoke-static {p0, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V .line 64 new-instance v0, Ljava/io/ByteArrayInputStream; invoke-direct {v0, p0, p1, p2}, Ljava/io/ByteArrayInputStream;->([BII)V return-object v0 .end method .method public static final iterator(Ljava/io/BufferedInputStream;)Lkotlin/collections/ByteIterator; .locals 1 const-string v0, "" invoke-static {p0, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V .line 16 new-instance v0, Lkotlin/io/ByteStreamsKt$iterator$1; invoke-direct {v0, p0}, Lkotlin/io/ByteStreamsKt$iterator$1;->(Ljava/io/BufferedInputStream;)V check-cast v0, Lkotlin/collections/ByteIterator; return-object v0 .end method .method public static final readBytes(Ljava/io/InputStream;)[B .locals 5 const-string v0, "" invoke-static {p0, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V .line 135 new-instance v0, Ljava/io/ByteArrayOutputStream; const/16 v1, 0x2000 invoke-virtual {p0}, Ljava/io/InputStream;->available()I move-result v2 invoke-static {v1, v2}, Ljava/lang/Math;->max(II)I move-result v1 invoke-direct {v0, v1}, Ljava/io/ByteArrayOutputStream;->(I)V .line 136 move-object v1, v0 check-cast v1, Ljava/io/OutputStream; const/4 v2, 0x2 const/4 v3, 0x0 const/4 v4, 0x0 invoke-static {p0, v1, v4, v2, v3}, Lkotlin/io/ByteStreamsKt;->copyTo$default(Ljava/io/InputStream;Ljava/io/OutputStream;IILjava/lang/Object;)J .line 137 invoke-virtual {v0}, Ljava/io/ByteArrayOutputStream;->toByteArray()[B move-result-object p0 const-string v0, "toByteArray(...)" invoke-static {p0, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullExpressionValue(Ljava/lang/Object;Ljava/lang/String;)V return-object p0 .end method .method public static final readBytes(Ljava/io/InputStream;I)[B .locals 4 .annotation runtime Lkotlin/Deprecated; message = "Use readBytes() overload without estimatedSize parameter" replaceWith = .subannotation Lkotlin/ReplaceWith; expression = "readBytes()" imports = {} .end subannotation .end annotation .annotation runtime Lkotlin/DeprecatedSinceKotlin; errorSince = "1.5" warningSince = "1.3" .end annotation const-string v0, "" invoke-static {p0, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V .line 123 new-instance v0, Ljava/io/ByteArrayOutputStream; invoke-virtual {p0}, Ljava/io/InputStream;->available()I move-result v1 invoke-static {p1, v1}, Ljava/lang/Math;->max(II)I move-result p1 invoke-direct {v0, p1}, Ljava/io/ByteArrayOutputStream;->(I)V .line 124 move-object p1, v0 check-cast p1, Ljava/io/OutputStream; const/4 v1, 0x2 const/4 v2, 0x0 const/4 v3, 0x0 invoke-static {p0, p1, v3, v1, v2}, Lkotlin/io/ByteStreamsKt;->copyTo$default(Ljava/io/InputStream;Ljava/io/OutputStream;IILjava/lang/Object;)J .line 125 invoke-virtual {v0}, Ljava/io/ByteArrayOutputStream;->toByteArray()[B move-result-object p0 const-string p1, "toByteArray(...)" invoke-static {p0, p1}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullExpressionValue(Ljava/lang/Object;Ljava/lang/String;)V return-object p0 .end method .method public static synthetic readBytes$default(Ljava/io/InputStream;IILjava/lang/Object;)[B .locals 0 and-int/lit8 p2, p2, 0x1 if-eqz p2, :cond_0 const/16 p1, 0x2000 .line 122 :cond_0 invoke-static {p0, p1}, Lkotlin/io/ByteStreamsKt;->readBytes(Ljava/io/InputStream;I)[B move-result-object p0 return-object p0 .end method .method private static final reader(Ljava/io/InputStream;Ljava/nio/charset/Charset;)Ljava/io/InputStreamReader; .locals 1 const-string v0, "" 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 .line 76 new-instance v0, Ljava/io/InputStreamReader; 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/io/InputStream;Ljava/nio/charset/Charset;ILjava/lang/Object;)Ljava/io/InputStreamReader; .locals 0 and-int/lit8 p2, p2, 0x1 if-eqz p2, :cond_0 .line 76 sget-object p1, Lkotlin/text/Charsets;->UTF_8:Ljava/nio/charset/Charset; :cond_0 const-string p2, "" invoke-static {p0, p2}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V const-string p2, "charset" invoke-static {p1, p2}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V new-instance p2, Ljava/io/InputStreamReader; invoke-direct {p2, p0, p1}, Ljava/io/InputStreamReader;->(Ljava/io/InputStream;Ljava/nio/charset/Charset;)V return-object p2 .end method .method private static final writer(Ljava/io/OutputStream;Ljava/nio/charset/Charset;)Ljava/io/OutputStreamWriter; .locals 1 const-string v0, "" 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 .line 92 new-instance v0, Ljava/io/OutputStreamWriter; 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/io/OutputStream;Ljava/nio/charset/Charset;ILjava/lang/Object;)Ljava/io/OutputStreamWriter; .locals 0 and-int/lit8 p2, p2, 0x1 if-eqz p2, :cond_0 .line 92 sget-object p1, Lkotlin/text/Charsets;->UTF_8:Ljava/nio/charset/Charset; :cond_0 const-string p2, "" invoke-static {p0, p2}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V const-string p2, "charset" invoke-static {p1, p2}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V new-instance p2, Ljava/io/OutputStreamWriter; invoke-direct {p2, p0, p1}, Ljava/io/OutputStreamWriter;->(Ljava/io/OutputStream;Ljava/nio/charset/Charset;)V return-object p2 .end method