com.groupbyinc.flux.common.io.Streams.class Maven / Gradle / Ivy
???? 4 ? %com/groupbyinc/flux/common/io/Streams java/lang/Object Streams.java 'com/groupbyinc/flux/common/io/Streams$1 >com/groupbyinc/flux/common/io/Streams$FlushOnCloseOutputStream FlushOnCloseOutputStream %java/lang/invoke/MethodHandles$Lookup java/lang/invoke/MethodHandles
Lookup BUFFER_SIZE I ()V
this 'Lcom/groupbyinc/flux/common/io/Streams; copy .(Ljava/io/InputStream;Ljava/io/OutputStream;)J java/io/IOException 0(Ljava/io/InputStream;Ljava/io/OutputStream;[B)J
in Ljava/io/InputStream; out Ljava/io/OutputStream; No InputStream specified $ java/util/Objects & requireNonNull 8(Ljava/lang/Object;Ljava/lang/String;)Ljava/lang/Object; ( )
' * No OutputStream specified , java/io/InputStream . read ([B)I 0 1
/ 2 java/io/OutputStream 4 write ([BII)V 6 7
5 8 flush :
5 ; java/io/Closeable = ,com/groupbyinc/flux/core/internal/io/IOUtils ? close ([Ljava/io/Closeable;)V A B
@ C closeWhileHandlingException E B
@ F [B H java/lang/Throwable J byteCount J bytesRead buffer success Z ([BLjava/io/OutputStream;)V No input byte array specified S ([B)V 6 U
5 V A
5 X #(Ljava/io/Reader;Ljava/io/Writer;)I No Reader specified [ No Writer specified ] [C _ java/io/Reader a ([C)I 0 c
b d java/io/Writer f ([CII)V 6 h
g i
g ; Ljava/io/Reader; Ljava/io/Writer; %(Ljava/lang/String;Ljava/io/Writer;)V No input String specified o (Ljava/lang/String;)V 6 q
g r
g X java/lang/String u Ljava/lang/String; copyToString $(Ljava/io/Reader;)Ljava/lang/String; java/io/StringWriter z
{ Z
} toString ()Ljava/lang/String; ?
{ ? Ljava/io/StringWriter; readFully (Ljava/io/Reader;[C)I (Ljava/io/Reader;[CII)I ? ?
? reader dest ([CII)I 0 ?
b ? r offset len (Ljava/io/InputStream;[B)I (Ljava/io/InputStream;[BII)I ? ?
? ([BII)I 0 ?
/ ? readAllLines '(Ljava/io/InputStream;)Ljava/util/List; java/util/ArrayList ?
? &(Ljava/lang/Object;)Ljava/lang/Object; ( ?
' ? "java/lang/invoke/LambdaMetafactory ? metafactory ?(Ljava/lang/invoke/MethodHandles$Lookup;Ljava/lang/String;Ljava/lang/invoke/MethodType;Ljava/lang/invoke/MethodType;Ljava/lang/invoke/MethodHandle;Ljava/lang/invoke/MethodType;)Ljava/lang/invoke/CallSite; ? ?
? ? ? (Ljava/lang/Object;)V ? java/util/List ? add (Ljava/lang/Object;)Z ? ? ? ? ? q accept /(Ljava/util/List;)Ljava/util/function/Consumer; ? ? ? 5(Ljava/io/InputStream;Ljava/util/function/Consumer;)V ? ?
? input lines $Ljava/util/List; Ljava/util/List; java/io/BufferedReader ? java/io/InputStreamReader ? !java/nio/charset/StandardCharsets ? UTF_8 Ljava/nio/charset/Charset; ? ? ? ? 2(Ljava/io/InputStream;Ljava/nio/charset/Charset;)V ?
? ? (Ljava/io/Reader;)V ?
? ? readLine ? ?
? ? java/util/function/Consumer ? ? ? ? ?
? X
addSuppressed (Ljava/lang/Throwable;)V ? ?
K ? line Ljava/io/BufferedReader; consumer 1Ljava/util/function/Consumer; Ljava/util/function/Consumer; flushOnCloseStream f(Lcom/groupbyinc/flux/common/io/stream/BytesStream;)Lcom/groupbyinc/flux/common/io/stream/BytesStream; ^(Lcom/groupbyinc/flux/common/io/stream/BytesStream;Lcom/groupbyinc/flux/common/io/Streams$1;)V ?
? os 2Lcom/groupbyinc/flux/common/io/stream/BytesStream;
ConstantValue Code LocalVariableTable LineNumberTable
Exceptions
StackMapTable LocalVariableTypeTable Signature ;(Ljava/io/InputStream;)Ljava/util/List; I(Ljava/io/InputStream;Ljava/util/function/Consumer;)V BootstrapMethods
SourceFile InnerClasses! ? ? / *? ? ? ? 1 ? ? *+ ?? ? ? ! " # ? <