public class java.io.BufferedInputStream extends java.io.FilterInputStream
minor version: 0
major version: 59
flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
this_class: java.io.BufferedInputStream
super_class: java.io.FilterInputStream
{
private static int DEFAULT_BUFFER_SIZE;
descriptor: I
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
private static int MAX_BUFFER_SIZE;
descriptor: I
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
private static final jdk.internal.misc.Unsafe U;
descriptor: Ljdk/internal/misc/Unsafe;
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
private static final long BUF_OFFSET;
descriptor: J
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
protected volatile byte[] buf;
descriptor: [B
flags: (0x0044) ACC_PROTECTED, ACC_VOLATILE
protected int count;
descriptor: I
flags: (0x0004) ACC_PROTECTED
protected int pos;
descriptor: I
flags: (0x0004) ACC_PROTECTED
protected int markpos;
descriptor: I
flags: (0x0004) ACC_PROTECTED
protected int marklimit;
descriptor: I
flags: (0x0004) ACC_PROTECTED
static void <clinit>();
descriptor: ()V
flags: (0x0008) ACC_STATIC
Code:
stack=3, locals=0, args_size=0
0: sipush 8192
putstatic java.io.BufferedInputStream.DEFAULT_BUFFER_SIZE:I
1: ldc 2147483639
putstatic java.io.BufferedInputStream.MAX_BUFFER_SIZE:I
2: invokestatic jdk.internal.misc.Unsafe.getUnsafe:()Ljdk/internal/misc/Unsafe;
putstatic java.io.BufferedInputStream.U:Ljdk/internal/misc/Unsafe;
3: getstatic java.io.BufferedInputStream.U:Ljdk/internal/misc/Unsafe;
ldc Ljava/io/BufferedInputStream;
ldc "buf"
invokevirtual jdk.internal.misc.Unsafe.objectFieldOffset:(Ljava/lang/Class;Ljava/lang/String;)J
4: putstatic java.io.BufferedInputStream.BUF_OFFSET:J
5: return
LocalVariableTable:
Start End Slot Name Signature
private java.io.InputStream getInIfOpen();
descriptor: ()Ljava/io/InputStream;
flags: (0x0002) ACC_PRIVATE
Code:
stack=3, locals=2, args_size=1
start local 0 0: aload 0
getfield java.io.BufferedInputStream.in:Ljava/io/InputStream;
astore 1
start local 1 1: aload 1
ifnonnull 3
2: new java.io.IOException
dup
ldc "Stream closed"
invokespecial java.io.IOException.<init>:(Ljava/lang/String;)V
athrow
3: StackMap locals: java.io.InputStream
StackMap stack:
aload 1
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Ljava/io/BufferedInputStream;
1 4 1 input Ljava/io/InputStream;
Exceptions:
throws java.io.IOException
private byte[] getBufIfOpen();
descriptor: ()[B
flags: (0x0002) ACC_PRIVATE
Code:
stack=3, locals=2, args_size=1
start local 0 0: aload 0
getfield java.io.BufferedInputStream.buf:[B
astore 1
start local 1 1: aload 1
ifnonnull 3
2: new java.io.IOException
dup
ldc "Stream closed"
invokespecial java.io.IOException.<init>:(Ljava/lang/String;)V
athrow
3: StackMap locals: byte[]
StackMap stack:
aload 1
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Ljava/io/BufferedInputStream;
1 4 1 buffer [B
Exceptions:
throws java.io.IOException
public void <init>(java.io.InputStream);
descriptor: (Ljava/io/InputStream;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=2, args_size=2
start local 0 start local 1 0: aload 0
aload 1
getstatic java.io.BufferedInputStream.DEFAULT_BUFFER_SIZE:I
invokespecial java.io.BufferedInputStream.<init>:(Ljava/io/InputStream;I)V
1: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Ljava/io/BufferedInputStream;
0 2 1 in Ljava/io/InputStream;
MethodParameters:
Name Flags
in
public void <init>(java.io.InputStream, int);
descriptor: (Ljava/io/InputStream;I)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=3, args_size=3
start local 0 start local 1 start local 2 0: aload 0
aload 1
invokespecial java.io.FilterInputStream.<init>:(Ljava/io/InputStream;)V
1: aload 0
iconst_m1
putfield java.io.BufferedInputStream.markpos:I
2: iload 2
ifgt 4
3: new java.lang.IllegalArgumentException
dup
ldc "Buffer size <= 0"
invokespecial java.lang.IllegalArgumentException.<init>:(Ljava/lang/String;)V
athrow
4: StackMap locals: java.io.BufferedInputStream java.io.InputStream int
StackMap stack:
aload 0
iload 2
newarray 8
putfield java.io.BufferedInputStream.buf:[B
5: return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 6 0 this Ljava/io/BufferedInputStream;
0 6 1 in Ljava/io/InputStream;
0 6 2 size I
MethodParameters:
Name Flags
in
size
private void fill();
descriptor: ()V
flags: (0x0002) ACC_PRIVATE
Code:
stack=6, locals=4, args_size=1
start local 0 0: aload 0
invokevirtual java.io.BufferedInputStream.getBufIfOpen:()[B
astore 1
start local 1 1: aload 0
getfield java.io.BufferedInputStream.markpos:I
ifge 3
2: aload 0
iconst_0
putfield java.io.BufferedInputStream.pos:I
goto 27
3: StackMap locals: byte[]
StackMap stack:
aload 0
getfield java.io.BufferedInputStream.pos:I
aload 1
arraylength
if_icmplt 27
4: aload 0
getfield java.io.BufferedInputStream.markpos:I
ifle 10
5: aload 0
getfield java.io.BufferedInputStream.pos:I
aload 0
getfield java.io.BufferedInputStream.markpos:I
isub
istore 2
start local 2 6: aload 1
aload 0
getfield java.io.BufferedInputStream.markpos:I
aload 1
iconst_0
iload 2
invokestatic java.lang.System.arraycopy:(Ljava/lang/Object;ILjava/lang/Object;II)V
7: aload 0
iload 2
putfield java.io.BufferedInputStream.pos:I
8: aload 0
iconst_0
putfield java.io.BufferedInputStream.markpos:I
end local 2 9: goto 27
StackMap locals:
StackMap stack:
10: aload 1
arraylength
aload 0
getfield java.io.BufferedInputStream.marklimit:I
if_icmplt 14
11: aload 0
iconst_m1
putfield java.io.BufferedInputStream.markpos:I
12: aload 0
iconst_0
putfield java.io.BufferedInputStream.pos:I
13: goto 27
StackMap locals:
StackMap stack:
14: aload 1
arraylength
getstatic java.io.BufferedInputStream.MAX_BUFFER_SIZE:I
if_icmplt 16
15: new java.lang.OutOfMemoryError
dup
ldc "Required array size too large"
invokespecial java.lang.OutOfMemoryError.<init>:(Ljava/lang/String;)V
athrow
16: StackMap locals:
StackMap stack:
aload 0
getfield java.io.BufferedInputStream.pos:I
getstatic java.io.BufferedInputStream.MAX_BUFFER_SIZE:I
aload 0
getfield java.io.BufferedInputStream.pos:I
isub
if_icmpgt 18
17: aload 0
getfield java.io.BufferedInputStream.pos:I
iconst_2
imul
goto 19
StackMap locals:
StackMap stack:
18: getstatic java.io.BufferedInputStream.MAX_BUFFER_SIZE:I
19: StackMap locals:
StackMap stack: int
istore 2
start local 2 20: iload 2
aload 0
getfield java.io.BufferedInputStream.marklimit:I
if_icmple 22
21: aload 0
getfield java.io.BufferedInputStream.marklimit:I
istore 2
22: StackMap locals: int
StackMap stack:
iload 2
newarray 8
astore 3
start local 3 23: aload 1
iconst_0
aload 3
iconst_0
aload 0
getfield java.io.BufferedInputStream.pos:I
invokestatic java.lang.System.arraycopy:(Ljava/lang/Object;ILjava/lang/Object;II)V
24: getstatic java.io.BufferedInputStream.U:Ljdk/internal/misc/Unsafe;
aload 0
getstatic java.io.BufferedInputStream.BUF_OFFSET:J
aload 1
aload 3
invokevirtual jdk.internal.misc.Unsafe.compareAndSetObject:(Ljava/lang/Object;JLjava/lang/Object;Ljava/lang/Object;)Z
ifne 26
25: new java.io.IOException
dup
ldc "Stream closed"
invokespecial java.io.IOException.<init>:(Ljava/lang/String;)V
athrow
26: StackMap locals: byte[]
StackMap stack:
aload 3
astore 1
end local 3 end local 2 27: StackMap locals:
StackMap stack:
aload 0
aload 0
getfield java.io.BufferedInputStream.pos:I
putfield java.io.BufferedInputStream.count:I
28: aload 0
invokevirtual java.io.BufferedInputStream.getInIfOpen:()Ljava/io/InputStream;
aload 1
aload 0
getfield java.io.BufferedInputStream.pos:I
aload 1
arraylength
aload 0
getfield java.io.BufferedInputStream.pos:I
isub
invokevirtual java.io.InputStream.read:([BII)I
istore 2
start local 2 29: iload 2
ifle 31
30: aload 0
iload 2
aload 0
getfield java.io.BufferedInputStream.pos:I
iadd
putfield java.io.BufferedInputStream.count:I
31: StackMap locals: int
StackMap stack:
return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 32 0 this Ljava/io/BufferedInputStream;
1 32 1 buffer [B
6 9 2 sz I
20 27 2 nsz I
23 27 3 nbuf [B
29 32 2 n I
Exceptions:
throws java.io.IOException
public synchronized int read();
descriptor: ()I
flags: (0x0021) ACC_PUBLIC, ACC_SYNCHRONIZED
Code:
stack=5, locals=1, args_size=1
start local 0 0: aload 0
getfield java.io.BufferedInputStream.pos:I
aload 0
getfield java.io.BufferedInputStream.count:I
if_icmplt 4
1: aload 0
invokevirtual java.io.BufferedInputStream.fill:()V
2: aload 0
getfield java.io.BufferedInputStream.pos:I
aload 0
getfield java.io.BufferedInputStream.count:I
if_icmplt 4
3: iconst_m1
ireturn
4: StackMap locals:
StackMap stack:
aload 0
invokevirtual java.io.BufferedInputStream.getBufIfOpen:()[B
aload 0
dup
getfield java.io.BufferedInputStream.pos:I
dup_x1
iconst_1
iadd
putfield java.io.BufferedInputStream.pos:I
baload
sipush 255
iand
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 this Ljava/io/BufferedInputStream;
Exceptions:
throws java.io.IOException
private int read1(byte[], int, int);
descriptor: ([BII)I
flags: (0x0002) ACC_PRIVATE
Code:
stack=5, locals=6, args_size=4
start local 0 start local 1 start local 2 start local 3 0: aload 0
getfield java.io.BufferedInputStream.count:I
aload 0
getfield java.io.BufferedInputStream.pos:I
isub
istore 4
start local 4 1: iload 4
ifgt 7
2: iload 3
aload 0
invokevirtual java.io.BufferedInputStream.getBufIfOpen:()[B
arraylength
if_icmplt 4
aload 0
getfield java.io.BufferedInputStream.markpos:I
ifge 4
3: aload 0
invokevirtual java.io.BufferedInputStream.getInIfOpen:()Ljava/io/InputStream;
aload 1
iload 2
iload 3
invokevirtual java.io.InputStream.read:([BII)I
ireturn
4: StackMap locals: int
StackMap stack:
aload 0
invokevirtual java.io.BufferedInputStream.fill:()V
5: aload 0
getfield java.io.BufferedInputStream.count:I
aload 0
getfield java.io.BufferedInputStream.pos:I
isub
istore 4
6: iload 4
ifgt 7
iconst_m1
ireturn
7: StackMap locals:
StackMap stack:
iload 4
iload 3
if_icmpge 8
iload 4
goto 9
StackMap locals:
StackMap stack:
8: iload 3
StackMap locals:
StackMap stack: int
9: istore 5
start local 5 10: aload 0
invokevirtual java.io.BufferedInputStream.getBufIfOpen:()[B
aload 0
getfield java.io.BufferedInputStream.pos:I
aload 1
iload 2
iload 5
invokestatic java.lang.System.arraycopy:(Ljava/lang/Object;ILjava/lang/Object;II)V
11: aload 0
dup
getfield java.io.BufferedInputStream.pos:I
iload 5
iadd
putfield java.io.BufferedInputStream.pos:I
12: 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 13 0 this Ljava/io/BufferedInputStream;
0 13 1 b [B
0 13 2 off I
0 13 3 len I
1 13 4 avail I
10 13 5 cnt I
Exceptions:
throws java.io.IOException
MethodParameters:
Name Flags
b
off
len
public synchronized int read(byte[], int, int);
descriptor: ([BII)I
flags: (0x0021) ACC_PUBLIC, ACC_SYNCHRONIZED
Code:
stack=5, locals=7, args_size=4
start local 0 start local 1 start local 2 start local 3 0: aload 0
invokevirtual java.io.BufferedInputStream.getBufIfOpen:()[B
pop
1: iload 2
iload 3
ior
iload 2
iload 3
iadd
ior
aload 1
arraylength
iload 2
iload 3
iadd
isub
ior
ifge 3
2: new java.lang.IndexOutOfBoundsException
dup
invokespecial java.lang.IndexOutOfBoundsException.<init>:()V
athrow
3: StackMap locals:
StackMap stack:
iload 3
ifne 5
4: iconst_0
ireturn
5: StackMap locals:
StackMap stack:
iconst_0
istore 4
start local 4 6: StackMap locals: int
StackMap stack:
aload 0
aload 1
iload 2
iload 4
iadd
iload 3
iload 4
isub
invokevirtual java.io.BufferedInputStream.read1:([BII)I
istore 5
start local 5 7: iload 5
ifgt 11
8: iload 4
ifne 9
iload 5
goto 10
StackMap locals: int
StackMap stack:
9: iload 4
StackMap locals:
StackMap stack: int
10: ireturn
11: StackMap locals:
StackMap stack:
iload 4
iload 5
iadd
istore 4
12: iload 4
iload 3
if_icmplt 14
13: iload 4
ireturn
14: StackMap locals:
StackMap stack:
aload 0
getfield java.io.BufferedInputStream.in:Ljava/io/InputStream;
astore 6
start local 6 15: aload 6
ifnull 6
aload 6
invokevirtual java.io.InputStream.available:()I
ifgt 6
16: iload 4
ireturn
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 17 0 this Ljava/io/BufferedInputStream;
0 17 1 b [B
0 17 2 off I
0 17 3 len I
6 17 4 n I
7 17 5 nread I
15 17 6 input Ljava/io/InputStream;
Exceptions:
throws java.io.IOException
MethodParameters:
Name Flags
b
off
len
public synchronized long skip(long);
descriptor: (J)J
flags: (0x0021) ACC_PUBLIC, ACC_SYNCHRONIZED
Code:
stack=5, locals=7, args_size=2
start local 0 start local 1 0: aload 0
invokevirtual java.io.BufferedInputStream.getBufIfOpen:()[B
pop
1: lload 1
lconst_0
lcmp
ifgt 3
2: lconst_0
lreturn
3: StackMap locals:
StackMap stack:
aload 0
getfield java.io.BufferedInputStream.count:I
aload 0
getfield java.io.BufferedInputStream.pos:I
isub
i2l
lstore 3
start local 3 4: lload 3
lconst_0
lcmp
ifgt 11
5: aload 0
getfield java.io.BufferedInputStream.markpos:I
ifge 7
6: aload 0
invokevirtual java.io.BufferedInputStream.getInIfOpen:()Ljava/io/InputStream;
lload 1
invokevirtual java.io.InputStream.skip:(J)J
lreturn
7: StackMap locals: long
StackMap stack:
aload 0
invokevirtual java.io.BufferedInputStream.fill:()V
8: aload 0
getfield java.io.BufferedInputStream.count:I
aload 0
getfield java.io.BufferedInputStream.pos:I
isub
i2l
lstore 3
9: lload 3
lconst_0
lcmp
ifgt 11
10: lconst_0
lreturn
11: StackMap locals:
StackMap stack:
lload 3
lload 1
lcmp
ifge 12
lload 3
goto 13
StackMap locals:
StackMap stack:
12: lload 1
StackMap locals:
StackMap stack: long
13: lstore 5
start local 5 14: aload 0
dup
getfield java.io.BufferedInputStream.pos:I
i2l
lload 5
ladd
l2i
putfield java.io.BufferedInputStream.pos:I
15: lload 5
lreturn
end local 5 end local 3 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 16 0 this Ljava/io/BufferedInputStream;
0 16 1 n J
4 16 3 avail J
14 16 5 skipped J
Exceptions:
throws java.io.IOException
MethodParameters:
Name Flags
n
public synchronized int available();
descriptor: ()I
flags: (0x0021) ACC_PUBLIC, ACC_SYNCHRONIZED
Code:
stack=3, locals=3, args_size=1
start local 0 0: aload 0
getfield java.io.BufferedInputStream.count:I
aload 0
getfield java.io.BufferedInputStream.pos:I
isub
istore 1
start local 1 1: aload 0
invokevirtual java.io.BufferedInputStream.getInIfOpen:()Ljava/io/InputStream;
invokevirtual java.io.InputStream.available:()I
istore 2
start local 2 2: iload 1
ldc 2147483647
iload 2
isub
if_icmple 4
3: ldc 2147483647
goto 5
4: StackMap locals: int int
StackMap stack:
iload 1
iload 2
iadd
5: StackMap locals:
StackMap stack: int
ireturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 6 0 this Ljava/io/BufferedInputStream;
1 6 1 n I
2 6 2 avail I
Exceptions:
throws java.io.IOException
public synchronized void mark(int);
descriptor: (I)V
flags: (0x0021) ACC_PUBLIC, ACC_SYNCHRONIZED
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 0
iload 1
putfield java.io.BufferedInputStream.marklimit:I
1: aload 0
aload 0
getfield java.io.BufferedInputStream.pos:I
putfield java.io.BufferedInputStream.markpos:I
2: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Ljava/io/BufferedInputStream;
0 3 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: aload 0
invokevirtual java.io.BufferedInputStream.getBufIfOpen:()[B
pop
1: aload 0
getfield java.io.BufferedInputStream.markpos:I
ifge 3
2: new java.io.IOException
dup
ldc "Resetting to invalid mark"
invokespecial java.io.IOException.<init>:(Ljava/lang/String;)V
athrow
3: StackMap locals:
StackMap stack:
aload 0
aload 0
getfield java.io.BufferedInputStream.markpos:I
putfield java.io.BufferedInputStream.pos:I
4: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 this Ljava/io/BufferedInputStream;
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_1
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Ljava/io/BufferedInputStream;
public void close();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=6, locals=3, args_size=1
start local 0 0: goto 7
start local 1 1: StackMap locals: byte[]
StackMap stack:
getstatic java.io.BufferedInputStream.U:Ljdk/internal/misc/Unsafe;
aload 0
getstatic java.io.BufferedInputStream.BUF_OFFSET:J
aload 1
aconst_null
invokevirtual jdk.internal.misc.Unsafe.compareAndSetObject:(Ljava/lang/Object;JLjava/lang/Object;Ljava/lang/Object;)Z
ifeq 7
2: aload 0
getfield java.io.BufferedInputStream.in:Ljava/io/InputStream;
astore 2
start local 2 3: aload 0
aconst_null
putfield java.io.BufferedInputStream.in:Ljava/io/InputStream;
4: aload 2
ifnull 6
5: aload 2
invokevirtual java.io.InputStream.close:()V
6: StackMap locals: java.io.InputStream
StackMap stack:
return
end local 2 end local 1 7: StackMap locals:
StackMap stack:
aload 0
getfield java.io.BufferedInputStream.buf:[B
dup
astore 1
start local 1 8: ifnonnull 1
9: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 10 0 this Ljava/io/BufferedInputStream;
1 7 1 buffer [B
8 10 1 buffer [B
3 7 2 input Ljava/io/InputStream;
Exceptions:
throws java.io.IOException
}
SourceFile: "BufferedInputStream.java"