com.google.common.io.Files$FileByteSource.class Maven / Gradle / Ivy
???? 2 ? d e
. f
/ g
h i j . k l
f
m n
o
p
q
/ r ??? s t
g u
v
w x
o
p
y z
. {
y | }
~
?
y ?
? ?
" ?
" ?
? ?
" ?
? ?
" ? ?
y ? ?
? ? ? ? file Ljava/io/File; (Ljava/io/File;)V Code LineNumberTable LocalVariableTable this FileByteSource InnerClasses +Lcom/google/common/io/Files$FileByteSource;
openStream ()Ljava/io/FileInputStream;
Exceptions ? size ()J
StackMapTable read ()[B in Ljava/io/InputStream; off I b out InternalByteArrayOutputStream :Lcom/google/common/io/Files$InternalByteArrayOutputStream; result [B e Ljava/lang/Throwable; J bytes closer Lcom/google/common/io/Closer; ? M ? } ? toString ()Ljava/lang/String; ()Ljava/io/InputStream; ? /(Ljava/io/File;Lcom/google/common/io/Files$1;)V x0 x1 Lcom/google/common/io/Files$1;
SourceFile
Files.java ? ? G 2 3 2 ? ? ? ? java/io/File 0 1 java/io/FileInputStream ? ? java/io/FileNotFoundException Y Z 2 ? ? @ B C java/lang/OutOfMemoryError java/lang/StringBuilder *file is too large to fit in a byte array: ? ? ? ? bytes ? ? ? ; < ? ? java/io/InputStream B ? ? ? ? ? ? B ? ? 8com/google/common/io/Files$InternalByteArrayOutputStream 2 ? ? ? ? ? ? ? ? ? ? ? ? ? java/lang/Throwable ? ? Files.asByteSource( ? ? ) )com/google/common/io/Files$FileByteSource com/google/common/io/ByteSource java/io/IOException com/google/common/io/Closer com/google/common/io/Files$1 java/lang/Integer MAX_VALUE ()V $com/google/common/base/Preconditions checkNotNull &(Ljava/lang/Object;)Ljava/lang/Object; isFile ()Z (Ljava/lang/String;)V length append -(Ljava/lang/String;)Ljava/lang/StringBuilder; (J)Ljava/lang/StringBuilder; create ()Lcom/google/common/io/Closer; register ((Ljava/io/Closeable;)Ljava/io/Closeable; ([BII)I java/util/Arrays copyOf ([BI)[B close ()I com/google/common/io/Files !(Lcom/google/common/io/Files$1;)V write (I)V com/google/common/io/ByteStreams copy .(Ljava/io/InputStream;Ljava/io/OutputStream;)J java/lang/System arraycopy *(Ljava/lang/Object;ILjava/lang/Object;II)V writeTo ([BI)V rethrow 3(Ljava/lang/Throwable;)Ljava/lang/RuntimeException; -(Ljava/lang/Object;)Ljava/lang/StringBuilder; 0 . / 0 1 2 3 4 L *? *+? ? ? ? 5 y z { 6 7 : 0 1 ; <