com.google.common.io.ByteSink.class Maven / Gradle / Ivy
???? 4 k
java/lang/Object ()V (com/google/common/io/ByteSink$AsCharSink
](Lcom/google/common/io/ByteSink;Ljava/nio/charset/Charset;Lcom/google/common/io/ByteSink$1;)V
com/google/common/io/ByteSink
openStream ()Ljava/io/OutputStream; java/io/BufferedOutputStream
(Ljava/io/OutputStream;)V
$com/google/common/base/Preconditions checkNotNull &(Ljava/lang/Object;)Ljava/lang/Object;
! " com/google/common/io/Closer create ()Lcom/google/common/io/Closer;
$ % & register ((Ljava/io/Closeable;)Ljava/io/Closeable; ( java/io/OutputStream
' * + , write ([B)V
' . / flush
1 2 close 4 java/lang/Throwable
6 7 8 rethrow 3(Ljava/lang/Throwable;)Ljava/lang/RuntimeException;
: ; < = > com/google/common/io/ByteStreams copy .(Ljava/io/InputStream;Ljava/io/OutputStream;)J Code LineNumberTable LocalVariableTable this Lcom/google/common/io/ByteSink;
asCharSink ;(Ljava/nio/charset/Charset;)Lcom/google/common/io/CharSink; charset Ljava/nio/charset/Charset; MethodParameters
Exceptions K java/io/IOException openBufferedStream out Ljava/io/OutputStream;
StackMapTable e Ljava/lang/Throwable; bytes [B closer Lcom/google/common/io/Closer; S writeFrom (Ljava/io/InputStream;)J written J input Ljava/io/InputStream; ^ java/io/InputStream RuntimeInvisibleAnnotations 8Lcom/google/errorprone/annotations/CanIgnoreReturnValue;
SourceFile
ByteSink.java RuntimeVisibleAnnotations 6Lcom/google/common/io/ElementTypesAreNonnullByDefault; 0Lcom/google/common/annotations/J2ktIncompatible; /Lcom/google/common/annotations/GwtIncompatible; InnerClasses
AsCharSink j com/google/common/io/ByteSink$1!
? / *? ? @ 7 A B C D E ? ? ? Y*+? ? @ > A B C F G H F I J L ? r *? L+? ?
+? ? ? Y+? ? @ X Y Z [ Y A B C M N O ? 'G ' I J + , ? ? 6+? W? M,*? ? #? 'N-+? )-? -,? 0? N,-? 5?:,? 0?? % 3 , % . , @ 2 d f h i j n " o % k &