class java.nio.channels.Channels$2 extends java.io.InputStream
minor version: 0
major version: 59
flags: flags: (0x0020) ACC_SUPER
this_class: java.nio.channels.Channels$2
super_class: java.io.InputStream
{
private java.nio.ByteBuffer bb;
descriptor: Ljava/nio/ByteBuffer;
flags: (0x0002) ACC_PRIVATE
private byte[] bs;
descriptor: [B
flags: (0x0002) ACC_PRIVATE
private byte[] b1;
descriptor: [B
flags: (0x0002) ACC_PRIVATE
private final java.nio.channels.AsynchronousByteChannel val$ch;
descriptor: Ljava/nio/channels/AsynchronousByteChannel;
flags: (0x1012) ACC_PRIVATE, ACC_FINAL, ACC_SYNTHETIC
void <init>(java.nio.channels.AsynchronousByteChannel);
descriptor: (Ljava/nio/channels/AsynchronousByteChannel;)V
flags: (0x0000)
Code:
stack=2, locals=2, args_size=2
start local 0 0: aload 0
aload 1
putfield java.nio.channels.Channels$2.val$ch:Ljava/nio/channels/AsynchronousByteChannel;
aload 0
invokespecial java.io.InputStream.<init>:()V
1: aload 0
aconst_null
putfield java.nio.channels.Channels$2.bb:Ljava/nio/ByteBuffer;
2: aload 0
aconst_null
putfield java.nio.channels.Channels$2.bs:[B
3: aload 0
aconst_null
putfield java.nio.channels.Channels$2.b1:[B
4: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 this Ljava/nio/channels/Channels$2;
MethodParameters:
Name Flags
val$ch final
public synchronized int read();
descriptor: ()I
flags: (0x0021) ACC_PUBLIC, ACC_SYNCHRONIZED
Code:
stack=2, locals=2, args_size=1
start local 0 0: aload 0
getfield java.nio.channels.Channels$2.b1:[B
ifnonnull 2
1: aload 0
iconst_1
newarray 8
putfield java.nio.channels.Channels$2.b1:[B
2: StackMap locals:
StackMap stack:
aload 0
aload 0
getfield java.nio.channels.Channels$2.b1:[B
invokevirtual java.nio.channels.Channels$2.read:([B)I
istore 1
start local 1 3: iload 1
iconst_1
if_icmpne 5
4: aload 0
getfield java.nio.channels.Channels$2.b1:[B
iconst_0
baload
sipush 255
iand
ireturn
5: StackMap locals: int
StackMap stack:
iconst_m1
ireturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 6 0 this Ljava/nio/channels/Channels$2;
3 6 1 n I
Exceptions:
throws java.io.IOException
public synchronized int read(byte[], int, int);
descriptor: ([BII)I
flags: (0x0021) ACC_PUBLIC, ACC_SYNCHRONIZED
Code:
stack=3, locals=9, args_size=4
start local 0 start local 1 start local 2 start local 3 0: iload 2
iflt 2
iload 2
aload 1
arraylength
if_icmpgt 2
iload 3
iflt 2
1: iload 2
iload 3
iadd
aload 1
arraylength
if_icmpgt 2
iload 2
iload 3
iadd
ifge 3
2: StackMap locals:
StackMap stack:
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:
aload 0
getfield java.nio.channels.Channels$2.bs:[B
aload 1
if_acmpne 7
6: aload 0
getfield java.nio.channels.Channels$2.bb:Ljava/nio/ByteBuffer;
goto 8
7: StackMap locals:
StackMap stack:
aload 1
invokestatic java.nio.ByteBuffer.wrap:([B)Ljava/nio/ByteBuffer;
8: StackMap locals:
StackMap stack: java.nio.ByteBuffer
astore 4
start local 4 9: aload 4
iload 2
invokevirtual java.nio.ByteBuffer.position:(I)Ljava/nio/Buffer;
pop
10: aload 4
iload 2
iload 3
iadd
aload 4
invokevirtual java.nio.ByteBuffer.capacity:()I
invokestatic java.lang.Math.min:(II)I
invokevirtual java.nio.ByteBuffer.limit:(I)Ljava/nio/Buffer;
pop
11: aload 0
aload 4
putfield java.nio.channels.Channels$2.bb:Ljava/nio/ByteBuffer;
12: aload 0
aload 1
putfield java.nio.channels.Channels$2.bs:[B
13: iconst_0
istore 5
start local 5 14: StackMap locals: java.nio.ByteBuffer int
StackMap stack:
aload 0
getfield java.nio.channels.Channels$2.val$ch:Ljava/nio/channels/AsynchronousByteChannel;
aload 4
invokeinterface java.nio.channels.AsynchronousByteChannel.read:(Ljava/nio/ByteBuffer;)Ljava/util/concurrent/Future;
invokeinterface java.util.concurrent.Future.get:()Ljava/lang/Object;
checkcast java.lang.Integer
invokevirtual java.lang.Integer.intValue:()I
istore 8
15: iload 5
ifeq 17
16: invokestatic java.lang.Thread.currentThread:()Ljava/lang/Thread;
invokevirtual java.lang.Thread.interrupt:()V
17: StackMap locals: java.nio.channels.Channels$2 byte[] int int java.nio.ByteBuffer int top top int
StackMap stack:
iload 8
ireturn
18: StackMap locals: java.nio.channels.Channels$2 byte[] int int java.nio.ByteBuffer int
StackMap stack: java.util.concurrent.ExecutionException
astore 6
start local 6 19: new java.io.IOException
dup
aload 6
invokevirtual java.util.concurrent.ExecutionException.getCause:()Ljava/lang/Throwable;
invokespecial java.io.IOException.<init>:(Ljava/lang/Throwable;)V
athrow
end local 6 20: StackMap locals:
StackMap stack: java.lang.InterruptedException
pop
21: iconst_1
istore 5
22: goto 14
23: StackMap locals:
StackMap stack: java.lang.Throwable
astore 7
24: iload 5
ifeq 26
25: invokestatic java.lang.Thread.currentThread:()Ljava/lang/Thread;
invokevirtual java.lang.Thread.interrupt:()V
26: StackMap locals: java.nio.channels.Channels$2 byte[] int int java.nio.ByteBuffer int top java.lang.Throwable
StackMap stack:
aload 7
athrow
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 27 0 this Ljava/nio/channels/Channels$2;
0 27 1 bs [B
0 27 2 off I
0 27 3 len I
9 27 4 bb Ljava/nio/ByteBuffer;
14 27 5 interrupted Z
19 20 6 ee Ljava/util/concurrent/ExecutionException;
Exception table:
from to target type
14 15 18 Class java.util.concurrent.ExecutionException
14 15 20 Class java.lang.InterruptedException
14 15 23 any
18 23 23 any
Exceptions:
throws java.io.IOException
MethodParameters:
Name Flags
bs
off
len
public void close();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield java.nio.channels.Channels$2.val$ch:Ljava/nio/channels/AsynchronousByteChannel;
invokeinterface java.nio.channels.AsynchronousByteChannel.close:()V
1: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Ljava/nio/channels/Channels$2;
Exceptions:
throws java.io.IOException
}
SourceFile: "Channels.java"
EnclosingMethod: java.nio.channels.Channels.newInputStream:(Ljava/nio/channels/AsynchronousByteChannel;)Ljava/io/InputStream;
NestHost: java.nio.channels.Channels
InnerClasses:
java.nio.channels.Channels$2