public class java.io.FileInputStream extends java.io.InputStream
minor version: 0
major version: 59
flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
this_class: java.io.FileInputStream
super_class: java.io.InputStream
{
private final java.io.FileDescriptor fd;
descriptor: Ljava/io/FileDescriptor;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private final java.lang.String path;
descriptor: Ljava/lang/String;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private java.nio.channels.FileChannel channel;
descriptor: Ljava/nio/channels/FileChannel;
flags: (0x0002) ACC_PRIVATE
private final java.lang.Object closeLock;
descriptor: Ljava/lang/Object;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private volatile boolean closed;
descriptor: Z
flags: (0x0042) ACC_PRIVATE, ACC_VOLATILE
static void <clinit>();
descriptor: ()V
flags: (0x0008) ACC_STATIC
Code:
stack=0, locals=0, args_size=0
0: invokestatic java.io.FileInputStream.initIDs:()V
1: return
LocalVariableTable:
Start End Slot Name Signature
public void <init>(java.lang.String);
descriptor: (Ljava/lang/String;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=2, args_size=2
start local 0 start local 1 0: aload 0
aload 1
ifnull 1
new java.io.File
dup
aload 1
invokespecial java.io.File.<init>:(Ljava/lang/String;)V
goto 2
StackMap locals:
StackMap stack: uninitialized-this
1: aconst_null
StackMap locals: uninitialized-this java.lang.String
StackMap stack: uninitialized-this java.io.File
2: invokespecial java.io.FileInputStream.<init>:(Ljava/io/File;)V
3: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Ljava/io/FileInputStream;
0 4 1 name Ljava/lang/String;
Exceptions:
throws java.io.FileNotFoundException
MethodParameters:
Name Flags
name
public void <init>(java.io.File);
descriptor: (Ljava/io/File;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=4, args_size=2
start local 0 start local 1 0: aload 0
invokespecial java.io.InputStream.<init>:()V
1: aload 0
aconst_null
putfield java.io.FileInputStream.channel:Ljava/nio/channels/FileChannel;
2: aload 0
new java.lang.Object
dup
invokespecial java.lang.Object.<init>:()V
putfield java.io.FileInputStream.closeLock:Ljava/lang/Object;
3: aload 0
iconst_0
putfield java.io.FileInputStream.closed:Z
4: aload 1
ifnull 5
aload 1
invokevirtual java.io.File.getPath:()Ljava/lang/String;
goto 6
StackMap locals: java.io.FileInputStream java.io.File
StackMap stack:
5: aconst_null
StackMap locals:
StackMap stack: java.lang.String
6: astore 2
start local 2 7: invokestatic java.lang.System.getSecurityManager:()Ljava/lang/SecurityManager;
astore 3
start local 3 8: aload 3
ifnull 10
9: aload 3
aload 2
invokevirtual java.lang.SecurityManager.checkRead:(Ljava/lang/String;)V
10: StackMap locals: java.lang.String java.lang.SecurityManager
StackMap stack:
aload 2
ifnonnull 12
11: new java.lang.NullPointerException
dup
invokespecial java.lang.NullPointerException.<init>:()V
athrow
12: StackMap locals:
StackMap stack:
aload 1
invokevirtual java.io.File.isInvalid:()Z
ifeq 14
13: new java.io.FileNotFoundException
dup
ldc "Invalid file path"
invokespecial java.io.FileNotFoundException.<init>:(Ljava/lang/String;)V
athrow
14: StackMap locals:
StackMap stack:
aload 0
new java.io.FileDescriptor
dup
invokespecial java.io.FileDescriptor.<init>:()V
putfield java.io.FileInputStream.fd:Ljava/io/FileDescriptor;
15: aload 0
getfield java.io.FileInputStream.fd:Ljava/io/FileDescriptor;
aload 0
invokevirtual java.io.FileDescriptor.attach:(Ljava/io/Closeable;)V
16: aload 0
aload 2
putfield java.io.FileInputStream.path:Ljava/lang/String;
17: aload 0
aload 2
invokevirtual java.io.FileInputStream.open:(Ljava/lang/String;)V
18: return
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 19 0 this Ljava/io/FileInputStream;
0 19 1 file Ljava/io/File;
7 19 2 name Ljava/lang/String;
8 19 3 security Ljava/lang/SecurityManager;
Exceptions:
throws java.io.FileNotFoundException
MethodParameters:
Name Flags
file
public void <init>(java.io.FileDescriptor);
descriptor: (Ljava/io/FileDescriptor;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=3, args_size=2
start local 0 start local 1 0: aload 0
invokespecial java.io.InputStream.<init>:()V
1: aload 0
aconst_null
putfield java.io.FileInputStream.channel:Ljava/nio/channels/FileChannel;
2: aload 0
new java.lang.Object
dup
invokespecial java.lang.Object.<init>:()V
putfield java.io.FileInputStream.closeLock:Ljava/lang/Object;
3: aload 0
iconst_0
putfield java.io.FileInputStream.closed:Z
4: invokestatic java.lang.System.getSecurityManager:()Ljava/lang/SecurityManager;
astore 2
start local 2 5: aload 1
ifnonnull 7
6: new java.lang.NullPointerException
dup
invokespecial java.lang.NullPointerException.<init>:()V
athrow
7: StackMap locals: java.io.FileInputStream java.io.FileDescriptor java.lang.SecurityManager
StackMap stack:
aload 2
ifnull 9
8: aload 2
aload 1
invokevirtual java.lang.SecurityManager.checkRead:(Ljava/io/FileDescriptor;)V
9: StackMap locals:
StackMap stack:
aload 0
aload 1
putfield java.io.FileInputStream.fd:Ljava/io/FileDescriptor;
10: aload 0
aconst_null
putfield java.io.FileInputStream.path:Ljava/lang/String;
11: aload 0
getfield java.io.FileInputStream.fd:Ljava/io/FileDescriptor;
aload 0
invokevirtual java.io.FileDescriptor.attach:(Ljava/io/Closeable;)V
12: return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 13 0 this Ljava/io/FileInputStream;
0 13 1 fdObj Ljava/io/FileDescriptor;
5 13 2 security Ljava/lang/SecurityManager;
MethodParameters:
Name Flags
fdObj
private native void open0(java.lang.String);
descriptor: (Ljava/lang/String;)V
flags: (0x0102) ACC_PRIVATE, ACC_NATIVE
Exceptions:
throws java.io.FileNotFoundException
MethodParameters:
Name Flags
name
private void open(java.lang.String);
descriptor: (Ljava/lang/String;)V
flags: (0x0002) ACC_PRIVATE
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 0
aload 1
invokevirtual java.io.FileInputStream.open0:(Ljava/lang/String;)V
1: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Ljava/io/FileInputStream;
0 2 1 name Ljava/lang/String;
Exceptions:
throws java.io.FileNotFoundException
MethodParameters:
Name Flags
name
public int read();
descriptor: ()I
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
invokevirtual java.io.FileInputStream.read0:()I
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Ljava/io/FileInputStream;
Exceptions:
throws java.io.IOException
private native int read0();
descriptor: ()I
flags: (0x0102) ACC_PRIVATE, ACC_NATIVE
Exceptions:
throws java.io.IOException
private native int readBytes(byte[], int, int);
descriptor: ([BII)I
flags: (0x0102) ACC_PRIVATE, ACC_NATIVE
Exceptions:
throws java.io.IOException
MethodParameters:
Name Flags
b
off
len
public int read(byte[]);
descriptor: ([B)I
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=2, args_size=2
start local 0 start local 1 0: aload 0
aload 1
iconst_0
aload 1
arraylength
invokevirtual java.io.FileInputStream.readBytes:([BII)I
ireturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Ljava/io/FileInputStream;
0 1 1 b [B
Exceptions:
throws java.io.IOException
MethodParameters:
Name Flags
b
public int read(byte[], int, int);
descriptor: ([BII)I
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=4, args_size=4
start local 0 start local 1 start local 2 start local 3 0: aload 0
aload 1
iload 2
iload 3
invokevirtual java.io.FileInputStream.readBytes:([BII)I
ireturn
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Ljava/io/FileInputStream;
0 1 1 b [B
0 1 2 off I
0 1 3 len I
Exceptions:
throws java.io.IOException
MethodParameters:
Name Flags
b
off
len
public long skip(long);
descriptor: (J)J
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=3, args_size=2
start local 0 start local 1 0: aload 0
lload 1
invokevirtual java.io.FileInputStream.skip0:(J)J
lreturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Ljava/io/FileInputStream;
0 1 1 n J
Exceptions:
throws java.io.IOException
MethodParameters:
Name Flags
n
private native long skip0(long);
descriptor: (J)J
flags: (0x0102) ACC_PRIVATE, ACC_NATIVE
Exceptions:
throws java.io.IOException
MethodParameters:
Name Flags
n
public int available();
descriptor: ()I
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
invokevirtual java.io.FileInputStream.available0:()I
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Ljava/io/FileInputStream;
Exceptions:
throws java.io.IOException
private native int available0();
descriptor: ()I
flags: (0x0102) ACC_PRIVATE, ACC_NATIVE
Exceptions:
throws java.io.IOException
public void close();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=2, args_size=1
start local 0 0: aload 0
getfield java.io.FileInputStream.closeLock:Ljava/lang/Object;
dup
astore 1
monitorenter
1: aload 0
getfield java.io.FileInputStream.closed:Z
ifeq 4
2: aload 1
monitorexit
3: return
4: StackMap locals: java.lang.Object
StackMap stack:
aload 0
iconst_1
putfield java.io.FileInputStream.closed:Z
5: aload 1
monitorexit
6: goto 9
StackMap locals:
StackMap stack: java.lang.Throwable
7: aload 1
monitorexit
8: athrow
9: StackMap locals:
StackMap stack:
aload 0
getfield java.io.FileInputStream.channel:Ljava/nio/channels/FileChannel;
ifnull 11
10: aload 0
getfield java.io.FileInputStream.channel:Ljava/nio/channels/FileChannel;
invokevirtual java.nio.channels.FileChannel.close:()V
11: StackMap locals:
StackMap stack:
aload 0
getfield java.io.FileInputStream.fd:Ljava/io/FileDescriptor;
new java.io.FileInputStream$1
dup
aload 0
invokespecial java.io.FileInputStream$1.<init>:(Ljava/io/FileInputStream;)V
invokevirtual java.io.FileDescriptor.closeAll:(Ljava/io/Closeable;)V
12: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 13 0 this Ljava/io/FileInputStream;
Exception table:
from to target type
1 3 7 any
4 6 7 any
7 8 7 any
Exceptions:
throws java.io.IOException
public final java.io.FileDescriptor getFD();
descriptor: ()Ljava/io/FileDescriptor;
flags: (0x0011) ACC_PUBLIC, ACC_FINAL
Code:
stack=2, locals=1, args_size=1
start local 0 0: aload 0
getfield java.io.FileInputStream.fd:Ljava/io/FileDescriptor;
ifnull 2
1: aload 0
getfield java.io.FileInputStream.fd:Ljava/io/FileDescriptor;
areturn
2: StackMap locals:
StackMap stack:
new java.io.IOException
dup
invokespecial java.io.IOException.<init>:()V
athrow
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Ljava/io/FileInputStream;
Exceptions:
throws java.io.IOException
public java.nio.channels.FileChannel getChannel();
descriptor: ()Ljava/nio/channels/FileChannel;
flags: (0x0001) ACC_PUBLIC
Code:
stack=6, locals=2, args_size=1
start local 0 0: aload 0
dup
astore 1
monitorenter
1: aload 0
getfield java.io.FileInputStream.channel:Ljava/nio/channels/FileChannel;
ifnonnull 3
2: aload 0
aload 0
getfield java.io.FileInputStream.fd:Ljava/io/FileDescriptor;
aload 0
getfield java.io.FileInputStream.path:Ljava/lang/String;
iconst_1
iconst_0
aload 0
invokestatic sun.nio.ch.FileChannelImpl.open:(Ljava/io/FileDescriptor;Ljava/lang/String;ZZLjava/lang/Object;)Ljava/nio/channels/FileChannel;
putfield java.io.FileInputStream.channel:Ljava/nio/channels/FileChannel;
3: StackMap locals: java.io.FileInputStream
StackMap stack:
aload 0
getfield java.io.FileInputStream.channel:Ljava/nio/channels/FileChannel;
aload 1
monitorexit
4: areturn
5: StackMap locals:
StackMap stack: java.lang.Throwable
aload 1
monitorexit
6: athrow
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 7 0 this Ljava/io/FileInputStream;
Exception table:
from to target type
1 4 5 any
5 6 5 any
private static native void initIDs();
descriptor: ()V
flags: (0x010a) ACC_PRIVATE, ACC_STATIC, ACC_NATIVE
private native void close0();
descriptor: ()V
flags: (0x0102) ACC_PRIVATE, ACC_NATIVE
Exceptions:
throws java.io.IOException
protected void finalize();
descriptor: ()V
flags: (0x0004) ACC_PROTECTED
Code:
stack=2, locals=1, args_size=1
start local 0 0: aload 0
getfield java.io.FileInputStream.fd:Ljava/io/FileDescriptor;
ifnull 2
aload 0
getfield java.io.FileInputStream.fd:Ljava/io/FileDescriptor;
getstatic java.io.FileDescriptor.in:Ljava/io/FileDescriptor;
if_acmpeq 2
1: aload 0
invokevirtual java.io.FileInputStream.close:()V
2: StackMap locals:
StackMap stack:
return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Ljava/io/FileInputStream;
Exceptions:
throws java.io.IOException
}
SourceFile: "FileInputStream.java"
NestMembers:
java.io.FileInputStream$1
InnerClasses:
java.io.FileInputStream$1