public class org.glassfish.grizzly.utils.BufferInputStream extends java.io.InputStream
minor version: 0
major version: 59
flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
this_class: org.glassfish.grizzly.utils.BufferInputStream
super_class: java.io.InputStream
{
private final org.glassfish.grizzly.Buffer buffer;
descriptor: Lorg/glassfish/grizzly/Buffer;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private final boolean isMovingPosition;
descriptor: Z
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private int position;
descriptor: I
flags: (0x0002) ACC_PRIVATE
private final int limit;
descriptor: I
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
public void <init>(org.glassfish.grizzly.Buffer);
descriptor: (Lorg/glassfish/grizzly/Buffer;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 0
invokespecial java.io.InputStream.<init>:()V
1: aload 0
iconst_1
putfield org.glassfish.grizzly.utils.BufferInputStream.isMovingPosition:Z
2: aload 0
aload 1
putfield org.glassfish.grizzly.utils.BufferInputStream.buffer:Lorg/glassfish/grizzly/Buffer;
3: aload 0
aload 1
invokeinterface org.glassfish.grizzly.Buffer.position:()I
putfield org.glassfish.grizzly.utils.BufferInputStream.position:I
4: aload 0
aload 1
invokeinterface org.glassfish.grizzly.Buffer.limit:()I
putfield org.glassfish.grizzly.utils.BufferInputStream.limit:I
5: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 6 0 this Lorg/glassfish/grizzly/utils/BufferInputStream;
0 6 1 buffer Lorg/glassfish/grizzly/Buffer;
MethodParameters:
Name Flags
buffer final
public void <init>(org.glassfish.grizzly.Buffer, int, int);
descriptor: (Lorg/glassfish/grizzly/Buffer;II)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=4, args_size=4
start local 0 start local 1 start local 2 start local 3 0: aload 0
invokespecial java.io.InputStream.<init>:()V
1: aload 0
iconst_0
putfield org.glassfish.grizzly.utils.BufferInputStream.isMovingPosition:Z
2: aload 0
aload 1
putfield org.glassfish.grizzly.utils.BufferInputStream.buffer:Lorg/glassfish/grizzly/Buffer;
3: aload 0
iload 2
putfield org.glassfish.grizzly.utils.BufferInputStream.position:I
4: aload 0
iload 3
putfield org.glassfish.grizzly.utils.BufferInputStream.limit:I
5: return
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 6 0 this Lorg/glassfish/grizzly/utils/BufferInputStream;
0 6 1 buffer Lorg/glassfish/grizzly/Buffer;
0 6 2 position I
0 6 3 limit I
MethodParameters:
Name Flags
buffer final
position final
limit final
public int read();
descriptor: ()I
flags: (0x0001) ACC_PUBLIC
Code:
stack=5, locals=2, args_size=1
start local 0 0: aload 0
getfield org.glassfish.grizzly.utils.BufferInputStream.position:I
aload 0
getfield org.glassfish.grizzly.utils.BufferInputStream.limit:I
if_icmplt 2
1: iconst_m1
ireturn
2: StackMap locals:
StackMap stack:
aload 0
getfield org.glassfish.grizzly.utils.BufferInputStream.buffer:Lorg/glassfish/grizzly/Buffer;
aload 0
dup
getfield org.glassfish.grizzly.utils.BufferInputStream.position:I
dup_x1
iconst_1
iadd
putfield org.glassfish.grizzly.utils.BufferInputStream.position:I
invokeinterface org.glassfish.grizzly.Buffer.get:(I)B
sipush 255
iand
istore 1
start local 1 3: aload 0
getfield org.glassfish.grizzly.utils.BufferInputStream.isMovingPosition:Z
ifeq 5
4: aload 0
getfield org.glassfish.grizzly.utils.BufferInputStream.buffer:Lorg/glassfish/grizzly/Buffer;
aload 0
getfield org.glassfish.grizzly.utils.BufferInputStream.position:I
invokeinterface org.glassfish.grizzly.Buffer.position:(I)Lorg/glassfish/grizzly/Buffer;
pop
5: StackMap locals: int
StackMap stack:
iload 1
ireturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 6 0 this Lorg/glassfish/grizzly/utils/BufferInputStream;
3 6 1 result I
Exceptions:
throws java.io.IOException
public int read(byte[], int, int);
descriptor: ([BII)I
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=8, args_size=4
start local 0 start local 1 start local 2 start local 3 0: aload 0
getfield org.glassfish.grizzly.utils.BufferInputStream.position:I
aload 0
getfield org.glassfish.grizzly.utils.BufferInputStream.limit:I
if_icmplt 2
1: iconst_m1
ireturn
2: StackMap locals:
StackMap stack:
iload 3
aload 0
invokevirtual org.glassfish.grizzly.utils.BufferInputStream.available:()I
invokestatic java.lang.Math.min:(II)I
istore 4
start local 4 3: aload 0
getfield org.glassfish.grizzly.utils.BufferInputStream.buffer:Lorg/glassfish/grizzly/Buffer;
invokeinterface org.glassfish.grizzly.Buffer.position:()I
istore 5
start local 5 4: aload 0
getfield org.glassfish.grizzly.utils.BufferInputStream.buffer:Lorg/glassfish/grizzly/Buffer;
invokeinterface org.glassfish.grizzly.Buffer.limit:()I
istore 6
start local 6 5: aload 0
getfield org.glassfish.grizzly.utils.BufferInputStream.isMovingPosition:Z
ifne 7
6: aload 0
getfield org.glassfish.grizzly.utils.BufferInputStream.buffer:Lorg/glassfish/grizzly/Buffer;
aload 0
getfield org.glassfish.grizzly.utils.BufferInputStream.position:I
aload 0
getfield org.glassfish.grizzly.utils.BufferInputStream.limit:I
invokestatic org.glassfish.grizzly.memory.Buffers.setPositionLimit:(Lorg/glassfish/grizzly/Buffer;II)V
7: StackMap locals: int int int
StackMap stack:
aload 0
getfield org.glassfish.grizzly.utils.BufferInputStream.buffer:Lorg/glassfish/grizzly/Buffer;
aload 1
iload 2
iload 4
invokeinterface org.glassfish.grizzly.Buffer.get:([BII)Lorg/glassfish/grizzly/Buffer;
pop
8: goto 13
StackMap locals:
StackMap stack: java.lang.Throwable
9: astore 7
10: aload 0
getfield org.glassfish.grizzly.utils.BufferInputStream.isMovingPosition:Z
ifne 12
11: aload 0
getfield org.glassfish.grizzly.utils.BufferInputStream.buffer:Lorg/glassfish/grizzly/Buffer;
iload 5
iload 6
invokestatic org.glassfish.grizzly.memory.Buffers.setPositionLimit:(Lorg/glassfish/grizzly/Buffer;II)V
12: StackMap locals: java.lang.Throwable
StackMap stack:
aload 7
athrow
13: StackMap locals:
StackMap stack:
aload 0
getfield org.glassfish.grizzly.utils.BufferInputStream.isMovingPosition:Z
ifne 15
14: aload 0
getfield org.glassfish.grizzly.utils.BufferInputStream.buffer:Lorg/glassfish/grizzly/Buffer;
iload 5
iload 6
invokestatic org.glassfish.grizzly.memory.Buffers.setPositionLimit:(Lorg/glassfish/grizzly/Buffer;II)V
15: StackMap locals:
StackMap stack:
aload 0
dup
getfield org.glassfish.grizzly.utils.BufferInputStream.position:I
iload 4
iadd
putfield org.glassfish.grizzly.utils.BufferInputStream.position:I
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 Lorg/glassfish/grizzly/utils/BufferInputStream;
0 17 1 b [B
0 17 2 off I
0 17 3 len I
3 17 4 length I
4 17 5 oldPos I
5 17 6 oldLim I
Exception table:
from to target type
7 9 9 any
Exceptions:
throws java.io.IOException
MethodParameters:
Name Flags
b final
off final
len final
public int available();
descriptor: ()I
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=1, args_size=1
start local 0 0: aload 0
getfield org.glassfish.grizzly.utils.BufferInputStream.limit:I
aload 0
getfield org.glassfish.grizzly.utils.BufferInputStream.position:I
isub
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/glassfish/grizzly/utils/BufferInputStream;
Exceptions:
throws java.io.IOException
public long skip(long);
descriptor: (J)J
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=4, args_size=2
start local 0 start local 1 0: lload 1
aload 0
invokevirtual org.glassfish.grizzly.utils.BufferInputStream.available:()I
i2l
invokestatic java.lang.Math.min:(JJ)J
l2i
istore 3
start local 3 1: aload 0
dup
getfield org.glassfish.grizzly.utils.BufferInputStream.position:I
iload 3
iadd
putfield org.glassfish.grizzly.utils.BufferInputStream.position:I
2: aload 0
getfield org.glassfish.grizzly.utils.BufferInputStream.isMovingPosition:Z
ifeq 4
3: aload 0
getfield org.glassfish.grizzly.utils.BufferInputStream.buffer:Lorg/glassfish/grizzly/Buffer;
aload 0
getfield org.glassfish.grizzly.utils.BufferInputStream.position:I
invokeinterface org.glassfish.grizzly.Buffer.position:(I)Lorg/glassfish/grizzly/Buffer;
pop
4: StackMap locals: int
StackMap stack:
iload 3
i2l
lreturn
end local 3 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 this Lorg/glassfish/grizzly/utils/BufferInputStream;
0 5 1 n J
1 5 3 skipped I
Exceptions:
throws java.io.IOException
MethodParameters:
Name Flags
n final
}
SourceFile: "BufferInputStream.java"