public abstract class java.io.InputStream implements java.io.Closeable
minor version: 0
major version: 59
flags: flags: (0x0421) ACC_PUBLIC, ACC_SUPER, ACC_ABSTRACT
this_class: java.io.InputStream
super_class: java.lang.Object
{
private static final int MAX_SKIP_BUFFER_SIZE;
descriptor: I
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
ConstantValue: 2048
private static final int DEFAULT_BUFFER_SIZE;
descriptor: I
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
ConstantValue: 8192
private static final int MAX_BUFFER_SIZE;
descriptor: I
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
ConstantValue: 2147483639
public void <init>();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
invokespecial java.lang.Object.<init>:()V
return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Ljava/io/InputStream;
public static java.io.InputStream nullInputStream();
descriptor: ()Ljava/io/InputStream;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=2, locals=0, args_size=0
0: new java.io.InputStream$1
dup
invokespecial java.io.InputStream$1.<init>:()V
areturn
LocalVariableTable:
Start End Slot Name Signature
public abstract int read();
descriptor: ()I
flags: (0x0401) ACC_PUBLIC, ACC_ABSTRACT
Exceptions:
throws java.io.IOException
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.InputStream.read:([BII)I
ireturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Ljava/io/InputStream;
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=3, locals=6, args_size=4
start local 0 start local 1 start local 2 start local 3 0: iload 2
iload 3
aload 1
arraylength
invokestatic java.util.Objects.checkFromIndexSize:(III)I
pop
1: iload 3
ifne 3
2: iconst_0
ireturn
3: StackMap locals:
StackMap stack:
aload 0
invokevirtual java.io.InputStream.read:()I
istore 4
start local 4 4: iload 4
iconst_m1
if_icmpne 6
5: iconst_m1
ireturn
6: StackMap locals: int
StackMap stack:
aload 1
iload 2
iload 4
i2b
bastore
7: iconst_1
istore 5
start local 5 8: goto 14
9: StackMap locals: int
StackMap stack:
aload 0
invokevirtual java.io.InputStream.read:()I
istore 4
10: iload 4
iconst_m1
if_icmpne 12
11: goto 17
12: StackMap locals:
StackMap stack:
aload 1
iload 2
iload 5
iadd
iload 4
i2b
bastore
13: iinc 5 1
StackMap locals:
StackMap stack:
14: iload 5
iload 3
if_icmplt 9
15: goto 17
StackMap locals:
StackMap stack: java.io.IOException
16: pop
17: StackMap locals:
StackMap stack:
iload 5
ireturn
end local 5 end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 18 0 this Ljava/io/InputStream;
0 18 1 b [B
0 18 2 off I
0 18 3 len I
4 18 4 c I
8 18 5 i I
Exception table:
from to target type
8 15 16 Class java.io.IOException
Exceptions:
throws java.io.IOException
MethodParameters:
Name Flags
b
off
len
public byte[] readAllBytes();
descriptor: ()[B
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=1, args_size=1
start local 0 0: aload 0
ldc 2147483647
invokevirtual java.io.InputStream.readNBytes:(I)[B
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Ljava/io/InputStream;
Exceptions:
throws java.io.IOException
public byte[] readNBytes(int);
descriptor: (I)[B
flags: (0x0001) ACC_PUBLIC
Code:
stack=5, locals=11, args_size=2
start local 0 start local 1 0: iload 1
ifge 2
1: new java.lang.IllegalArgumentException
dup
ldc "len < 0"
invokespecial java.lang.IllegalArgumentException.<init>:(Ljava/lang/String;)V
athrow
2: StackMap locals:
StackMap stack:
aconst_null
astore 2
start local 2 3: aconst_null
astore 3
start local 3 4: iconst_0
istore 4
start local 4 5: iload 1
istore 5
start local 5 6: StackMap locals: java.io.InputStream int java.util.List byte[] int int
StackMap stack:
iload 5
sipush 8192
invokestatic java.lang.Math.min:(II)I
newarray 8
astore 7
start local 7 7: iconst_0
istore 8
start local 8 8: goto 11
start local 6 9: StackMap locals: int byte[] int
StackMap stack:
iload 8
iload 6
iadd
istore 8
10: iload 5
iload 6
isub
istore 5
end local 6 11: StackMap locals: java.io.InputStream int java.util.List byte[] int int top byte[] int
StackMap stack:
aload 0
aload 7
iload 8
12: aload 7
arraylength
iload 8
isub
iload 5
invokestatic java.lang.Math.min:(II)I
13: invokevirtual java.io.InputStream.read:([BII)I
dup
istore 6
start local 6 14: ifgt 9
15: iload 8
ifle 26
16: ldc 2147483639
iload 4
isub
iload 8
if_icmpge 18
17: new java.lang.OutOfMemoryError
dup
ldc "Required array size too large"
invokespecial java.lang.OutOfMemoryError.<init>:(Ljava/lang/String;)V
athrow
18: StackMap locals: java.io.InputStream int java.util.List byte[] int int int byte[] int
StackMap stack:
iload 4
iload 8
iadd
istore 4
19: aload 3
ifnonnull 22
20: aload 7
astore 3
21: goto 26
22: StackMap locals:
StackMap stack:
aload 2
ifnonnull 25
23: new java.util.ArrayList
dup
invokespecial java.util.ArrayList.<init>:()V
astore 2
24: aload 2
aload 3
invokeinterface java.util.List.add:(Ljava/lang/Object;)Z
pop
25: StackMap locals:
StackMap stack:
aload 2
aload 7
invokeinterface java.util.List.add:(Ljava/lang/Object;)Z
pop
end local 8 end local 7 26: StackMap locals:
StackMap stack:
iload 6
iflt 28
iload 5
27: ifgt 6
28: StackMap locals:
StackMap stack:
aload 2
ifnonnull 35
29: aload 3
ifnonnull 31
30: iconst_0
newarray 8
areturn
31: StackMap locals:
StackMap stack:
aload 3
arraylength
iload 4
if_icmpne 33
32: aload 3
goto 34
StackMap locals:
StackMap stack:
33: aload 3
iload 4
invokestatic java.util.Arrays.copyOf:([BI)[B
34: StackMap locals:
StackMap stack: byte[]
areturn
35: StackMap locals:
StackMap stack:
iload 4
newarray 8
astore 3
36: iconst_0
istore 7
start local 7 37: iload 4
istore 5
38: aload 2
invokeinterface java.util.List.iterator:()Ljava/util/Iterator;
astore 9
goto 44
StackMap locals: java.io.InputStream int java.util.List byte[] int int int int top java.util.Iterator
StackMap stack:
39: aload 9
invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
checkcast byte[]
astore 8
start local 8 40: aload 8
arraylength
iload 5
invokestatic java.lang.Math.min:(II)I
istore 10
start local 10 41: aload 8
iconst_0
aload 3
iload 7
iload 10
invokestatic java.lang.System.arraycopy:(Ljava/lang/Object;ILjava/lang/Object;II)V
42: iload 7
iload 10
iadd
istore 7
43: iload 5
iload 10
isub
istore 5
end local 10 end local 8 44: StackMap locals:
StackMap stack:
aload 9
invokeinterface java.util.Iterator.hasNext:()Z
ifne 39
45: aload 3
areturn
end local 7 end local 6 end local 5 end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 46 0 this Ljava/io/InputStream;
0 46 1 len I
3 46 2 bufs Ljava/util/List<[B>;
4 46 3 result [B
5 46 4 total I
6 46 5 remaining I
9 11 6 n I
14 46 6 n I
7 26 7 buf [B
8 26 8 nread I
37 46 7 offset I
40 44 8 b [B
41 44 10 count I
Exceptions:
throws java.io.IOException
MethodParameters:
Name Flags
len
public int readNBytes(byte[], int, int);
descriptor: ([BII)I
flags: (0x0001) ACC_PUBLIC
Code:
stack=5, locals=6, args_size=4
start local 0 start local 1 start local 2 start local 3 0: iload 2
iload 3
aload 1
arraylength
invokestatic java.util.Objects.checkFromIndexSize:(III)I
pop
1: iconst_0
istore 4
start local 4 2: goto 7
3: StackMap locals: int
StackMap stack:
aload 0
aload 1
iload 2
iload 4
iadd
iload 3
iload 4
isub
invokevirtual java.io.InputStream.read:([BII)I
istore 5
start local 5 4: iload 5
ifge 6
5: goto 8
6: StackMap locals: int
StackMap stack:
iload 4
iload 5
iadd
istore 4
end local 5 7: StackMap locals:
StackMap stack:
iload 4
iload 3
if_icmplt 3
8: StackMap locals:
StackMap stack:
iload 4
ireturn
end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 9 0 this Ljava/io/InputStream;
0 9 1 b [B
0 9 2 off I
0 9 3 len I
2 9 4 n I
4 7 5 count 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=7, locals=8, args_size=2
start local 0 start local 1 0: lload 1
lstore 3
start local 3 1: lload 1
lconst_0
lcmp
ifgt 3
2: lconst_0
lreturn
3: StackMap locals: long
StackMap stack:
ldc 2048
lload 3
invokestatic java.lang.Math.min:(JJ)J
l2i
istore 6
start local 6 4: iload 6
newarray 8
astore 7
start local 7 5: goto 10
6: StackMap locals: java.io.InputStream long long top int byte[]
StackMap stack:
aload 0
aload 7
iconst_0
iload 6
i2l
lload 3
invokestatic java.lang.Math.min:(JJ)J
l2i
invokevirtual java.io.InputStream.read:([BII)I
istore 5
start local 5 7: iload 5
ifge 9
8: goto 11
9: StackMap locals: java.io.InputStream long long int int byte[]
StackMap stack:
lload 3
iload 5
i2l
lsub
lstore 3
end local 5 10: StackMap locals: java.io.InputStream long long top int byte[]
StackMap stack:
lload 3
lconst_0
lcmp
ifgt 6
11: StackMap locals:
StackMap stack:
lload 1
lload 3
lsub
lreturn
end local 7 end local 6 end local 3 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 12 0 this Ljava/io/InputStream;
0 12 1 n J
1 12 3 remaining J
7 10 5 nr I
4 12 6 size I
5 12 7 skipBuffer [B
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: iconst_0
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Ljava/io/InputStream;
Exceptions:
throws java.io.IOException
public void close();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=0, locals=1, args_size=1
start local 0 0: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Ljava/io/InputStream;
Exceptions:
throws java.io.IOException
public synchronized void mark(int);
descriptor: (I)V
flags: (0x0021) ACC_PUBLIC, ACC_SYNCHRONIZED
Code:
stack=0, locals=2, args_size=2
start local 0 start local 1 0: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Ljava/io/InputStream;
0 1 1 readlimit I
MethodParameters:
Name Flags
readlimit
public synchronized void reset();
descriptor: ()V
flags: (0x0021) ACC_PUBLIC, ACC_SYNCHRONIZED
Code:
stack=3, locals=1, args_size=1
start local 0 0: new java.io.IOException
dup
ldc "mark/reset not supported"
invokespecial java.io.IOException.<init>:(Ljava/lang/String;)V
athrow
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Ljava/io/InputStream;
Exceptions:
throws java.io.IOException
public boolean markSupported();
descriptor: ()Z
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: iconst_0
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Ljava/io/InputStream;
public long transferTo(java.io.OutputStream);
descriptor: (Ljava/io/OutputStream;)J
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=6, args_size=2
start local 0 start local 1 0: aload 1
ldc "out"
invokestatic java.util.Objects.requireNonNull:(Ljava/lang/Object;Ljava/lang/String;)Ljava/lang/Object;
pop
1: lconst_0
lstore 2
start local 2 2: sipush 8192
newarray 8
astore 4
start local 4 3: goto 6
start local 5 4: StackMap locals: long byte[] int
StackMap stack:
aload 1
aload 4
iconst_0
iload 5
invokevirtual java.io.OutputStream.write:([BII)V
5: lload 2
iload 5
i2l
ladd
lstore 2
end local 5 6: StackMap locals:
StackMap stack:
aload 0
aload 4
iconst_0
sipush 8192
invokevirtual java.io.InputStream.read:([BII)I
dup
istore 5
start local 5 7: ifge 4
8: lload 2
lreturn
end local 5 end local 4 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 9 0 this Ljava/io/InputStream;
0 9 1 out Ljava/io/OutputStream;
2 9 2 transferred J
3 9 4 buffer [B
4 6 5 read I
7 9 5 read I
Exceptions:
throws java.io.IOException
MethodParameters:
Name Flags
out
}
SourceFile: "InputStream.java"
NestMembers:
java.io.InputStream$1
InnerClasses:
java.io.InputStream$1