class sun.net.httpserver.Request$WriteStream extends java.io.OutputStream
  minor version: 0
  major version: 59
  flags: flags: (0x0020) ACC_SUPER
  this_class: sun.net.httpserver.Request$WriteStream
  super_class: java.io.OutputStream
{
  java.nio.channels.SocketChannel channel;
    descriptor: Ljava/nio/channels/SocketChannel;
    flags: (0x0000) 

  java.nio.ByteBuffer buf;
    descriptor: Ljava/nio/ByteBuffer;
    flags: (0x0000) 

  java.nio.channels.SelectionKey key;
    descriptor: Ljava/nio/channels/SelectionKey;
    flags: (0x0000) 

  sun.net.httpserver.SelectorCache sc;
    descriptor: Lsun/net/httpserver/SelectorCache;
    flags: (0x0000) 

  java.nio.channels.Selector selector;
    descriptor: Ljava/nio/channels/Selector;
    flags: (0x0000) 

  boolean closed;
    descriptor: Z
    flags: (0x0000) 

  byte[] one;
    descriptor: [B
    flags: (0x0000) 

  sun.net.httpserver.ServerImpl server;
    descriptor: Lsun/net/httpserver/ServerImpl;
    flags: (0x0000) 

  static long writeTimeout;
    descriptor: J
    flags: (0x0008) ACC_STATIC

  static void <clinit>();
    descriptor: ()V
    flags: (0x0008) ACC_STATIC
    Code:
      stack=2, locals=0, args_size=0
         0: .line 378
            invokestatic sun.net.httpserver.ServerConfig.getWriteTimeout:()J
            putstatic sun.net.httpserver.Request$WriteStream.writeTimeout:J
         1: .line 379
            return
      LocalVariableTable:
        Start  End  Slot  Name  Signature

  public void <init>(sun.net.httpserver.ServerImpl, java.nio.channels.SocketChannel);
    descriptor: (Lsun/net/httpserver/ServerImpl;Ljava/nio/channels/SocketChannel;)V
    flags: (0x0001) ACC_PUBLIC
    Code:
      stack=4, locals=3, args_size=3
        start local 0 // sun.net.httpserver.Request$WriteStream this
        start local 1 // sun.net.httpserver.ServerImpl server
        start local 2 // java.nio.channels.SocketChannel channel
         0: .line 381
            aload 0 /* this */
            invokespecial java.io.OutputStream.<init>:()V
         1: .line 382
            aload 0 /* this */
            aload 2 /* channel */
            putfield sun.net.httpserver.Request$WriteStream.channel:Ljava/nio/channels/SocketChannel;
         2: .line 383
            aload 0 /* this */
            aload 1 /* server */
            putfield sun.net.httpserver.Request$WriteStream.server:Lsun/net/httpserver/ServerImpl;
         3: .line 384
            aload 0 /* this */
            invokestatic sun.net.httpserver.SelectorCache.getSelectorCache:()Lsun/net/httpserver/SelectorCache;
            putfield sun.net.httpserver.Request$WriteStream.sc:Lsun/net/httpserver/SelectorCache;
         4: .line 385
            aload 0 /* this */
            aload 0 /* this */
            getfield sun.net.httpserver.Request$WriteStream.sc:Lsun/net/httpserver/SelectorCache;
            invokevirtual sun.net.httpserver.SelectorCache.getSelector:()Ljava/nio/channels/Selector;
            putfield sun.net.httpserver.Request$WriteStream.selector:Ljava/nio/channels/Selector;
         5: .line 386
            aload 0 /* this */
            aload 2 /* channel */
            aload 0 /* this */
            getfield sun.net.httpserver.Request$WriteStream.selector:Ljava/nio/channels/Selector;
            iconst_4
            invokevirtual java.nio.channels.SocketChannel.register:(Ljava/nio/channels/Selector;I)Ljava/nio/channels/SelectionKey;
            putfield sun.net.httpserver.Request$WriteStream.key:Ljava/nio/channels/SelectionKey;
         6: .line 387
            aload 0 /* this */
            iconst_0
            putfield sun.net.httpserver.Request$WriteStream.closed:Z
         7: .line 388
            aload 0 /* this */
            iconst_1
            newarray 8
            putfield sun.net.httpserver.Request$WriteStream.one:[B
         8: .line 389
            aload 0 /* this */
            sipush 4096
            invokestatic java.nio.ByteBuffer.allocate:(I)Ljava/nio/ByteBuffer;
            putfield sun.net.httpserver.Request$WriteStream.buf:Ljava/nio/ByteBuffer;
         9: .line 390
            return
        end local 2 // java.nio.channels.SocketChannel channel
        end local 1 // sun.net.httpserver.ServerImpl server
        end local 0 // sun.net.httpserver.Request$WriteStream this
      LocalVariableTable:
        Start  End  Slot     Name  Signature
            0   10     0     this  Lsun/net/httpserver/Request$WriteStream;
            0   10     1   server  Lsun/net/httpserver/ServerImpl;
            0   10     2  channel  Ljava/nio/channels/SocketChannel;
    Exceptions:
      throws java.io.IOException
    MethodParameters:
         Name  Flags
      server   
      channel  

  public synchronized void write(int);
    descriptor: (I)V
    flags: (0x0021) ACC_PUBLIC, ACC_SYNCHRONIZED
    Code:
      stack=4, locals=2, args_size=2
        start local 0 // sun.net.httpserver.Request$WriteStream this
        start local 1 // int b
         0: .line 393
            aload 0 /* this */
            getfield sun.net.httpserver.Request$WriteStream.one:[B
            iconst_0
            iload 1 /* b */
            i2b
            bastore
         1: .line 394
            aload 0 /* this */
            aload 0 /* this */
            getfield sun.net.httpserver.Request$WriteStream.one:[B
            iconst_0
            iconst_1
            invokevirtual sun.net.httpserver.Request$WriteStream.write:([BII)V
         2: .line 395
            return
        end local 1 // int b
        end local 0 // sun.net.httpserver.Request$WriteStream this
      LocalVariableTable:
        Start  End  Slot  Name  Signature
            0    3     0  this  Lsun/net/httpserver/Request$WriteStream;
            0    3     1     b  I
    Exceptions:
      throws java.io.IOException
    MethodParameters:
      Name  Flags
      b     

  public synchronized void write(byte[]);
    descriptor: ([B)V
    flags: (0x0021) ACC_PUBLIC, ACC_SYNCHRONIZED
    Code:
      stack=4, locals=2, args_size=2
        start local 0 // sun.net.httpserver.Request$WriteStream this
        start local 1 // byte[] b
         0: .line 398
            aload 0 /* this */
            aload 1 /* b */
            iconst_0
            aload 1 /* b */
            arraylength
            invokevirtual sun.net.httpserver.Request$WriteStream.write:([BII)V
         1: .line 399
            return
        end local 1 // byte[] b
        end local 0 // sun.net.httpserver.Request$WriteStream this
      LocalVariableTable:
        Start  End  Slot  Name  Signature
            0    2     0  this  Lsun/net/httpserver/Request$WriteStream;
            0    2     1     b  [B
    Exceptions:
      throws java.io.IOException
    MethodParameters:
      Name  Flags
      b     

  public synchronized void write(byte[], int, int);
    descriptor: ([BII)V
    flags: (0x0021) ACC_PUBLIC, ACC_SYNCHRONIZED
    Code:
      stack=4, locals=7, args_size=4
        start local 0 // sun.net.httpserver.Request$WriteStream this
        start local 1 // byte[] b
        start local 2 // int off
        start local 3 // int len
         0: .line 402
            iload 3 /* len */
            istore 4 /* l */
        start local 4 // int l
         1: .line 403
            aload 0 /* this */
            getfield sun.net.httpserver.Request$WriteStream.closed:Z
            ifeq 3
         2: .line 404
            new java.io.IOException
            dup
            ldc "stream is closed"
            invokespecial java.io.IOException.<init>:(Ljava/lang/String;)V
            athrow
         3: .line 406
      StackMap locals: int
      StackMap stack:
            aload 0 /* this */
            getfield sun.net.httpserver.Request$WriteStream.buf:Ljava/nio/ByteBuffer;
            invokevirtual java.nio.ByteBuffer.capacity:()I
            istore 5 /* cap */
        start local 5 // int cap
         4: .line 407
            iload 5 /* cap */
            iload 3 /* len */
            if_icmpge 7
         5: .line 408
            iload 3 /* len */
            iload 5 /* cap */
            isub
            istore 6 /* diff */
        start local 6 // int diff
         6: .line 409
            aload 0 /* this */
            iconst_2
            iload 5 /* cap */
            iload 6 /* diff */
            iadd
            imul
            invokestatic java.nio.ByteBuffer.allocate:(I)Ljava/nio/ByteBuffer;
            putfield sun.net.httpserver.Request$WriteStream.buf:Ljava/nio/ByteBuffer;
        end local 6 // int diff
         7: .line 411
      StackMap locals: int
      StackMap stack:
            aload 0 /* this */
            getfield sun.net.httpserver.Request$WriteStream.buf:Ljava/nio/ByteBuffer;
            invokevirtual java.nio.ByteBuffer.clear:()Ljava/nio/Buffer;
            pop
         8: .line 412
            aload 0 /* this */
            getfield sun.net.httpserver.Request$WriteStream.buf:Ljava/nio/ByteBuffer;
            aload 1 /* b */
            iload 2 /* off */
            iload 3 /* len */
            invokevirtual java.nio.ByteBuffer.put:([BII)Ljava/nio/ByteBuffer;
            pop
         9: .line 413
            aload 0 /* this */
            getfield sun.net.httpserver.Request$WriteStream.buf:Ljava/nio/ByteBuffer;
            invokevirtual java.nio.ByteBuffer.flip:()Ljava/nio/Buffer;
            pop
        10: .line 415
            goto 15
        start local 6 // int n
        11: .line 416
      StackMap locals: int
      StackMap stack:
            iload 4 /* l */
            iload 6 /* n */
            isub
            istore 4 /* l */
        12: .line 417
            iload 4 /* l */
            ifne 14
        13: .line 418
            return
        14: .line 419
      StackMap locals:
      StackMap stack:
            aload 0 /* this */
            invokevirtual sun.net.httpserver.Request$WriteStream.block:()V
        end local 6 // int n
        15: .line 415
      StackMap locals:
      StackMap stack:
            aload 0 /* this */
            getfield sun.net.httpserver.Request$WriteStream.channel:Ljava/nio/channels/SocketChannel;
            aload 0 /* this */
            getfield sun.net.httpserver.Request$WriteStream.buf:Ljava/nio/ByteBuffer;
            invokevirtual java.nio.channels.SocketChannel.write:(Ljava/nio/ByteBuffer;)I
            dup
            istore 6 /* n */
        start local 6 // int n
        16: iload 4 /* l */
            if_icmplt 11
        17: .line 421
            return
        end local 6 // int n
        end local 5 // int cap
        end local 4 // int l
        end local 3 // int len
        end local 2 // int off
        end local 1 // byte[] b
        end local 0 // sun.net.httpserver.Request$WriteStream this
      LocalVariableTable:
        Start  End  Slot  Name  Signature
            0   18     0  this  Lsun/net/httpserver/Request$WriteStream;
            0   18     1     b  [B
            0   18     2   off  I
            0   18     3   len  I
            1   18     4     l  I
            4   18     5   cap  I
            6    7     6  diff  I
           11   15     6     n  I
           16   18     6     n  I
    Exceptions:
      throws java.io.IOException
    MethodParameters:
      Name  Flags
      b     
      off   
      len   

  void block();
    descriptor: ()V
    flags: (0x0000) 
    Code:
      stack=4, locals=5, args_size=1
        start local 0 // sun.net.httpserver.Request$WriteStream this
         0: .line 424
            aload 0 /* this */
            getfield sun.net.httpserver.Request$WriteStream.server:Lsun/net/httpserver/ServerImpl;
            invokevirtual sun.net.httpserver.ServerImpl.getTime:()J
            lstore 1 /* currtime */
        start local 1 // long currtime
         1: .line 425
            lload 1 /* currtime */
            getstatic sun.net.httpserver.Request$WriteStream.writeTimeout:J
            ladd
            lstore 3 /* maxtime */
        start local 3 // long maxtime
         2: .line 427
            goto 7
         3: .line 428
      StackMap locals: long long
      StackMap stack:
            aload 0 /* this */
            getfield sun.net.httpserver.Request$WriteStream.selector:Ljava/nio/channels/Selector;
            getstatic sun.net.httpserver.Request$WriteStream.writeTimeout:J
            invokevirtual java.nio.channels.Selector.select:(J)I
            iconst_1
            if_icmpne 6
         4: .line 429
            aload 0 /* this */
            getfield sun.net.httpserver.Request$WriteStream.selector:Ljava/nio/channels/Selector;
            invokevirtual java.nio.channels.Selector.selectedKeys:()Ljava/util/Set;
            invokeinterface java.util.Set.clear:()V
         5: .line 430
            return
         6: .line 432
      StackMap locals:
      StackMap stack:
            aload 0 /* this */
            getfield sun.net.httpserver.Request$WriteStream.server:Lsun/net/httpserver/ServerImpl;
            invokevirtual sun.net.httpserver.ServerImpl.getTime:()J
            lstore 1 /* currtime */
         7: .line 427
      StackMap locals:
      StackMap stack:
            lload 1 /* currtime */
            lload 3 /* maxtime */
            lcmp
            iflt 3
         8: .line 434
            new java.net.SocketTimeoutException
            dup
            ldc "write blocked too long"
            invokespecial java.net.SocketTimeoutException.<init>:(Ljava/lang/String;)V
            athrow
        end local 3 // long maxtime
        end local 1 // long currtime
        end local 0 // sun.net.httpserver.Request$WriteStream this
      LocalVariableTable:
        Start  End  Slot      Name  Signature
            0    9     0      this  Lsun/net/httpserver/Request$WriteStream;
            1    9     1  currtime  J
            2    9     3   maxtime  J
    Exceptions:
      throws java.io.IOException

  public void close();
    descriptor: ()V
    flags: (0x0001) ACC_PUBLIC
    Code:
      stack=2, locals=1, args_size=1
        start local 0 // sun.net.httpserver.Request$WriteStream this
         0: .line 439
            aload 0 /* this */
            getfield sun.net.httpserver.Request$WriteStream.closed:Z
            ifeq 2
         1: .line 440
            return
         2: .line 441
      StackMap locals:
      StackMap stack:
            aload 0 /* this */
            getfield sun.net.httpserver.Request$WriteStream.channel:Ljava/nio/channels/SocketChannel;
            invokevirtual java.nio.channels.SocketChannel.close:()V
         3: .line 442
            aload 0 /* this */
            getfield sun.net.httpserver.Request$WriteStream.selector:Ljava/nio/channels/Selector;
            invokevirtual java.nio.channels.Selector.selectNow:()I
            pop
         4: .line 443
            aload 0 /* this */
            getfield sun.net.httpserver.Request$WriteStream.sc:Lsun/net/httpserver/SelectorCache;
            aload 0 /* this */
            getfield sun.net.httpserver.Request$WriteStream.selector:Ljava/nio/channels/Selector;
            invokevirtual sun.net.httpserver.SelectorCache.freeSelector:(Ljava/nio/channels/Selector;)V
         5: .line 444
            aload 0 /* this */
            iconst_1
            putfield sun.net.httpserver.Request$WriteStream.closed:Z
         6: .line 445
            return
        end local 0 // sun.net.httpserver.Request$WriteStream this
      LocalVariableTable:
        Start  End  Slot  Name  Signature
            0    7     0  this  Lsun/net/httpserver/Request$WriteStream;
    Exceptions:
      throws java.io.IOException
}
SourceFile: "Request.java"
NestHost: sun.net.httpserver.Request
InnerClasses:
  WriteStream = sun.net.httpserver.Request$WriteStream of sun.net.httpserver.Request