![JAR search and dependency download from the Maven repository](/logo.png)
com.google.common.io.FileBackedOutputStream.class Maven / Gradle / Ivy
???? 4 ?
+com/google/common/io/FileBackedOutputStream openInputStream ()Ljava/io/InputStream;
file Ljava/io/File;
(IZ)V
java/io/OutputStream ()V .fileThreshold must be non-negative, but was %s
$com/google/common/base/Preconditions
checkArgument (ZLjava/lang/String;I)V
fileThreshold I ! " # resetOnFinalize Z % 8com/google/common/io/FileBackedOutputStream$MemoryOutput
$ '
( 2(Lcom/google/common/io/FileBackedOutputStream$1;)V * + , memory :Lcom/google/common/io/FileBackedOutputStream$MemoryOutput; . / 0 out Ljava/io/OutputStream; 2 -com/google/common/io/FileBackedOutputStream$1
1 4
5 0(Lcom/google/common/io/FileBackedOutputStream;)V 7 8 9 source !Lcom/google/common/io/ByteSource; ; -com/google/common/io/FileBackedOutputStream$2
: 4 > java/io/FileInputStream
= @
A (Ljava/io/File;)V
C D E F G java/util/Objects requireNonNull &(Ljava/lang/Object;)Ljava/lang/Object; I java/io/ByteArrayInputStream
$ K L M getBuffer ()[B
$ O P Q getCount ()I
H S
T ([BII)V
V W close
$ Y Z reset
\ ] ^ _ ` java/io/File delete ()Z b java/io/IOException d java/lang/StringBuilder
c g Could not delete:
c i j k append -(Ljava/lang/String;)Ljava/lang/StringBuilder;
c m j n -(Ljava/lang/Object;)Ljava/lang/StringBuilder;
c p q r toString ()Ljava/lang/String;
a t
u (Ljava/lang/String;)V
w x y update (I)V
{ | y write
~ | T
~
V
? ? flush ? ? ? ? ? $com/google/common/io/TempFileCreator INSTANCE &Lcom/google/common/io/TempFileCreator; ? FileBackedOutputStream
? ? ? ? createTempFile "(Ljava/lang/String;)Ljava/io/File;
\ ? ? deleteOnExit ? java/io/FileOutputStream
? @
? ~
? ? RuntimeInvisibleAnnotations 8Lcom/google/errorprone/annotations/concurrent/GuardedBy; value this RuntimeVisibleAnnotations Ljavax/annotation/CheckForNull; getFile ()Ljava/io/File; Code LineNumberTable LocalVariableTable -Lcom/google/common/io/FileBackedOutputStream; 1Lcom/google/common/annotations/VisibleForTesting; MethodParameters
StackMapTable asByteSource #()Lcom/google/common/io/ByteSource;
Exceptions deleteMe ? java/lang/Throwable b ([B)V [B off len transfer Ljava/io/FileOutputStream; e Ljava/io/IOException; temp
access$100 D(Lcom/google/common/io/FileBackedOutputStream;)Ljava/io/InputStream; x0
SourceFile FileBackedOutputStream.java 6Lcom/google/common/io/ElementTypesAreNonnullByDefault; $Lcom/google/common/annotations/Beta; 0Lcom/google/common/annotations/J2ktIncompatible; /Lcom/google/common/annotations/GwtIncompatible; InnerClasses MemoryOutput 1 " # 8 9 / 0 ? ? ?s ? + , ? ? ? ? ?s ?
? ? ? ? ?s ?
? ? ? / *? ? ? d ? ? ? ? ? ? ?
y ? ? *? ? ?
o p ? ? ? ?
? ? Q*? ? ? ? *? *? *? $Y? &? )**? )? -? *? 1Y*? 3? 6? *? :Y*?