public class org.apache.tomcat.util.net.NioChannel implements java.nio.channels.ByteChannel, java.nio.channels.ScatteringByteChannel, java.nio.channels.GatheringByteChannel
minor version: 0
major version: 59
flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
this_class: org.apache.tomcat.util.net.NioChannel
super_class: java.lang.Object
{
protected static final org.apache.tomcat.util.res.StringManager sm;
descriptor: Lorg/apache/tomcat/util/res/StringManager;
flags: (0x001c) ACC_PROTECTED, ACC_STATIC, ACC_FINAL
protected static final java.nio.ByteBuffer emptyBuf;
descriptor: Ljava/nio/ByteBuffer;
flags: (0x001c) ACC_PROTECTED, ACC_STATIC, ACC_FINAL
protected final org.apache.tomcat.util.net.SocketBufferHandler bufHandler;
descriptor: Lorg/apache/tomcat/util/net/SocketBufferHandler;
flags: (0x0014) ACC_PROTECTED, ACC_FINAL
protected java.nio.channels.SocketChannel sc;
descriptor: Ljava/nio/channels/SocketChannel;
flags: (0x0004) ACC_PROTECTED
protected org.apache.tomcat.util.net.NioEndpoint$NioSocketWrapper socketWrapper;
descriptor: Lorg/apache/tomcat/util/net/NioEndpoint$NioSocketWrapper;
flags: (0x0004) ACC_PROTECTED
private org.apache.tomcat.util.net.ApplicationBufferHandler appReadBufHandler;
descriptor: Lorg/apache/tomcat/util/net/ApplicationBufferHandler;
flags: (0x0002) ACC_PRIVATE
static final org.apache.tomcat.util.net.NioChannel CLOSED_NIO_CHANNEL;
descriptor: Lorg/apache/tomcat/util/net/NioChannel;
flags: (0x0018) ACC_STATIC, ACC_FINAL
static void <clinit>();
descriptor: ()V
flags: (0x0008) ACC_STATIC
Code:
stack=3, locals=0, args_size=0
0: ldc Lorg/apache/tomcat/util/net/NioChannel;
invokestatic org.apache.tomcat.util.res.StringManager.getManager:(Ljava/lang/Class;)Lorg/apache/tomcat/util/res/StringManager;
putstatic org.apache.tomcat.util.net.NioChannel.sm:Lorg/apache/tomcat/util/res/StringManager;
1: iconst_0
invokestatic java.nio.ByteBuffer.allocate:(I)Ljava/nio/ByteBuffer;
putstatic org.apache.tomcat.util.net.NioChannel.emptyBuf:Ljava/nio/ByteBuffer;
2: new org.apache.tomcat.util.net.NioChannel$1
dup
getstatic org.apache.tomcat.util.net.SocketBufferHandler.EMPTY:Lorg/apache/tomcat/util/net/SocketBufferHandler;
invokespecial org.apache.tomcat.util.net.NioChannel$1.<init>:(Lorg/apache/tomcat/util/net/SocketBufferHandler;)V
putstatic org.apache.tomcat.util.net.NioChannel.CLOSED_NIO_CHANNEL:Lorg/apache/tomcat/util/net/NioChannel;
3: return
LocalVariableTable:
Start End Slot Name Signature
public void <init>(org.apache.tomcat.util.net.SocketBufferHandler);
descriptor: (Lorg/apache/tomcat/util/net/SocketBufferHandler;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 0
invokespecial java.lang.Object.<init>:()V
1: aload 0
aconst_null
putfield org.apache.tomcat.util.net.NioChannel.sc:Ljava/nio/channels/SocketChannel;
2: aload 0
aconst_null
putfield org.apache.tomcat.util.net.NioChannel.socketWrapper:Lorg/apache/tomcat/util/net/NioEndpoint$NioSocketWrapper;
3: aload 0
aload 1
putfield org.apache.tomcat.util.net.NioChannel.bufHandler:Lorg/apache/tomcat/util/net/SocketBufferHandler;
4: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 this Lorg/apache/tomcat/util/net/NioChannel;
0 5 1 bufHandler Lorg/apache/tomcat/util/net/SocketBufferHandler;
MethodParameters:
Name Flags
bufHandler
public void reset(java.nio.channels.SocketChannel, org.apache.tomcat.util.net.NioEndpoint$NioSocketWrapper);
descriptor: (Ljava/nio/channels/SocketChannel;Lorg/apache/tomcat/util/net/NioEndpoint$NioSocketWrapper;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=3, args_size=3
start local 0 start local 1 start local 2 0: aload 0
aload 1
putfield org.apache.tomcat.util.net.NioChannel.sc:Ljava/nio/channels/SocketChannel;
1: aload 0
aload 2
putfield org.apache.tomcat.util.net.NioChannel.socketWrapper:Lorg/apache/tomcat/util/net/NioEndpoint$NioSocketWrapper;
2: aload 0
getfield org.apache.tomcat.util.net.NioChannel.bufHandler:Lorg/apache/tomcat/util/net/SocketBufferHandler;
invokevirtual org.apache.tomcat.util.net.SocketBufferHandler.reset:()V
3: return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Lorg/apache/tomcat/util/net/NioChannel;
0 4 1 channel Ljava/nio/channels/SocketChannel;
0 4 2 socketWrapper Lorg/apache/tomcat/util/net/NioEndpoint$NioSocketWrapper;
Exceptions:
throws java.io.IOException
MethodParameters:
Name Flags
channel
socketWrapper
org.apache.tomcat.util.net.NioEndpoint$NioSocketWrapper getSocketWrapper();
descriptor: ()Lorg/apache/tomcat/util/net/NioEndpoint$NioSocketWrapper;
flags: (0x0000)
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield org.apache.tomcat.util.net.NioChannel.socketWrapper:Lorg/apache/tomcat/util/net/NioEndpoint$NioSocketWrapper;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/apache/tomcat/util/net/NioChannel;
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.NioChannel.bufHandler:Lorg/apache/tomcat/util/net/SocketBufferHandler;
invokevirtual org.apache.tomcat.util.net.SocketBufferHandler.free:()V
1: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lorg/apache/tomcat/util/net/NioChannel;
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.apache.tomcat.util.net.NioChannel.sc:Ljava/nio/channels/SocketChannel;
invokevirtual java.nio.channels.SocketChannel.close:()V
1: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lorg/apache/tomcat/util/net/NioChannel;
Exceptions:
throws java.io.IOException
public void close(boolean);
descriptor: (Z)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=2, args_size=2
start local 0 start local 1 0: aload 0
invokevirtual org.apache.tomcat.util.net.NioChannel.isOpen:()Z
ifne 1
iload 1
ifeq 2
1: StackMap locals:
StackMap stack:
aload 0
invokevirtual org.apache.tomcat.util.net.NioChannel.close:()V
2: StackMap locals:
StackMap stack:
return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lorg/apache/tomcat/util/net/NioChannel;
0 3 1 force Z
Exceptions:
throws java.io.IOException
MethodParameters:
Name Flags
force
public boolean isOpen();
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.NioChannel.sc:Ljava/nio/channels/SocketChannel;
invokevirtual java.nio.channels.SocketChannel.isOpen:()Z
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/apache/tomcat/util/net/NioChannel;
public int write(java.nio.ByteBuffer);
descriptor: (Ljava/nio/ByteBuffer;)I
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 0
invokevirtual org.apache.tomcat.util.net.NioChannel.checkInterruptStatus:()V
1: aload 0
getfield org.apache.tomcat.util.net.NioChannel.sc:Ljava/nio/channels/SocketChannel;
aload 1
invokevirtual java.nio.channels.SocketChannel.write:(Ljava/nio/ByteBuffer;)I
ireturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lorg/apache/tomcat/util/net/NioChannel;
0 2 1 src Ljava/nio/ByteBuffer;
Exceptions:
throws java.io.IOException
MethodParameters:
Name Flags
src
public long write(java.nio.ByteBuffer[]);
descriptor: ([Ljava/nio/ByteBuffer;)J
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 org.apache.tomcat.util.net.NioChannel.write:([Ljava/nio/ByteBuffer;II)J
lreturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/apache/tomcat/util/net/NioChannel;
0 1 1 srcs [Ljava/nio/ByteBuffer;
Exceptions:
throws java.io.IOException
MethodParameters:
Name Flags
srcs
public long write(java.nio.ByteBuffer[], int, int);
descriptor: ([Ljava/nio/ByteBuffer;II)J
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=4, args_size=4
start local 0 start local 1 start local 2 start local 3 0: aload 0
invokevirtual org.apache.tomcat.util.net.NioChannel.checkInterruptStatus:()V
1: aload 0
getfield org.apache.tomcat.util.net.NioChannel.sc:Ljava/nio/channels/SocketChannel;
aload 1
iload 2
iload 3
invokevirtual java.nio.channels.SocketChannel.write:([Ljava/nio/ByteBuffer;II)J
lreturn
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lorg/apache/tomcat/util/net/NioChannel;
0 2 1 srcs [Ljava/nio/ByteBuffer;
0 2 2 offset I
0 2 3 length I
Exceptions:
throws java.io.IOException
MethodParameters:
Name Flags
srcs
offset
length
public int read(java.nio.ByteBuffer);
descriptor: (Ljava/nio/ByteBuffer;)I
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 0
getfield org.apache.tomcat.util.net.NioChannel.sc:Ljava/nio/channels/SocketChannel;
aload 1
invokevirtual java.nio.channels.SocketChannel.read:(Ljava/nio/ByteBuffer;)I
ireturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/apache/tomcat/util/net/NioChannel;
0 1 1 dst Ljava/nio/ByteBuffer;
Exceptions:
throws java.io.IOException
MethodParameters:
Name Flags
dst
public long read(java.nio.ByteBuffer[]);
descriptor: ([Ljava/nio/ByteBuffer;)J
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 org.apache.tomcat.util.net.NioChannel.read:([Ljava/nio/ByteBuffer;II)J
lreturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/apache/tomcat/util/net/NioChannel;
0 1 1 dsts [Ljava/nio/ByteBuffer;
Exceptions:
throws java.io.IOException
MethodParameters:
Name Flags
dsts
public long read(java.nio.ByteBuffer[], int, int);
descriptor: ([Ljava/nio/ByteBuffer;II)J
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=4, args_size=4
start local 0 start local 1 start local 2 start local 3 0: aload 0
getfield org.apache.tomcat.util.net.NioChannel.sc:Ljava/nio/channels/SocketChannel;
aload 1
iload 2
iload 3
invokevirtual java.nio.channels.SocketChannel.read:([Ljava/nio/ByteBuffer;II)J
lreturn
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/apache/tomcat/util/net/NioChannel;
0 1 1 dsts [Ljava/nio/ByteBuffer;
0 1 2 offset I
0 1 3 length I
Exceptions:
throws java.io.IOException
MethodParameters:
Name Flags
dsts
offset
length
public org.apache.tomcat.util.net.SocketBufferHandler getBufHandler();
descriptor: ()Lorg/apache/tomcat/util/net/SocketBufferHandler;
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield org.apache.tomcat.util.net.NioChannel.bufHandler:Lorg/apache/tomcat/util/net/SocketBufferHandler;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/apache/tomcat/util/net/NioChannel;
public java.nio.channels.SocketChannel getIOChannel();
descriptor: ()Ljava/nio/channels/SocketChannel;
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield org.apache.tomcat.util.net.NioChannel.sc:Ljava/nio/channels/SocketChannel;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/apache/tomcat/util/net/NioChannel;
public boolean isClosing();
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 Lorg/apache/tomcat/util/net/NioChannel;
public boolean isHandshakeComplete();
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 Lorg/apache/tomcat/util/net/NioChannel;
public int handshake(boolean, boolean);
descriptor: (ZZ)I
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=3, args_size=3
start local 0 start local 1 start local 2 0: iconst_0
ireturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/apache/tomcat/util/net/NioChannel;
0 1 1 read Z
0 1 2 write Z
Exceptions:
throws java.io.IOException
MethodParameters:
Name Flags
read
write
public java.lang.String toString();
descriptor: ()Ljava/lang/String;
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=1, args_size=1
start local 0 0: new java.lang.StringBuilder
dup
aload 0
invokespecial java.lang.Object.toString:()Ljava/lang/String;
invokestatic java.lang.String.valueOf:(Ljava/lang/Object;)Ljava/lang/String;
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
ldc ":"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
aload 0
getfield org.apache.tomcat.util.net.NioChannel.sc:Ljava/nio/channels/SocketChannel;
invokevirtual java.lang.Object.toString:()Ljava/lang/String;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/apache/tomcat/util/net/NioChannel;
public int getOutboundRemaining();
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 Lorg/apache/tomcat/util/net/NioChannel;
public boolean flushOutbound();
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 Lorg/apache/tomcat/util/net/NioChannel;
Exceptions:
throws java.io.IOException
protected void checkInterruptStatus();
descriptor: ()V
flags: (0x0004) ACC_PROTECTED
Code:
stack=4, locals=1, args_size=1
start local 0 0: invokestatic java.lang.Thread.interrupted:()Z
ifeq 2
1: new java.io.IOException
dup
getstatic org.apache.tomcat.util.net.NioChannel.sm:Lorg/apache/tomcat/util/res/StringManager;
ldc "channel.nio.interrupted"
invokevirtual org.apache.tomcat.util.res.StringManager.getString:(Ljava/lang/String;)Ljava/lang/String;
invokespecial java.io.IOException.<init>:(Ljava/lang/String;)V
athrow
2: StackMap locals:
StackMap stack:
return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lorg/apache/tomcat/util/net/NioChannel;
Exceptions:
throws java.io.IOException
public void setAppReadBufHandler(org.apache.tomcat.util.net.ApplicationBufferHandler);
descriptor: (Lorg/apache/tomcat/util/net/ApplicationBufferHandler;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 0
aload 1
putfield org.apache.tomcat.util.net.NioChannel.appReadBufHandler:Lorg/apache/tomcat/util/net/ApplicationBufferHandler;
1: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lorg/apache/tomcat/util/net/NioChannel;
0 2 1 handler Lorg/apache/tomcat/util/net/ApplicationBufferHandler;
MethodParameters:
Name Flags
handler
protected org.apache.tomcat.util.net.ApplicationBufferHandler getAppReadBufHandler();
descriptor: ()Lorg/apache/tomcat/util/net/ApplicationBufferHandler;
flags: (0x0004) ACC_PROTECTED
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield org.apache.tomcat.util.net.NioChannel.appReadBufHandler:Lorg/apache/tomcat/util/net/ApplicationBufferHandler;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/apache/tomcat/util/net/NioChannel;
}
SourceFile: "NioChannel.java"
NestMembers:
org.apache.tomcat.util.net.NioChannel$1
InnerClasses:
org.apache.tomcat.util.net.NioChannel$1
public NioSocketWrapper = org.apache.tomcat.util.net.NioEndpoint$NioSocketWrapper of org.apache.tomcat.util.net.NioEndpoint