public final class java.nio.channels.Channels
minor version: 0
major version: 59
flags: flags: (0x0031) ACC_PUBLIC, ACC_FINAL, ACC_SUPER
this_class: java.nio.channels.Channels
super_class: java.lang.Object
{
private void <init>();
descriptor: ()V
flags: (0x0002) ACC_PRIVATE
Code:
stack=3, locals=1, args_size=1
start local 0 0: aload 0
invokespecial java.lang.Object.<init>:()V
new java.lang.Error
dup
ldc "no instances"
invokespecial java.lang.Error.<init>:(Ljava/lang/String;)V
athrow
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Ljava/nio/channels/Channels;
private static void writeFullyImpl(java.nio.channels.WritableByteChannel, java.nio.ByteBuffer);
descriptor: (Ljava/nio/channels/WritableByteChannel;Ljava/nio/ByteBuffer;)V
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=3, locals=3, args_size=2
start local 0 start local 1 0: goto 4
1: StackMap locals:
StackMap stack:
aload 0
aload 1
invokeinterface java.nio.channels.WritableByteChannel.write:(Ljava/nio/ByteBuffer;)I
istore 2
start local 2 2: iload 2
ifgt 4
3: new java.lang.RuntimeException
dup
ldc "no bytes written"
invokespecial java.lang.RuntimeException.<init>:(Ljava/lang/String;)V
athrow
end local 2 4: StackMap locals:
StackMap stack:
aload 1
invokevirtual java.nio.ByteBuffer.remaining:()I
ifgt 1
5: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 6 0 ch Ljava/nio/channels/WritableByteChannel;
0 6 1 bb Ljava/nio/ByteBuffer;
2 4 2 n I
Exceptions:
throws java.io.IOException
MethodParameters:
Name Flags
ch
bb
private static void writeFully(java.nio.channels.WritableByteChannel, java.nio.ByteBuffer);
descriptor: (Ljava/nio/channels/WritableByteChannel;Ljava/nio/ByteBuffer;)V
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=2, locals=4, args_size=2
start local 0 start local 1 0: aload 0
instanceof java.nio.channels.SelectableChannel
ifeq 10
1: aload 0
checkcast java.nio.channels.SelectableChannel
astore 2
start local 2 2: aload 2
invokevirtual java.nio.channels.SelectableChannel.blockingLock:()Ljava/lang/Object;
dup
astore 3
monitorenter
3: aload 2
invokevirtual java.nio.channels.SelectableChannel.isBlocking:()Z
ifne 5
4: new java.nio.channels.IllegalBlockingModeException
dup
invokespecial java.nio.channels.IllegalBlockingModeException.<init>:()V
athrow
5: StackMap locals: java.nio.channels.SelectableChannel java.lang.Object
StackMap stack:
aload 0
aload 1
invokestatic java.nio.channels.Channels.writeFullyImpl:(Ljava/nio/channels/WritableByteChannel;Ljava/nio/ByteBuffer;)V
6: aload 3
monitorexit
7: goto 11
StackMap locals:
StackMap stack: java.lang.Throwable
8: aload 3
monitorexit
9: athrow
end local 2 10: StackMap locals:
StackMap stack:
aload 0
aload 1
invokestatic java.nio.channels.Channels.writeFullyImpl:(Ljava/nio/channels/WritableByteChannel;Ljava/nio/ByteBuffer;)V
11: StackMap locals:
StackMap stack:
return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 12 0 ch Ljava/nio/channels/WritableByteChannel;
0 12 1 bb Ljava/nio/ByteBuffer;
2 10 2 sc Ljava/nio/channels/SelectableChannel;
Exception table:
from to target type
3 7 8 any
8 9 8 any
Exceptions:
throws java.io.IOException
MethodParameters:
Name Flags
ch
bb
public static java.io.InputStream newInputStream(java.nio.channels.ReadableByteChannel);
descriptor: (Ljava/nio/channels/ReadableByteChannel;)Ljava/io/InputStream;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=3, locals=1, args_size=1
start local 0 0: aload 0
ldc "ch"
invokestatic java.util.Objects.requireNonNull:(Ljava/lang/Object;Ljava/lang/String;)Ljava/lang/Object;
pop
1: new sun.nio.ch.ChannelInputStream
dup
aload 0
invokespecial sun.nio.ch.ChannelInputStream.<init>:(Ljava/nio/channels/ReadableByteChannel;)V
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 ch Ljava/nio/channels/ReadableByteChannel;
MethodParameters:
Name Flags
ch
public static java.io.OutputStream newOutputStream(java.nio.channels.WritableByteChannel);
descriptor: (Ljava/nio/channels/WritableByteChannel;)Ljava/io/OutputStream;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=3, locals=1, args_size=1
start local 0 0: aload 0
ldc "ch"
invokestatic java.util.Objects.requireNonNull:(Ljava/lang/Object;Ljava/lang/String;)Ljava/lang/Object;
pop
1: new java.nio.channels.Channels$1
dup
aload 0
invokespecial java.nio.channels.Channels$1.<init>:(Ljava/nio/channels/WritableByteChannel;)V
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 ch Ljava/nio/channels/WritableByteChannel;
MethodParameters:
Name Flags
ch
public static java.io.InputStream newInputStream(java.nio.channels.AsynchronousByteChannel);
descriptor: (Ljava/nio/channels/AsynchronousByteChannel;)Ljava/io/InputStream;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=3, locals=1, args_size=1
start local 0 0: aload 0
ldc "ch"
invokestatic java.util.Objects.requireNonNull:(Ljava/lang/Object;Ljava/lang/String;)Ljava/lang/Object;
pop
1: new java.nio.channels.Channels$2
dup
aload 0
invokespecial java.nio.channels.Channels$2.<init>:(Ljava/nio/channels/AsynchronousByteChannel;)V
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 ch Ljava/nio/channels/AsynchronousByteChannel;
MethodParameters:
Name Flags
ch
public static java.io.OutputStream newOutputStream(java.nio.channels.AsynchronousByteChannel);
descriptor: (Ljava/nio/channels/AsynchronousByteChannel;)Ljava/io/OutputStream;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=3, locals=1, args_size=1
start local 0 0: aload 0
ldc "ch"
invokestatic java.util.Objects.requireNonNull:(Ljava/lang/Object;Ljava/lang/String;)Ljava/lang/Object;
pop
1: new java.nio.channels.Channels$3
dup
aload 0
invokespecial java.nio.channels.Channels$3.<init>:(Ljava/nio/channels/AsynchronousByteChannel;)V
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 ch Ljava/nio/channels/AsynchronousByteChannel;
MethodParameters:
Name Flags
ch
public static java.nio.channels.ReadableByteChannel newChannel(java.io.InputStream);
descriptor: (Ljava/io/InputStream;)Ljava/nio/channels/ReadableByteChannel;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=3, locals=1, args_size=1
start local 0 0: aload 0
ldc "in"
invokestatic java.util.Objects.requireNonNull:(Ljava/lang/Object;Ljava/lang/String;)Ljava/lang/Object;
pop
1: aload 0
invokevirtual java.lang.Object.getClass:()Ljava/lang/Class;
ldc Ljava/io/FileInputStream;
if_acmpne 3
2: aload 0
checkcast java.io.FileInputStream
invokevirtual java.io.FileInputStream.getChannel:()Ljava/nio/channels/FileChannel;
areturn
3: StackMap locals:
StackMap stack:
new java.nio.channels.Channels$ReadableByteChannelImpl
dup
aload 0
invokespecial java.nio.channels.Channels$ReadableByteChannelImpl.<init>:(Ljava/io/InputStream;)V
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 in Ljava/io/InputStream;
MethodParameters:
Name Flags
in
public static java.nio.channels.WritableByteChannel newChannel(java.io.OutputStream);
descriptor: (Ljava/io/OutputStream;)Ljava/nio/channels/WritableByteChannel;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=3, locals=1, args_size=1
start local 0 0: aload 0
ldc "out"
invokestatic java.util.Objects.requireNonNull:(Ljava/lang/Object;Ljava/lang/String;)Ljava/lang/Object;
pop
1: aload 0
invokevirtual java.lang.Object.getClass:()Ljava/lang/Class;
ldc Ljava/io/FileOutputStream;
if_acmpne 3
2: aload 0
checkcast java.io.FileOutputStream
invokevirtual java.io.FileOutputStream.getChannel:()Ljava/nio/channels/FileChannel;
areturn
3: StackMap locals:
StackMap stack:
new java.nio.channels.Channels$WritableByteChannelImpl
dup
aload 0
invokespecial java.nio.channels.Channels$WritableByteChannelImpl.<init>:(Ljava/io/OutputStream;)V
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 out Ljava/io/OutputStream;
MethodParameters:
Name Flags
out
public static java.io.Reader newReader(java.nio.channels.ReadableByteChannel, java.nio.charset.CharsetDecoder, int);
descriptor: (Ljava/nio/channels/ReadableByteChannel;Ljava/nio/charset/CharsetDecoder;I)Ljava/io/Reader;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=3, locals=3, args_size=3
start local 0 start local 1 start local 2 0: aload 0
ldc "ch"
invokestatic java.util.Objects.requireNonNull:(Ljava/lang/Object;Ljava/lang/String;)Ljava/lang/Object;
pop
1: aload 0
aload 1
invokevirtual java.nio.charset.CharsetDecoder.reset:()Ljava/nio/charset/CharsetDecoder;
iload 2
invokestatic sun.nio.cs.StreamDecoder.forDecoder:(Ljava/nio/channels/ReadableByteChannel;Ljava/nio/charset/CharsetDecoder;I)Lsun/nio/cs/StreamDecoder;
areturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 ch Ljava/nio/channels/ReadableByteChannel;
0 2 1 dec Ljava/nio/charset/CharsetDecoder;
0 2 2 minBufferCap I
MethodParameters:
Name Flags
ch
dec
minBufferCap
public static java.io.Reader newReader(java.nio.channels.ReadableByteChannel, java.lang.String);
descriptor: (Ljava/nio/channels/ReadableByteChannel;Ljava/lang/String;)Ljava/io/Reader;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=3, locals=2, args_size=2
start local 0 start local 1 0: aload 1
ldc "csName"
invokestatic java.util.Objects.requireNonNull:(Ljava/lang/Object;Ljava/lang/String;)Ljava/lang/Object;
pop
1: aload 0
aload 1
invokestatic java.nio.charset.Charset.forName:(Ljava/lang/String;)Ljava/nio/charset/Charset;
invokevirtual java.nio.charset.Charset.newDecoder:()Ljava/nio/charset/CharsetDecoder;
iconst_m1
invokestatic java.nio.channels.Channels.newReader:(Ljava/nio/channels/ReadableByteChannel;Ljava/nio/charset/CharsetDecoder;I)Ljava/io/Reader;
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 ch Ljava/nio/channels/ReadableByteChannel;
0 2 1 csName Ljava/lang/String;
MethodParameters:
Name Flags
ch
csName
public static java.io.Reader newReader(java.nio.channels.ReadableByteChannel, java.nio.charset.Charset);
descriptor: (Ljava/nio/channels/ReadableByteChannel;Ljava/nio/charset/Charset;)Ljava/io/Reader;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=3, locals=2, args_size=2
start local 0 start local 1 0: aload 1
ldc "charset"
invokestatic java.util.Objects.requireNonNull:(Ljava/lang/Object;Ljava/lang/String;)Ljava/lang/Object;
pop
1: aload 0
aload 1
invokevirtual java.nio.charset.Charset.newDecoder:()Ljava/nio/charset/CharsetDecoder;
iconst_m1
invokestatic java.nio.channels.Channels.newReader:(Ljava/nio/channels/ReadableByteChannel;Ljava/nio/charset/CharsetDecoder;I)Ljava/io/Reader;
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 ch Ljava/nio/channels/ReadableByteChannel;
0 2 1 charset Ljava/nio/charset/Charset;
MethodParameters:
Name Flags
ch
charset
public static java.io.Writer newWriter(java.nio.channels.WritableByteChannel, java.nio.charset.CharsetEncoder, int);
descriptor: (Ljava/nio/channels/WritableByteChannel;Ljava/nio/charset/CharsetEncoder;I)Ljava/io/Writer;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=3, locals=3, args_size=3
start local 0 start local 1 start local 2 0: aload 0
ldc "ch"
invokestatic java.util.Objects.requireNonNull:(Ljava/lang/Object;Ljava/lang/String;)Ljava/lang/Object;
pop
1: aload 0
aload 1
invokevirtual java.nio.charset.CharsetEncoder.reset:()Ljava/nio/charset/CharsetEncoder;
iload 2
invokestatic sun.nio.cs.StreamEncoder.forEncoder:(Ljava/nio/channels/WritableByteChannel;Ljava/nio/charset/CharsetEncoder;I)Lsun/nio/cs/StreamEncoder;
areturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 ch Ljava/nio/channels/WritableByteChannel;
0 2 1 enc Ljava/nio/charset/CharsetEncoder;
0 2 2 minBufferCap I
MethodParameters:
Name Flags
ch
enc
minBufferCap
public static java.io.Writer newWriter(java.nio.channels.WritableByteChannel, java.lang.String);
descriptor: (Ljava/nio/channels/WritableByteChannel;Ljava/lang/String;)Ljava/io/Writer;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=3, locals=2, args_size=2
start local 0 start local 1 0: aload 1
ldc "csName"
invokestatic java.util.Objects.requireNonNull:(Ljava/lang/Object;Ljava/lang/String;)Ljava/lang/Object;
pop
1: aload 0
aload 1
invokestatic java.nio.charset.Charset.forName:(Ljava/lang/String;)Ljava/nio/charset/Charset;
invokevirtual java.nio.charset.Charset.newEncoder:()Ljava/nio/charset/CharsetEncoder;
iconst_m1
invokestatic java.nio.channels.Channels.newWriter:(Ljava/nio/channels/WritableByteChannel;Ljava/nio/charset/CharsetEncoder;I)Ljava/io/Writer;
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 ch Ljava/nio/channels/WritableByteChannel;
0 2 1 csName Ljava/lang/String;
MethodParameters:
Name Flags
ch
csName
public static java.io.Writer newWriter(java.nio.channels.WritableByteChannel, java.nio.charset.Charset);
descriptor: (Ljava/nio/channels/WritableByteChannel;Ljava/nio/charset/Charset;)Ljava/io/Writer;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=3, locals=2, args_size=2
start local 0 start local 1 0: aload 1
ldc "charset"
invokestatic java.util.Objects.requireNonNull:(Ljava/lang/Object;Ljava/lang/String;)Ljava/lang/Object;
pop
1: aload 0
aload 1
invokevirtual java.nio.charset.Charset.newEncoder:()Ljava/nio/charset/CharsetEncoder;
iconst_m1
invokestatic java.nio.channels.Channels.newWriter:(Ljava/nio/channels/WritableByteChannel;Ljava/nio/charset/CharsetEncoder;I)Ljava/io/Writer;
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 ch Ljava/nio/channels/WritableByteChannel;
0 2 1 charset Ljava/nio/charset/Charset;
MethodParameters:
Name Flags
ch
charset
}
SourceFile: "Channels.java"
NestMembers:
java.nio.channels.Channels$1 java.nio.channels.Channels$2 java.nio.channels.Channels$3 java.nio.channels.Channels$ReadableByteChannelImpl java.nio.channels.Channels$WritableByteChannelImpl
InnerClasses:
java.nio.channels.Channels$1
java.nio.channels.Channels$2
java.nio.channels.Channels$3
private ReadableByteChannelImpl = java.nio.channels.Channels$ReadableByteChannelImpl of java.nio.channels.Channels
private WritableByteChannelImpl = java.nio.channels.Channels$WritableByteChannelImpl of java.nio.channels.Channels