![JAR search and dependency download from the Maven repository](/logo.png)
kotlin.io.TextStreamsKt.class Maven / Gradle / Ivy
???? 2 kotlin/io/TextStreamsKt java/lang/Object buffered +(Ljava/io/Reader;I)Ljava/io/BufferedReader; Lkotlin/internal/InlineOnly; kotlin/jvm/internal/Intrinsics
checkNotNullParameter '(Ljava/lang/Object;Ljava/lang/String;)V
java/io/BufferedReader (Ljava/io/Reader;I)V
$this$buffered Ljava/io/Reader;
bufferSize I buffered$default >(Ljava/io/Reader;IILjava/lang/Object;)Ljava/io/BufferedReader; $this$buffered_u24default +(Ljava/io/Writer;I)Ljava/io/BufferedWriter; java/io/BufferedWriter (Ljava/io/Writer;I)V
! Ljava/io/Writer; >(Ljava/io/Writer;IILjava/lang/Object;)Ljava/io/BufferedWriter; forEachLine 3(Ljava/io/Reader;Lkotlin/jvm/functions/Function1;)V U(Ljava/io/Reader;Lkotlin/jvm/functions/Function1<-Ljava/lang/String;Lkotlin/Unit;>;)V #Lorg/jetbrains/annotations/NotNull; java/lang/Throwable ) action + java/io/Closeable - lineSequence 5(Ljava/io/BufferedReader;)Lkotlin/sequences/Sequence; / 0
1 kotlin/sequences/Sequence 3 iterator ()Ljava/util/Iterator; 5 6 4 7 java/util/Iterator 9 hasNext ()Z ; < : = next ()Ljava/lang/Object; ? @ : A kotlin/jvm/functions/Function1 C invoke &(Ljava/lang/Object;)Ljava/lang/Object; E F D G kotlin/Unit I INSTANCE
Lkotlin/Unit; K L J M kotlin/io/CloseableKt O closeFinally +(Ljava/io/Closeable;Ljava/lang/Throwable;)V Q R
P S
element$iv Ljava/lang/Object; $i$f$forEach $this$forEach$iv Lkotlin/sequences/Sequence; *$i$a$-useLines-TextStreamsKt$forEachLine$1 it %$i$a$-use-TextStreamsKt$useLines$1$iv it$iv Ljava/io/BufferedReader;
$i$f$useLines $this$useLines$iv $this$forEachLine Lkotlin/jvm/functions/Function1; java/io/Reader c readLines "(Ljava/io/Reader;)Ljava/util/List; 6(Ljava/io/Reader;)Ljava/util/List; java/util/ArrayList h ()V j
i k #kotlin/io/TextStreamsKt$readLines$1 m (Ljava/util/ArrayList;)V o
n p % &
r java/util/List t result Ljava/util/ArrayList; $this$readLines useLines D(Ljava/io/Reader;Lkotlin/jvm/functions/Function1;)Ljava/lang/Object; ?(Ljava/io/Reader;Lkotlin/jvm/functions/Function1<-Lkotlin/sequences/Sequence;+TT;>;)TT; block | kotlin/jvm/internal/InlineMarker ~ finallyStart (I)V ? ?
?
finallyEnd ? ?
? "$i$a$-use-TextStreamsKt$useLines$1 $this$useLines reader *(Ljava/lang/String;)Ljava/io/StringReader; java/io/StringReader ? (Ljava/lang/String;)V ?
? ? $this$reader Ljava/lang/String; I(Ljava/io/BufferedReader;)Lkotlin/sequences/Sequence; kotlin/io/LinesSequence ? (Ljava/io/BufferedReader;)V ?
? ? kotlin/sequences/SequencesKt ?
constrainOnce 8(Lkotlin/sequences/Sequence;)Lkotlin/sequences/Sequence; ? ?
? ? $this$lineSequence readText $(Ljava/io/Reader;)Ljava/lang/String; java/io/StringWriter ?
? k java/io/Writer ? copyTo$default 7(Ljava/io/Reader;Ljava/io/Writer;IILjava/lang/Object;)J ? ?
? toString ()Ljava/lang/String; ? ?
? ? buffer.toString() ? checkNotNullExpressionValue ?
? buffer Ljava/io/StringWriter; $this$readText copyTo $(Ljava/io/Reader;Ljava/io/Writer;I)J out ? read ([C)I ? ?
d ? write ([CII)V ? ?
? ? charsCopied J [C chars $this$copyTo ? ? ?
? <(Ljava/net/URL;Ljava/nio/charset/Charset;)Ljava/lang/String; charset ? readBytes (Ljava/net/URL;)[B ? ?
? java/lang/String ? ([BLjava/nio/charset/Charset;)V ?
? ? Ljava/net/URL; Ljava/nio/charset/Charset; readText$default O(Ljava/net/URL;Ljava/nio/charset/Charset;ILjava/lang/Object;)Ljava/lang/String; kotlin/text/Charsets ? UTF_8 ? ? ? ? $this$readText_u24default java/net/URL ?
openStream ()Ljava/io/InputStream; ? ?
? ? java/io/InputStream ? [ kotlin/io/ByteStreamsKt ? (Ljava/io/InputStream;)[B ? ?
? ? #$i$a$-use-TextStreamsKt$readBytes$1 Ljava/io/InputStream; $this$readBytes [B ? Lkotlin/jvm/JvmName; name
TextStreamsKt Lkotlin/Metadata; mv k xi 0 d1???X
??
??
??
??
??
??
??
??
??0*020H??0*020H0*02 020
0*02000
00*0
0*000*0
0*00*020H
0*0H8H"??*02
00H0
Hø??ø¢
(0
20¨ d2 Ljava/io/BufferedWriter; Lkotlin/Function1; Ljava/io/StringReader; T 8Requires newer compiler version to be inlined correctly.
kotlin-stdlib ReadWrite.kt Code
StackMapTable LineNumberTable LocalVariableTable RuntimeInvisibleAnnotations Signature $RuntimeInvisibleParameterAnnotations InnerClasses
SourceFile SourceDebugExtension RuntimeVisibleAnnotations 1
_ * ? *? ?
*? ? ? Y*? ? H
n (~? <* ? *? ?
*? ? ? Y*? ?
H
( (
_ * ? *? ?
*? ? ? Y*? "? H
# $
n (~? <* ? *? ?
*? ? ? Y*? "?
H
( # ( % &