public class org.apache.tomcat.util.net.SocketBufferHandler
minor version: 0
major version: 59
flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
this_class: org.apache.tomcat.util.net.SocketBufferHandler
super_class: java.lang.Object
{
static org.apache.tomcat.util.net.SocketBufferHandler EMPTY;
descriptor: Lorg/apache/tomcat/util/net/SocketBufferHandler;
flags: (0x0008) ACC_STATIC
private volatile boolean readBufferConfiguredForWrite;
descriptor: Z
flags: (0x0042) ACC_PRIVATE, ACC_VOLATILE
private volatile java.nio.ByteBuffer readBuffer;
descriptor: Ljava/nio/ByteBuffer;
flags: (0x0042) ACC_PRIVATE, ACC_VOLATILE
private volatile boolean writeBufferConfiguredForWrite;
descriptor: Z
flags: (0x0042) ACC_PRIVATE, ACC_VOLATILE
private volatile java.nio.ByteBuffer writeBuffer;
descriptor: Ljava/nio/ByteBuffer;
flags: (0x0042) ACC_PRIVATE, ACC_VOLATILE
private final boolean direct;
descriptor: Z
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
static void <clinit>();
descriptor: ()V
flags: (0x0008) ACC_STATIC
Code:
stack=5, locals=0, args_size=0
0: new org.apache.tomcat.util.net.SocketBufferHandler$1
dup
iconst_0
iconst_0
iconst_0
invokespecial org.apache.tomcat.util.net.SocketBufferHandler$1.<init>:(IIZ)V
putstatic org.apache.tomcat.util.net.SocketBufferHandler.EMPTY:Lorg/apache/tomcat/util/net/SocketBufferHandler;
1: return
LocalVariableTable:
Start End Slot Name Signature
public void <init>(int, int, boolean);
descriptor: (IIZ)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.lang.Object.<init>:()V
1: aload 0
iconst_1
putfield org.apache.tomcat.util.net.SocketBufferHandler.readBufferConfiguredForWrite:Z
2: aload 0
iconst_1
putfield org.apache.tomcat.util.net.SocketBufferHandler.writeBufferConfiguredForWrite:Z
3: aload 0
iload 3
putfield org.apache.tomcat.util.net.SocketBufferHandler.direct:Z
4: iload 3
ifeq 8
5: aload 0
iload 1
invokestatic java.nio.ByteBuffer.allocateDirect:(I)Ljava/nio/ByteBuffer;
putfield org.apache.tomcat.util.net.SocketBufferHandler.readBuffer:Ljava/nio/ByteBuffer;
6: aload 0
iload 2
invokestatic java.nio.ByteBuffer.allocateDirect:(I)Ljava/nio/ByteBuffer;
putfield org.apache.tomcat.util.net.SocketBufferHandler.writeBuffer:Ljava/nio/ByteBuffer;
7: goto 10
8: StackMap locals: org.apache.tomcat.util.net.SocketBufferHandler int int int
StackMap stack:
aload 0
iload 1
invokestatic java.nio.ByteBuffer.allocate:(I)Ljava/nio/ByteBuffer;
putfield org.apache.tomcat.util.net.SocketBufferHandler.readBuffer:Ljava/nio/ByteBuffer;
9: aload 0
iload 2
invokestatic java.nio.ByteBuffer.allocate:(I)Ljava/nio/ByteBuffer;
putfield org.apache.tomcat.util.net.SocketBufferHandler.writeBuffer:Ljava/nio/ByteBuffer;
10: StackMap locals:
StackMap stack:
return
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 11 0 this Lorg/apache/tomcat/util/net/SocketBufferHandler;
0 11 1 readBufferSize I
0 11 2 writeBufferSize I
0 11 3 direct Z
MethodParameters:
Name Flags
readBufferSize
writeBufferSize
direct
public void configureReadBufferForWrite();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=1, args_size=1
start local 0 0: aload 0
iconst_1
invokevirtual org.apache.tomcat.util.net.SocketBufferHandler.setReadBufferConfiguredForWrite:(Z)V
1: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lorg/apache/tomcat/util/net/SocketBufferHandler;
public void configureReadBufferForRead();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=1, args_size=1
start local 0 0: aload 0
iconst_0
invokevirtual org.apache.tomcat.util.net.SocketBufferHandler.setReadBufferConfiguredForWrite:(Z)V
1: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lorg/apache/tomcat/util/net/SocketBufferHandler;
private void setReadBufferConfiguredForWrite(boolean);
descriptor: (Z)V
flags: (0x0002) ACC_PRIVATE
Code:
stack=2, locals=3, args_size=2
start local 0 start local 1 0: aload 0
getfield org.apache.tomcat.util.net.SocketBufferHandler.readBufferConfiguredForWrite:Z
iload 1
if_icmpeq 10
1: iload 1
ifeq 8
2: aload 0
getfield org.apache.tomcat.util.net.SocketBufferHandler.readBuffer:Ljava/nio/ByteBuffer;
invokevirtual java.nio.ByteBuffer.remaining:()I
istore 2
start local 2 3: iload 2
ifne 6
4: aload 0
getfield org.apache.tomcat.util.net.SocketBufferHandler.readBuffer:Ljava/nio/ByteBuffer;
invokevirtual java.nio.ByteBuffer.clear:()Ljava/nio/Buffer;
pop
5: goto 9
6: StackMap locals: int
StackMap stack:
aload 0
getfield org.apache.tomcat.util.net.SocketBufferHandler.readBuffer:Ljava/nio/ByteBuffer;
invokevirtual java.nio.ByteBuffer.compact:()Ljava/nio/ByteBuffer;
pop
end local 2 7: goto 9
8: StackMap locals:
StackMap stack:
aload 0
getfield org.apache.tomcat.util.net.SocketBufferHandler.readBuffer:Ljava/nio/ByteBuffer;
invokevirtual java.nio.ByteBuffer.flip:()Ljava/nio/Buffer;
pop
9: StackMap locals:
StackMap stack:
aload 0
iload 1
putfield org.apache.tomcat.util.net.SocketBufferHandler.readBufferConfiguredForWrite:Z
10: StackMap locals:
StackMap stack:
return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 11 0 this Lorg/apache/tomcat/util/net/SocketBufferHandler;
0 11 1 readBufferConFiguredForWrite Z
3 7 2 remaining I
MethodParameters:
Name Flags
readBufferConFiguredForWrite
public java.nio.ByteBuffer getReadBuffer();
descriptor: ()Ljava/nio/ByteBuffer;
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield org.apache.tomcat.util.net.SocketBufferHandler.readBuffer:Ljava/nio/ByteBuffer;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/apache/tomcat/util/net/SocketBufferHandler;
public boolean isReadBufferEmpty();
descriptor: ()Z
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield org.apache.tomcat.util.net.SocketBufferHandler.readBufferConfiguredForWrite:Z
ifeq 3
1: aload 0
getfield org.apache.tomcat.util.net.SocketBufferHandler.readBuffer:Ljava/nio/ByteBuffer;
invokevirtual java.nio.ByteBuffer.position:()I
ifne 2
iconst_1
ireturn
StackMap locals:
StackMap stack:
2: iconst_0
ireturn
3: StackMap locals:
StackMap stack:
aload 0
getfield org.apache.tomcat.util.net.SocketBufferHandler.readBuffer:Ljava/nio/ByteBuffer;
invokevirtual java.nio.ByteBuffer.remaining:()I
ifne 4
iconst_1
ireturn
StackMap locals:
StackMap stack:
4: iconst_0
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 this Lorg/apache/tomcat/util/net/SocketBufferHandler;
public void configureWriteBufferForWrite();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=1, args_size=1
start local 0 0: aload 0
iconst_1
invokevirtual org.apache.tomcat.util.net.SocketBufferHandler.setWriteBufferConfiguredForWrite:(Z)V
1: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lorg/apache/tomcat/util/net/SocketBufferHandler;
public void configureWriteBufferForRead();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=1, args_size=1
start local 0 0: aload 0
iconst_0
invokevirtual org.apache.tomcat.util.net.SocketBufferHandler.setWriteBufferConfiguredForWrite:(Z)V
1: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lorg/apache/tomcat/util/net/SocketBufferHandler;
private void setWriteBufferConfiguredForWrite(boolean);
descriptor: (Z)V
flags: (0x0002) ACC_PRIVATE
Code:
stack=2, locals=3, args_size=2
start local 0 start local 1 0: aload 0
getfield org.apache.tomcat.util.net.SocketBufferHandler.writeBufferConfiguredForWrite:Z
iload 1
if_icmpeq 12
1: iload 1
ifeq 10
2: aload 0
getfield org.apache.tomcat.util.net.SocketBufferHandler.writeBuffer:Ljava/nio/ByteBuffer;
invokevirtual java.nio.ByteBuffer.remaining:()I
istore 2
start local 2 3: iload 2
ifne 6
4: aload 0
getfield org.apache.tomcat.util.net.SocketBufferHandler.writeBuffer:Ljava/nio/ByteBuffer;
invokevirtual java.nio.ByteBuffer.clear:()Ljava/nio/Buffer;
pop
5: goto 11
6: StackMap locals: int
StackMap stack:
aload 0
getfield org.apache.tomcat.util.net.SocketBufferHandler.writeBuffer:Ljava/nio/ByteBuffer;
invokevirtual java.nio.ByteBuffer.compact:()Ljava/nio/ByteBuffer;
pop
7: aload 0
getfield org.apache.tomcat.util.net.SocketBufferHandler.writeBuffer:Ljava/nio/ByteBuffer;
iload 2
invokevirtual java.nio.ByteBuffer.position:(I)Ljava/nio/Buffer;
pop
8: aload 0
getfield org.apache.tomcat.util.net.SocketBufferHandler.writeBuffer:Ljava/nio/ByteBuffer;
aload 0
getfield org.apache.tomcat.util.net.SocketBufferHandler.writeBuffer:Ljava/nio/ByteBuffer;
invokevirtual java.nio.ByteBuffer.capacity:()I
invokevirtual java.nio.ByteBuffer.limit:(I)Ljava/nio/Buffer;
pop
end local 2 9: goto 11
10: StackMap locals:
StackMap stack:
aload 0
getfield org.apache.tomcat.util.net.SocketBufferHandler.writeBuffer:Ljava/nio/ByteBuffer;
invokevirtual java.nio.ByteBuffer.flip:()Ljava/nio/Buffer;
pop
11: StackMap locals:
StackMap stack:
aload 0
iload 1
putfield org.apache.tomcat.util.net.SocketBufferHandler.writeBufferConfiguredForWrite:Z
12: StackMap locals:
StackMap stack:
return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 13 0 this Lorg/apache/tomcat/util/net/SocketBufferHandler;
0 13 1 writeBufferConfiguredForWrite Z
3 9 2 remaining I
MethodParameters:
Name Flags
writeBufferConfiguredForWrite
public boolean isWriteBufferWritable();
descriptor: ()Z
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield org.apache.tomcat.util.net.SocketBufferHandler.writeBufferConfiguredForWrite:Z
ifeq 2
1: aload 0
getfield org.apache.tomcat.util.net.SocketBufferHandler.writeBuffer:Ljava/nio/ByteBuffer;
invokevirtual java.nio.ByteBuffer.hasRemaining:()Z
ireturn
2: StackMap locals:
StackMap stack:
aload 0
getfield org.apache.tomcat.util.net.SocketBufferHandler.writeBuffer:Ljava/nio/ByteBuffer;
invokevirtual java.nio.ByteBuffer.remaining:()I
ifne 3
iconst_1
ireturn
StackMap locals:
StackMap stack:
3: iconst_0
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Lorg/apache/tomcat/util/net/SocketBufferHandler;
public java.nio.ByteBuffer getWriteBuffer();
descriptor: ()Ljava/nio/ByteBuffer;
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield org.apache.tomcat.util.net.SocketBufferHandler.writeBuffer:Ljava/nio/ByteBuffer;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/apache/tomcat/util/net/SocketBufferHandler;
public boolean isWriteBufferEmpty();
descriptor: ()Z
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield org.apache.tomcat.util.net.SocketBufferHandler.writeBufferConfiguredForWrite:Z
ifeq 3
1: aload 0
getfield org.apache.tomcat.util.net.SocketBufferHandler.writeBuffer:Ljava/nio/ByteBuffer;
invokevirtual java.nio.ByteBuffer.position:()I
ifne 2
iconst_1
ireturn
StackMap locals:
StackMap stack:
2: iconst_0
ireturn
3: StackMap locals:
StackMap stack:
aload 0
getfield org.apache.tomcat.util.net.SocketBufferHandler.writeBuffer:Ljava/nio/ByteBuffer;
invokevirtual java.nio.ByteBuffer.remaining:()I
ifne 4
iconst_1
ireturn
StackMap locals:
StackMap stack:
4: iconst_0
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 this Lorg/apache/tomcat/util/net/SocketBufferHandler;
public void reset();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=1, args_size=1
start local 0 0: aload 0
getfield org.apache.tomcat.util.net.SocketBufferHandler.readBuffer:Ljava/nio/ByteBuffer;
invokevirtual java.nio.ByteBuffer.clear:()Ljava/nio/Buffer;
pop
1: aload 0
iconst_1
putfield org.apache.tomcat.util.net.SocketBufferHandler.readBufferConfiguredForWrite:Z
2: aload 0
getfield org.apache.tomcat.util.net.SocketBufferHandler.writeBuffer:Ljava/nio/ByteBuffer;
invokevirtual java.nio.ByteBuffer.clear:()Ljava/nio/Buffer;
pop
3: aload 0
iconst_1
putfield org.apache.tomcat.util.net.SocketBufferHandler.writeBufferConfiguredForWrite:Z
4: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 this Lorg/apache/tomcat/util/net/SocketBufferHandler;
public void expand(int);
descriptor: (I)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=2, args_size=2
start local 0 start local 1 0: aload 0
invokevirtual org.apache.tomcat.util.net.SocketBufferHandler.configureReadBufferForWrite:()V
1: aload 0
aload 0
getfield org.apache.tomcat.util.net.SocketBufferHandler.readBuffer:Ljava/nio/ByteBuffer;
iload 1
invokestatic org.apache.tomcat.util.buf.ByteBufferUtils.expand:(Ljava/nio/ByteBuffer;I)Ljava/nio/ByteBuffer;
putfield org.apache.tomcat.util.net.SocketBufferHandler.readBuffer:Ljava/nio/ByteBuffer;
2: aload 0
invokevirtual org.apache.tomcat.util.net.SocketBufferHandler.configureWriteBufferForWrite:()V
3: aload 0
aload 0
getfield org.apache.tomcat.util.net.SocketBufferHandler.writeBuffer:Ljava/nio/ByteBuffer;
iload 1
invokestatic org.apache.tomcat.util.buf.ByteBufferUtils.expand:(Ljava/nio/ByteBuffer;I)Ljava/nio/ByteBuffer;
putfield org.apache.tomcat.util.net.SocketBufferHandler.writeBuffer:Ljava/nio/ByteBuffer;
4: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 this Lorg/apache/tomcat/util/net/SocketBufferHandler;
0 5 1 newSize I
MethodParameters:
Name Flags
newSize
public void free();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield org.apache.tomcat.util.net.SocketBufferHandler.direct:Z
ifeq 3
1: aload 0
getfield org.apache.tomcat.util.net.SocketBufferHandler.readBuffer:Ljava/nio/ByteBuffer;
invokestatic org.apache.tomcat.util.buf.ByteBufferUtils.cleanDirectBuffer:(Ljava/nio/ByteBuffer;)V
2: aload 0
getfield org.apache.tomcat.util.net.SocketBufferHandler.writeBuffer:Ljava/nio/ByteBuffer;
invokestatic org.apache.tomcat.util.buf.ByteBufferUtils.cleanDirectBuffer:(Ljava/nio/ByteBuffer;)V
3: StackMap locals:
StackMap stack:
return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Lorg/apache/tomcat/util/net/SocketBufferHandler;
}
SourceFile: "SocketBufferHandler.java"
NestMembers:
org.apache.tomcat.util.net.SocketBufferHandler$1
InnerClasses:
org.apache.tomcat.util.net.SocketBufferHandler$1