final class com.google.common.io.Files$FileByteSource extends com.google.common.io.ByteSource
minor version: 0
major version: 59
flags: flags: (0x0030) ACC_FINAL, ACC_SUPER
this_class: com.google.common.io.Files$FileByteSource
super_class: com.google.common.io.ByteSource
{
private final java.io.File file;
descriptor: Ljava/io/File;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private void <init>(java.io.File);
descriptor: (Ljava/io/File;)V
flags: (0x0002) ACC_PRIVATE
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 0
invokespecial com.google.common.io.ByteSource.<init>:()V
1: aload 0
aload 1
invokestatic com.google.common.base.Preconditions.checkNotNull:(Ljava/lang/Object;)Ljava/lang/Object;
checkcast java.io.File
putfield com.google.common.io.Files$FileByteSource.file:Ljava/io/File;
2: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lcom/google/common/io/Files$FileByteSource;
0 3 1 file Ljava/io/File;
MethodParameters:
Name Flags
file
public java.io.FileInputStream openStream();
descriptor: ()Ljava/io/FileInputStream;
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=1, args_size=1
start local 0 0: new java.io.FileInputStream
dup
aload 0
getfield com.google.common.io.Files$FileByteSource.file:Ljava/io/File;
invokespecial java.io.FileInputStream.<init>:(Ljava/io/File;)V
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lcom/google/common/io/Files$FileByteSource;
Exceptions:
throws java.io.IOException
public com.google.common.base.Optional<java.lang.Long> sizeIfKnown();
descriptor: ()Lcom/google/common/base/Optional;
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=1, args_size=1
start local 0 0: aload 0
getfield com.google.common.io.Files$FileByteSource.file:Ljava/io/File;
invokevirtual java.io.File.isFile:()Z
ifeq 2
1: aload 0
getfield com.google.common.io.Files$FileByteSource.file:Ljava/io/File;
invokevirtual java.io.File.length:()J
invokestatic java.lang.Long.valueOf:(J)Ljava/lang/Long;
invokestatic com.google.common.base.Optional.of:(Ljava/lang/Object;)Lcom/google/common/base/Optional;
areturn
2: StackMap locals:
StackMap stack:
invokestatic com.google.common.base.Optional.absent:()Lcom/google/common/base/Optional;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lcom/google/common/io/Files$FileByteSource;
Signature: ()Lcom/google/common/base/Optional<Ljava/lang/Long;>;
public long size();
descriptor: ()J
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=1, args_size=1
start local 0 0: aload 0
getfield com.google.common.io.Files$FileByteSource.file:Ljava/io/File;
invokevirtual java.io.File.isFile:()Z
ifne 2
1: new java.io.FileNotFoundException
dup
aload 0
getfield com.google.common.io.Files$FileByteSource.file:Ljava/io/File;
invokevirtual java.io.File.toString:()Ljava/lang/String;
invokespecial java.io.FileNotFoundException.<init>:(Ljava/lang/String;)V
athrow
2: StackMap locals:
StackMap stack:
aload 0
getfield com.google.common.io.Files$FileByteSource.file:Ljava/io/File;
invokevirtual java.io.File.length:()J
lreturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lcom/google/common/io/Files$FileByteSource;
Exceptions:
throws java.io.IOException
public byte[] read();
descriptor: ()[B
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=5, args_size=1
start local 0 0: invokestatic com.google.common.io.Closer.create:()Lcom/google/common/io/Closer;
astore 1
start local 1 1: aload 1
aload 0
invokevirtual com.google.common.io.Files$FileByteSource.openStream:()Ljava/io/FileInputStream;
invokevirtual com.google.common.io.Closer.register:(Ljava/io/Closeable;)Ljava/io/Closeable;
checkcast java.io.FileInputStream
astore 2
start local 2 2: aload 2
aload 2
invokevirtual java.io.FileInputStream.getChannel:()Ljava/nio/channels/FileChannel;
invokevirtual java.nio.channels.FileChannel.size:()J
invokestatic com.google.common.io.ByteStreams.toByteArray:(Ljava/io/InputStream;J)[B
astore 4
3: aload 1
invokevirtual com.google.common.io.Closer.close:()V
4: aload 4
areturn
end local 2 5: StackMap locals: com.google.common.io.Files$FileByteSource com.google.common.io.Closer
StackMap stack: java.lang.Throwable
astore 2
start local 2 6: aload 1
aload 2
invokevirtual com.google.common.io.Closer.rethrow:(Ljava/lang/Throwable;)Ljava/lang/RuntimeException;
athrow
end local 2 7: StackMap locals:
StackMap stack: java.lang.Throwable
astore 3
8: aload 1
invokevirtual com.google.common.io.Closer.close:()V
9: aload 3
athrow
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 10 0 this Lcom/google/common/io/Files$FileByteSource;
1 10 1 closer Lcom/google/common/io/Closer;
2 5 2 in Ljava/io/FileInputStream;
6 7 2 e Ljava/lang/Throwable;
Exception table:
from to target type
1 3 5 Class java.lang.Throwable
1 3 7 any
5 7 7 any
Exceptions:
throws java.io.IOException
public java.lang.String toString();
descriptor: ()Ljava/lang/String;
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=1, args_size=1
start local 0 0: new java.lang.StringBuilder
dup
ldc "Files.asByteSource("
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 0
getfield com.google.common.io.Files$FileByteSource.file:Ljava/io/File;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/Object;)Ljava/lang/StringBuilder;
ldc ")"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lcom/google/common/io/Files$FileByteSource;
public java.io.InputStream openStream();
descriptor: ()Ljava/io/InputStream;
flags: (0x1041) ACC_PUBLIC, ACC_BRIDGE, ACC_SYNTHETIC
Code:
stack=1, locals=1, args_size=1
0: aload 0
invokevirtual com.google.common.io.Files$FileByteSource.openStream:()Ljava/io/FileInputStream;
areturn
LocalVariableTable:
Start End Slot Name Signature
Exceptions:
throws java.io.IOException
}
SourceFile: "Files.java"
NestHost: com.google.common.io.Files
InnerClasses:
private final FileByteSource = com.google.common.io.Files$FileByteSource of com.google.common.io.Files