public class org.postgresql.core.VisibleBufferedInputStream extends java.io.InputStream
minor version: 0
major version: 59
flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
this_class: org.postgresql.core.VisibleBufferedInputStream
super_class: java.io.InputStream
{
private static final int MINIMUM_READ;
descriptor: I
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
ConstantValue: 1024
private static final int STRING_SCAN_SPAN;
descriptor: I
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
ConstantValue: 1024
private final java.io.InputStream wrapped;
descriptor: Ljava/io/InputStream;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private byte[] buffer;
descriptor: [B
flags: (0x0002) ACC_PRIVATE
private int index;
descriptor: I
flags: (0x0002) ACC_PRIVATE
private int endIndex;
descriptor: I
flags: (0x0002) ACC_PRIVATE
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
invokespecial java.io.InputStream.<init>:()V
1: aload 0
aload 1
putfield org.postgresql.core.VisibleBufferedInputStream.wrapped:Ljava/io/InputStream;
2: aload 0
iload 2
sipush 1024
if_icmpge 3
sipush 1024
goto 4
StackMap locals: org.postgresql.core.VisibleBufferedInputStream java.io.InputStream int
StackMap stack: org.postgresql.core.VisibleBufferedInputStream
3: iload 2
StackMap locals: org.postgresql.core.VisibleBufferedInputStream java.io.InputStream int
StackMap stack: org.postgresql.core.VisibleBufferedInputStream int
4: newarray 8
putfield org.postgresql.core.VisibleBufferedInputStream.buffer:[B
5: return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 6 0 this Lorg/postgresql/core/VisibleBufferedInputStream;
0 6 1 in Ljava/io/InputStream;
0 6 2 bufferSize I
MethodParameters:
Name Flags
in
bufferSize
public int read();
descriptor: ()I
flags: (0x0001) ACC_PUBLIC
Code:
stack=5, locals=1, args_size=1
start local 0 0: aload 0
iconst_1
invokevirtual org.postgresql.core.VisibleBufferedInputStream.ensureBytes:(I)Z
ifeq 2
1: aload 0
getfield org.postgresql.core.VisibleBufferedInputStream.buffer:[B
aload 0
dup
getfield org.postgresql.core.VisibleBufferedInputStream.index:I
dup_x1
iconst_1
iadd
putfield org.postgresql.core.VisibleBufferedInputStream.index:I
baload
sipush 255
iand
ireturn
2: StackMap locals:
StackMap stack:
iconst_m1
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lorg/postgresql/core/VisibleBufferedInputStream;
Exceptions:
throws java.io.IOException
public int peek();
descriptor: ()I
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=1, args_size=1
start local 0 0: aload 0
iconst_1
invokevirtual org.postgresql.core.VisibleBufferedInputStream.ensureBytes:(I)Z
ifeq 2
1: aload 0
getfield org.postgresql.core.VisibleBufferedInputStream.buffer:[B
aload 0
getfield org.postgresql.core.VisibleBufferedInputStream.index:I
baload
sipush 255
iand
ireturn
2: StackMap locals:
StackMap stack:
iconst_m1
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lorg/postgresql/core/VisibleBufferedInputStream;
Exceptions:
throws java.io.IOException
public byte readRaw();
descriptor: ()B
flags: (0x0001) ACC_PUBLIC
Code:
stack=5, locals=1, args_size=1
start local 0 0: aload 0
getfield org.postgresql.core.VisibleBufferedInputStream.buffer:[B
aload 0
dup
getfield org.postgresql.core.VisibleBufferedInputStream.index:I
dup_x1
iconst_1
iadd
putfield org.postgresql.core.VisibleBufferedInputStream.index:I
baload
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/postgresql/core/VisibleBufferedInputStream;
public boolean ensureBytes(int);
descriptor: (I)Z
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=3, args_size=2
start local 0 start local 1 0: iload 1
aload 0
getfield org.postgresql.core.VisibleBufferedInputStream.endIndex:I
isub
aload 0
getfield org.postgresql.core.VisibleBufferedInputStream.index:I
iadd
istore 2
start local 2 1: goto 5
2: StackMap locals: int
StackMap stack:
aload 0
iload 2
invokevirtual org.postgresql.core.VisibleBufferedInputStream.readMore:(I)Z
ifne 4
3: iconst_0
ireturn
4: StackMap locals:
StackMap stack:
iload 1
aload 0
getfield org.postgresql.core.VisibleBufferedInputStream.endIndex:I
isub
aload 0
getfield org.postgresql.core.VisibleBufferedInputStream.index:I
iadd
istore 2
5: StackMap locals:
StackMap stack:
iload 2
ifgt 2
6: iconst_1
ireturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 7 0 this Lorg/postgresql/core/VisibleBufferedInputStream;
0 7 1 n I
1 7 2 required I
Exceptions:
throws java.io.IOException
MethodParameters:
Name Flags
n
private boolean readMore(int);
descriptor: (I)Z
flags: (0x0002) ACC_PRIVATE
Code:
stack=4, locals=4, args_size=2
start local 0 start local 1 0: aload 0
getfield org.postgresql.core.VisibleBufferedInputStream.endIndex:I
aload 0
getfield org.postgresql.core.VisibleBufferedInputStream.index:I
if_icmpne 3
1: aload 0
iconst_0
putfield org.postgresql.core.VisibleBufferedInputStream.index:I
2: aload 0
iconst_0
putfield org.postgresql.core.VisibleBufferedInputStream.endIndex:I
3: StackMap locals:
StackMap stack:
aload 0
getfield org.postgresql.core.VisibleBufferedInputStream.buffer:[B
arraylength
aload 0
getfield org.postgresql.core.VisibleBufferedInputStream.endIndex:I
isub
istore 2
start local 2 4: iload 2
iload 1
if_icmpge 10
5: aload 0
getfield org.postgresql.core.VisibleBufferedInputStream.index:I
iload 2
iadd
iload 1
sipush 1024
iadd
if_icmple 8
6: aload 0
invokevirtual org.postgresql.core.VisibleBufferedInputStream.compact:()V
7: goto 9
8: StackMap locals: int
StackMap stack:
aload 0
invokevirtual org.postgresql.core.VisibleBufferedInputStream.doubleBuffer:()V
9: StackMap locals:
StackMap stack:
aload 0
getfield org.postgresql.core.VisibleBufferedInputStream.buffer:[B
arraylength
aload 0
getfield org.postgresql.core.VisibleBufferedInputStream.endIndex:I
isub
istore 2
10: StackMap locals:
StackMap stack:
aload 0
getfield org.postgresql.core.VisibleBufferedInputStream.wrapped:Ljava/io/InputStream;
aload 0
getfield org.postgresql.core.VisibleBufferedInputStream.buffer:[B
aload 0
getfield org.postgresql.core.VisibleBufferedInputStream.endIndex:I
iload 2
invokevirtual java.io.InputStream.read:([BII)I
istore 3
start local 3 11: iload 3
ifge 13
12: iconst_0
ireturn
13: StackMap locals: int
StackMap stack:
aload 0
dup
getfield org.postgresql.core.VisibleBufferedInputStream.endIndex:I
iload 3
iadd
putfield org.postgresql.core.VisibleBufferedInputStream.endIndex:I
14: iconst_1
ireturn
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 15 0 this Lorg/postgresql/core/VisibleBufferedInputStream;
0 15 1 wanted I
4 15 2 canFit I
11 15 3 read I
Exceptions:
throws java.io.IOException
MethodParameters:
Name Flags
wanted
private void doubleBuffer();
descriptor: ()V
flags: (0x0002) ACC_PRIVATE
Code:
stack=2, locals=2, args_size=1
start local 0 0: aload 0
getfield org.postgresql.core.VisibleBufferedInputStream.buffer:[B
arraylength
iconst_2
imul
newarray 8
astore 1
start local 1 1: aload 0
aload 1
invokevirtual org.postgresql.core.VisibleBufferedInputStream.moveBufferTo:([B)V
2: aload 0
aload 1
putfield org.postgresql.core.VisibleBufferedInputStream.buffer:[B
3: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Lorg/postgresql/core/VisibleBufferedInputStream;
1 4 1 buf [B
private void compact();
descriptor: ()V
flags: (0x0002) ACC_PRIVATE
Code:
stack=2, locals=1, args_size=1
start local 0 0: aload 0
aload 0
getfield org.postgresql.core.VisibleBufferedInputStream.buffer:[B
invokevirtual org.postgresql.core.VisibleBufferedInputStream.moveBufferTo:([B)V
1: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lorg/postgresql/core/VisibleBufferedInputStream;
private void moveBufferTo(byte[]);
descriptor: ([B)V
flags: (0x0002) ACC_PRIVATE
Code:
stack=5, locals=3, args_size=2
start local 0 start local 1 0: aload 0
getfield org.postgresql.core.VisibleBufferedInputStream.endIndex:I
aload 0
getfield org.postgresql.core.VisibleBufferedInputStream.index:I
isub
istore 2
start local 2 1: aload 0
getfield org.postgresql.core.VisibleBufferedInputStream.buffer:[B
aload 0
getfield org.postgresql.core.VisibleBufferedInputStream.index:I
aload 1
iconst_0
iload 2
invokestatic java.lang.System.arraycopy:(Ljava/lang/Object;ILjava/lang/Object;II)V
2: aload 0
iconst_0
putfield org.postgresql.core.VisibleBufferedInputStream.index:I
3: aload 0
iload 2
putfield org.postgresql.core.VisibleBufferedInputStream.endIndex:I
4: return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 this Lorg/postgresql/core/VisibleBufferedInputStream;
0 5 1 dest [B
1 5 2 size I
MethodParameters:
Name Flags
dest
public int read(byte[], int, int);
descriptor: ([BII)I
flags: (0x0001) ACC_PUBLIC
Code:
stack=5, locals=7, args_size=4
start local 0 start local 1 start local 2 start local 3 0: iload 2
iload 3
ior
iload 2
iload 3
iadd
ior
aload 1
arraylength
iload 2
iload 3
iadd
isub
ior
ifge 2
1: new java.lang.IndexOutOfBoundsException
dup
invokespecial java.lang.IndexOutOfBoundsException.<init>:()V
athrow
2: StackMap locals:
StackMap stack:
iload 3
ifne 4
3: iconst_0
ireturn
4: StackMap locals:
StackMap stack:
aload 0
getfield org.postgresql.core.VisibleBufferedInputStream.endIndex:I
aload 0
getfield org.postgresql.core.VisibleBufferedInputStream.index:I
isub
istore 4
start local 4 5: iload 3
iload 4
isub
sipush 1024
if_icmpge 8
6: aload 0
iload 3
invokevirtual org.postgresql.core.VisibleBufferedInputStream.ensureBytes:(I)Z
pop
7: aload 0
getfield org.postgresql.core.VisibleBufferedInputStream.endIndex:I
aload 0
getfield org.postgresql.core.VisibleBufferedInputStream.index:I
isub
istore 4
8: StackMap locals: int
StackMap stack:
iload 4
ifle 16
9: iload 3
iload 4
if_icmpgt 13
10: aload 0
getfield org.postgresql.core.VisibleBufferedInputStream.buffer:[B
aload 0
getfield org.postgresql.core.VisibleBufferedInputStream.index:I
aload 1
iload 2
iload 3
invokestatic java.lang.System.arraycopy:(Ljava/lang/Object;ILjava/lang/Object;II)V
11: aload 0
dup
getfield org.postgresql.core.VisibleBufferedInputStream.index:I
iload 3
iadd
putfield org.postgresql.core.VisibleBufferedInputStream.index:I
12: iload 3
ireturn
13: StackMap locals:
StackMap stack:
aload 0
getfield org.postgresql.core.VisibleBufferedInputStream.buffer:[B
aload 0
getfield org.postgresql.core.VisibleBufferedInputStream.index:I
aload 1
iload 2
iload 4
invokestatic java.lang.System.arraycopy:(Ljava/lang/Object;ILjava/lang/Object;II)V
14: iload 3
iload 4
isub
istore 3
15: iload 2
iload 4
iadd
istore 2
16: StackMap locals:
StackMap stack:
iload 4
istore 5
start local 5 17: aload 0
iconst_0
putfield org.postgresql.core.VisibleBufferedInputStream.index:I
18: aload 0
iconst_0
putfield org.postgresql.core.VisibleBufferedInputStream.endIndex:I
19: StackMap locals: int
StackMap stack:
aload 0
getfield org.postgresql.core.VisibleBufferedInputStream.wrapped:Ljava/io/InputStream;
aload 1
iload 2
iload 3
invokevirtual java.io.InputStream.read:([BII)I
istore 6
start local 6 20: iload 6
ifgt 24
21: iload 5
ifne 22
iload 6
goto 23
StackMap locals: int
StackMap stack:
22: iload 5
StackMap locals:
StackMap stack: int
23: ireturn
24: StackMap locals:
StackMap stack:
iload 5
iload 6
iadd
istore 5
25: iload 2
iload 6
iadd
istore 2
26: iload 3
iload 6
isub
istore 3
end local 6 27: iload 3
28: ifgt 19
29: 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 30 0 this Lorg/postgresql/core/VisibleBufferedInputStream;
0 30 1 to [B
0 30 2 off I
0 30 3 len I
5 30 4 avail I
17 30 5 read I
20 27 6 r I
Exceptions:
throws java.io.IOException
MethodParameters:
Name Flags
to
off
len
public long skip(long);
descriptor: (J)J
flags: (0x0001) ACC_PUBLIC
Code:
stack=5, locals=4, args_size=2
start local 0 start local 1 0: aload 0
getfield org.postgresql.core.VisibleBufferedInputStream.endIndex:I
aload 0
getfield org.postgresql.core.VisibleBufferedInputStream.index:I
isub
istore 3
start local 3 1: iload 3
i2l
lload 1
lcmp
iflt 4
2: aload 0
dup
getfield org.postgresql.core.VisibleBufferedInputStream.index:I
i2l
lload 1
ladd
l2i
putfield org.postgresql.core.VisibleBufferedInputStream.index:I
3: lload 1
lreturn
4: StackMap locals: int
StackMap stack:
lload 1
iload 3
i2l
lsub
lstore 1
5: aload 0
iconst_0
putfield org.postgresql.core.VisibleBufferedInputStream.index:I
6: aload 0
iconst_0
putfield org.postgresql.core.VisibleBufferedInputStream.endIndex:I
7: iload 3
i2l
aload 0
getfield org.postgresql.core.VisibleBufferedInputStream.wrapped:Ljava/io/InputStream;
lload 1
invokevirtual java.io.InputStream.skip:(J)J
ladd
lreturn
end local 3 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 8 0 this Lorg/postgresql/core/VisibleBufferedInputStream;
0 8 1 n J
1 8 3 avail I
Exceptions:
throws java.io.IOException
MethodParameters:
Name Flags
n
public int available();
descriptor: ()I
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=2, args_size=1
start local 0 0: aload 0
getfield org.postgresql.core.VisibleBufferedInputStream.endIndex:I
aload 0
getfield org.postgresql.core.VisibleBufferedInputStream.index:I
isub
istore 1
start local 1 1: iload 1
ifle 2
iload 1
goto 3
StackMap locals: int
StackMap stack:
2: aload 0
getfield org.postgresql.core.VisibleBufferedInputStream.wrapped:Ljava/io/InputStream;
invokevirtual java.io.InputStream.available:()I
StackMap locals:
StackMap stack: int
3: ireturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Lorg/postgresql/core/VisibleBufferedInputStream;
1 4 1 avail I
Exceptions:
throws java.io.IOException
public void close();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield org.postgresql.core.VisibleBufferedInputStream.wrapped:Ljava/io/InputStream;
invokevirtual java.io.InputStream.close:()V
1: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lorg/postgresql/core/VisibleBufferedInputStream;
Exceptions:
throws java.io.IOException
public byte[] getBuffer();
descriptor: ()[B
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield org.postgresql.core.VisibleBufferedInputStream.buffer:[B
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/postgresql/core/VisibleBufferedInputStream;
public int getIndex();
descriptor: ()I
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield org.postgresql.core.VisibleBufferedInputStream.index:I
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/postgresql/core/VisibleBufferedInputStream;
public int scanCStringLength();
descriptor: ()I
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=2, args_size=1
start local 0 0: aload 0
getfield org.postgresql.core.VisibleBufferedInputStream.index:I
istore 1
start local 1 1: goto 4
2: StackMap locals: int
StackMap stack:
aload 0
getfield org.postgresql.core.VisibleBufferedInputStream.buffer:[B
iload 1
iinc 1 1
baload
ifne 4
3: iload 1
aload 0
getfield org.postgresql.core.VisibleBufferedInputStream.index:I
isub
ireturn
4: StackMap locals:
StackMap stack:
iload 1
aload 0
getfield org.postgresql.core.VisibleBufferedInputStream.endIndex:I
if_icmplt 2
5: aload 0
sipush 1024
invokevirtual org.postgresql.core.VisibleBufferedInputStream.readMore:(I)Z
ifne 7
6: new java.io.EOFException
dup
invokespecial java.io.EOFException.<init>:()V
athrow
7: StackMap locals:
StackMap stack:
aload 0
getfield org.postgresql.core.VisibleBufferedInputStream.index:I
istore 1
8: goto 4
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 9 0 this Lorg/postgresql/core/VisibleBufferedInputStream;
1 9 1 pos I
Exceptions:
throws java.io.IOException
}
SourceFile: "VisibleBufferedInputStream.java"