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 // java.nio.channels.Channels this
         0: .line 64
            aload 0 /* this */
            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 // java.nio.channels.Channels this
      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 // java.nio.channels.WritableByteChannel ch
        start local 1 // java.nio.ByteBuffer bb
         0: .line 73
            goto 4
         1: .line 74
      StackMap locals:
      StackMap stack:
            aload 0 /* ch */
            aload 1 /* bb */
            invokeinterface java.nio.channels.WritableByteChannel.write:(Ljava/nio/ByteBuffer;)I
            istore 2 /* n */
        start local 2 // int n
         2: .line 75
            iload 2 /* n */
            ifgt 4
         3: .line 76
            new java.lang.RuntimeException
            dup
            ldc "no bytes written"
            invokespecial java.lang.RuntimeException.<init>:(Ljava/lang/String;)V
            athrow
        end local 2 // int n
         4: .line 73
      StackMap locals:
      StackMap stack:
            aload 1 /* bb */
            invokevirtual java.nio.ByteBuffer.remaining:()I
            ifgt 1
         5: .line 78
            return
        end local 1 // java.nio.ByteBuffer bb
        end local 0 // java.nio.channels.WritableByteChannel ch
      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 // java.nio.channels.WritableByteChannel ch
        start local 1 // java.nio.ByteBuffer bb
         0: .line 89
            aload 0 /* ch */
            instanceof java.nio.channels.SelectableChannel
            ifeq 10
         1: .line 90
            aload 0 /* ch */
            checkcast java.nio.channels.SelectableChannel
            astore 2 /* sc */
        start local 2 // java.nio.channels.SelectableChannel sc
         2: .line 91
            aload 2 /* sc */
            invokevirtual java.nio.channels.SelectableChannel.blockingLock:()Ljava/lang/Object;
            dup
            astore 3
            monitorenter
         3: .line 92
            aload 2 /* sc */
            invokevirtual java.nio.channels.SelectableChannel.isBlocking:()Z
            ifne 5
         4: .line 93
            new java.nio.channels.IllegalBlockingModeException
            dup
            invokespecial java.nio.channels.IllegalBlockingModeException.<init>:()V
            athrow
         5: .line 94
      StackMap locals: java.nio.channels.SelectableChannel java.lang.Object
      StackMap stack:
            aload 0 /* ch */
            aload 1 /* bb */
            invokestatic java.nio.channels.Channels.writeFullyImpl:(Ljava/nio/channels/WritableByteChannel;Ljava/nio/ByteBuffer;)V
         6: .line 91
            aload 3
            monitorexit
         7: goto 11
      StackMap locals:
      StackMap stack: java.lang.Throwable
         8: aload 3
            monitorexit
         9: athrow
        end local 2 // java.nio.channels.SelectableChannel sc
        10: .line 97
      StackMap locals:
      StackMap stack:
            aload 0 /* ch */
            aload 1 /* bb */
            invokestatic java.nio.channels.Channels.writeFullyImpl:(Ljava/nio/channels/WritableByteChannel;Ljava/nio/ByteBuffer;)V
        11: .line 99
      StackMap locals:
      StackMap stack:
            return
        end local 1 // java.nio.ByteBuffer bb
        end local 0 // java.nio.channels.WritableByteChannel ch
      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 // java.nio.channels.ReadableByteChannel ch
         0: .line 120
            aload 0 /* ch */
            ldc "ch"
            invokestatic java.util.Objects.requireNonNull:(Ljava/lang/Object;Ljava/lang/String;)Ljava/lang/Object;
            pop
         1: .line 121
            new sun.nio.ch.ChannelInputStream
            dup
            aload 0 /* ch */
            invokespecial sun.nio.ch.ChannelInputStream.<init>:(Ljava/nio/channels/ReadableByteChannel;)V
            areturn
        end local 0 // java.nio.channels.ReadableByteChannel ch
      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 // java.nio.channels.WritableByteChannel ch
         0: .line 139
            aload 0 /* ch */
            ldc "ch"
            invokestatic java.util.Objects.requireNonNull:(Ljava/lang/Object;Ljava/lang/String;)Ljava/lang/Object;
            pop
         1: .line 141
            new java.nio.channels.Channels$1
            dup
            aload 0 /* ch */
            invokespecial java.nio.channels.Channels$1.<init>:(Ljava/nio/channels/WritableByteChannel;)V
            areturn
        end local 0 // java.nio.channels.WritableByteChannel ch
      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 // java.nio.channels.AsynchronousByteChannel ch
         0: .line 199
            aload 0 /* ch */
            ldc "ch"
            invokestatic java.util.Objects.requireNonNull:(Ljava/lang/Object;Ljava/lang/String;)Ljava/lang/Object;
            pop
         1: .line 200
            new java.nio.channels.Channels$2
            dup
            aload 0 /* ch */
            invokespecial java.nio.channels.Channels$2.<init>:(Ljava/nio/channels/AsynchronousByteChannel;)V
            areturn
        end local 0 // java.nio.channels.AsynchronousByteChannel ch
      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 // java.nio.channels.AsynchronousByteChannel ch
         0: .line 274
            aload 0 /* ch */
            ldc "ch"
            invokestatic java.util.Objects.requireNonNull:(Ljava/lang/Object;Ljava/lang/String;)Ljava/lang/Object;
            pop
         1: .line 275
            new java.nio.channels.Channels$3
            dup
            aload 0 /* ch */
            invokespecial java.nio.channels.Channels$3.<init>:(Ljava/nio/channels/AsynchronousByteChannel;)V
            areturn
        end local 0 // java.nio.channels.AsynchronousByteChannel ch
      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 // java.io.InputStream in
         0: .line 347
            aload 0 /* in */
            ldc "in"
            invokestatic java.util.Objects.requireNonNull:(Ljava/lang/Object;Ljava/lang/String;)Ljava/lang/Object;
            pop
         1: .line 349
            aload 0 /* in */
            invokevirtual java.lang.Object.getClass:()Ljava/lang/Class;
            ldc Ljava/io/FileInputStream;
            if_acmpne 3
         2: .line 350
            aload 0 /* in */
            checkcast java.io.FileInputStream
            invokevirtual java.io.FileInputStream.getChannel:()Ljava/nio/channels/FileChannel;
            areturn
         3: .line 353
      StackMap locals:
      StackMap stack:
            new java.nio.channels.Channels$ReadableByteChannelImpl
            dup
            aload 0 /* in */
            invokespecial java.nio.channels.Channels$ReadableByteChannelImpl.<init>:(Ljava/io/InputStream;)V
            areturn
        end local 0 // java.io.InputStream in
      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 // java.io.OutputStream out
         0: .line 425
            aload 0 /* out */
            ldc "out"
            invokestatic java.util.Objects.requireNonNull:(Ljava/lang/Object;Ljava/lang/String;)Ljava/lang/Object;
            pop
         1: .line 427
            aload 0 /* out */
            invokevirtual java.lang.Object.getClass:()Ljava/lang/Class;
            ldc Ljava/io/FileOutputStream;
            if_acmpne 3
         2: .line 428
            aload 0 /* out */
            checkcast java.io.FileOutputStream
            invokevirtual java.io.FileOutputStream.getChannel:()Ljava/nio/channels/FileChannel;
            areturn
         3: .line 431
      StackMap locals:
      StackMap stack:
            new java.nio.channels.Channels$WritableByteChannelImpl
            dup
            aload 0 /* out */
            invokespecial java.nio.channels.Channels$WritableByteChannelImpl.<init>:(Ljava/io/OutputStream;)V
            areturn
        end local 0 // java.io.OutputStream out
      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 // java.nio.channels.ReadableByteChannel ch
        start local 1 // java.nio.charset.CharsetDecoder dec
        start local 2 // int minBufferCap
         0: .line 513
            aload 0 /* ch */
            ldc "ch"
            invokestatic java.util.Objects.requireNonNull:(Ljava/lang/Object;Ljava/lang/String;)Ljava/lang/Object;
            pop
         1: .line 514
            aload 0 /* ch */
            aload 1 /* dec */
            invokevirtual java.nio.charset.CharsetDecoder.reset:()Ljava/nio/charset/CharsetDecoder;
            iload 2 /* minBufferCap */
            invokestatic sun.nio.cs.StreamDecoder.forDecoder:(Ljava/nio/channels/ReadableByteChannel;Ljava/nio/charset/CharsetDecoder;I)Lsun/nio/cs/StreamDecoder;
            areturn
        end local 2 // int minBufferCap
        end local 1 // java.nio.charset.CharsetDecoder dec
        end local 0 // java.nio.channels.ReadableByteChannel ch
      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 // java.nio.channels.ReadableByteChannel ch
        start local 1 // java.lang.String csName
         0: .line 548
            aload 1 /* csName */
            ldc "csName"
            invokestatic java.util.Objects.requireNonNull:(Ljava/lang/Object;Ljava/lang/String;)Ljava/lang/Object;
            pop
         1: .line 549
            aload 0 /* ch */
            aload 1 /* csName */
            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 // java.lang.String csName
        end local 0 // java.nio.channels.ReadableByteChannel ch
      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 // java.nio.channels.ReadableByteChannel ch
        start local 1 // java.nio.charset.Charset charset
         0: .line 580
            aload 1 /* charset */
            ldc "charset"
            invokestatic java.util.Objects.requireNonNull:(Ljava/lang/Object;Ljava/lang/String;)Ljava/lang/Object;
            pop
         1: .line 581
            aload 0 /* ch */
            aload 1 /* 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 // java.nio.charset.Charset charset
        end local 0 // java.nio.channels.ReadableByteChannel ch
      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 // java.nio.channels.WritableByteChannel ch
        start local 1 // java.nio.charset.CharsetEncoder enc
        start local 2 // int minBufferCap
         0: .line 613
            aload 0 /* ch */
            ldc "ch"
            invokestatic java.util.Objects.requireNonNull:(Ljava/lang/Object;Ljava/lang/String;)Ljava/lang/Object;
            pop
         1: .line 614
            aload 0 /* ch */
            aload 1 /* enc */
            invokevirtual java.nio.charset.CharsetEncoder.reset:()Ljava/nio/charset/CharsetEncoder;
            iload 2 /* minBufferCap */
            invokestatic sun.nio.cs.StreamEncoder.forEncoder:(Ljava/nio/channels/WritableByteChannel;Ljava/nio/charset/CharsetEncoder;I)Lsun/nio/cs/StreamEncoder;
            areturn
        end local 2 // int minBufferCap
        end local 1 // java.nio.charset.CharsetEncoder enc
        end local 0 // java.nio.channels.WritableByteChannel ch
      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 // java.nio.channels.WritableByteChannel ch
        start local 1 // java.lang.String csName
         0: .line 648
            aload 1 /* csName */
            ldc "csName"
            invokestatic java.util.Objects.requireNonNull:(Ljava/lang/Object;Ljava/lang/String;)Ljava/lang/Object;
            pop
         1: .line 649
            aload 0 /* ch */
            aload 1 /* csName */
            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 // java.lang.String csName
        end local 0 // java.nio.channels.WritableByteChannel ch
      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 // java.nio.channels.WritableByteChannel ch
        start local 1 // java.nio.charset.Charset charset
         0: .line 682
            aload 1 /* charset */
            ldc "charset"
            invokestatic java.util.Objects.requireNonNull:(Ljava/lang/Object;Ljava/lang/String;)Ljava/lang/Object;
            pop
         1: .line 683
            aload 0 /* ch */
            aload 1 /* 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 // java.nio.charset.Charset charset
        end local 0 // java.nio.channels.WritableByteChannel ch
      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