![JAR search and dependency download from the Maven repository](/logo.png)
com.google.common.io.Files$FileByteSource.class Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of plantuml Show documentation
Show all versions of plantuml Show documentation
PlantUML is a component that allows to quickly write :
* sequence diagram,
* use case diagram,
* class diagram,
* activity diagram,
* component diagram,
* state diagram
* object diagram
???? 4 ?
)com/google/common/io/Files$FileByteSource (Ljava/io/File;)V
com/google/common/io/ByteSource ()V
$com/google/common/base/Preconditions checkNotNull &(Ljava/lang/Object;)Ljava/lang/Object; java/io/File file Ljava/io/File; java/io/FileInputStream
isFile ()Z
! " length ()J
$ % & ' ( java/lang/Long valueOf (J)Ljava/lang/Long;
* + , - . com/google/common/base/Optional of 5(Ljava/lang/Object;)Lcom/google/common/base/Optional;
* 0 1 2 absent #()Lcom/google/common/base/Optional; 4 java/io/FileNotFoundException
6 7 8 toString ()Ljava/lang/String;
3 : ; (Ljava/lang/String;)V
= > ? @ A com/google/common/io/Closer create ()Lcom/google/common/io/Closer;
C D E
openStream ()Ljava/io/FileInputStream;
= G H I register ((Ljava/io/Closeable;)Ljava/io/Closeable;
K L M
getChannel !()Ljava/nio/channels/FileChannel;
O P Q R " java/nio/channels/FileChannel size
T U V W X com/google/common/io/ByteStreams toByteArray (Ljava/io/InputStream;J)[B
= Z [ close ] java/lang/Throwable
= _ ` a rethrow 3(Ljava/lang/Throwable;)Ljava/lang/RuntimeException; c java/lang/StringBuilder
b f Files.asByteSource(
b h i j append -(Ljava/lang/String;)Ljava/lang/StringBuilder;
b l i m -(Ljava/lang/Object;)Ljava/lang/StringBuilder; o )
b 6 Code LineNumberTable LocalVariableTable this +Lcom/google/common/io/Files$FileByteSource; MethodParameters
Exceptions y java/io/IOException sizeIfKnown
StackMapTable Signature 5()Lcom/google/common/base/Optional; read ()[B in Ljava/io/FileInputStream; e Ljava/lang/Throwable; closer Lcom/google/common/io/Closer; ()Ljava/io/InputStream; /(Ljava/io/File;Lcom/google/common/io/Files$1;)V x0 x1 Lcom/google/common/io/Files$1;
SourceFile
Files.java InnerClasses ? com/google/common/io/Files FileByteSource ? com/google/common/io/Files$1 0 q L *? *+? ? ? ? r ? ? ? s t u v D E q 6 ? Y*? ? ? r ? s t u w x z 2 q W *? ? ? *? ? ? #? )?? /? r ?
? ? s t u { | } R " q \ !*? ? ? ? 3Y*? ? 5? 9?*? ? ? r ?
? ? s ! t u { w x ~ q ? 2?