class sun.net.httpserver.ChunkedOutputStream extends java.io.FilterOutputStream
  minor version: 0
  major version: 59
  flags: flags: (0x0020) ACC_SUPER
  this_class: sun.net.httpserver.ChunkedOutputStream
  super_class: java.io.FilterOutputStream
{
  private boolean closed;
    descriptor: Z
    flags: (0x0002) ACC_PRIVATE

  static final int CHUNK_SIZE;
    descriptor: I
    flags: (0x0018) ACC_STATIC, ACC_FINAL
    ConstantValue: 4096

  static final int OFFSET;
    descriptor: I
    flags: (0x0018) ACC_STATIC, ACC_FINAL
    ConstantValue: 6

  private int pos;
    descriptor: I
    flags: (0x0002) ACC_PRIVATE

  private int count;
    descriptor: I
    flags: (0x0002) ACC_PRIVATE

  private byte[] buf;
    descriptor: [B
    flags: (0x0002) ACC_PRIVATE

  sun.net.httpserver.ExchangeImpl t;
    descriptor: Lsun/net/httpserver/ExchangeImpl;
    flags: (0x0000) 

  void <init>(sun.net.httpserver.ExchangeImpl, java.io.OutputStream);
    descriptor: (Lsun/net/httpserver/ExchangeImpl;Ljava/io/OutputStream;)V
    flags: (0x0000) 
    Code:
      stack=2, locals=3, args_size=3
        start local 0 // sun.net.httpserver.ChunkedOutputStream this
        start local 1 // sun.net.httpserver.ExchangeImpl t
        start local 2 // java.io.OutputStream src
         0: .line 63
            aload 0 /* this */
            aload 2 /* src */
            invokespecial java.io.FilterOutputStream.<init>:(Ljava/io/OutputStream;)V
         1: .line 52
            aload 0 /* this */
            iconst_0
            putfield sun.net.httpserver.ChunkedOutputStream.closed:Z
         2: .line 57
            aload 0 /* this */
            bipush 6
            putfield sun.net.httpserver.ChunkedOutputStream.pos:I
         3: .line 58
            aload 0 /* this */
            iconst_0
            putfield sun.net.httpserver.ChunkedOutputStream.count:I
         4: .line 59
            aload 0 /* this */
            sipush 4104
            newarray 8
            putfield sun.net.httpserver.ChunkedOutputStream.buf:[B
         5: .line 64
            aload 0 /* this */
            aload 1 /* t */
            putfield sun.net.httpserver.ChunkedOutputStream.t:Lsun/net/httpserver/ExchangeImpl;
         6: .line 65
            return
        end local 2 // java.io.OutputStream src
        end local 1 // sun.net.httpserver.ExchangeImpl t
        end local 0 // sun.net.httpserver.ChunkedOutputStream this
      LocalVariableTable:
        Start  End  Slot  Name  Signature
            0    7     0  this  Lsun/net/httpserver/ChunkedOutputStream;
            0    7     1     t  Lsun/net/httpserver/ExchangeImpl;
            0    7     2   src  Ljava/io/OutputStream;
    MethodParameters:
      Name  Flags
      t     
      src   

  public void write(int);
    descriptor: (I)V
    flags: (0x0001) ACC_PUBLIC
    Code:
      stack=5, locals=2, args_size=2
        start local 0 // sun.net.httpserver.ChunkedOutputStream this
        start local 1 // int b
         0: .line 68
            aload 0 /* this */
            getfield sun.net.httpserver.ChunkedOutputStream.closed:Z
            ifeq 2
         1: .line 69
            new sun.net.httpserver.StreamClosedException
            dup
            invokespecial sun.net.httpserver.StreamClosedException.<init>:()V
            athrow
         2: .line 71
      StackMap locals:
      StackMap stack:
            aload 0 /* this */
            getfield sun.net.httpserver.ChunkedOutputStream.buf:[B
            aload 0 /* this */
            dup
            getfield sun.net.httpserver.ChunkedOutputStream.pos:I
            dup_x1
            iconst_1
            iadd
            putfield sun.net.httpserver.ChunkedOutputStream.pos:I
            iload 1 /* b */
            i2b
            bastore
         3: .line 72
            aload 0 /* this */
            dup
            getfield sun.net.httpserver.ChunkedOutputStream.count:I
            iconst_1
            iadd
            putfield sun.net.httpserver.ChunkedOutputStream.count:I
         4: .line 73
            aload 0 /* this */
            getfield sun.net.httpserver.ChunkedOutputStream.count:I
            sipush 4096
            if_icmpne 6
         5: .line 74
            aload 0 /* this */
            invokevirtual sun.net.httpserver.ChunkedOutputStream.writeChunk:()V
         6: .line 76
      StackMap locals:
      StackMap stack:
            return
        end local 1 // int b
        end local 0 // sun.net.httpserver.ChunkedOutputStream this
      LocalVariableTable:
        Start  End  Slot  Name  Signature
            0    7     0  this  Lsun/net/httpserver/ChunkedOutputStream;
            0    7     1     b  I
    Exceptions:
      throws java.io.IOException
    MethodParameters:
      Name  Flags
      b     

  public void write(byte[], int, int);
    descriptor: ([BII)V
    flags: (0x0001) ACC_PUBLIC
    Code:
      stack=5, locals=5, args_size=4
        start local 0 // sun.net.httpserver.ChunkedOutputStream this
        start local 1 // byte[] b
        start local 2 // int off
        start local 3 // int len
         0: .line 79
            aload 0 /* this */
            getfield sun.net.httpserver.ChunkedOutputStream.closed:Z
            ifeq 2
         1: .line 80
            new sun.net.httpserver.StreamClosedException
            dup
            invokespecial sun.net.httpserver.StreamClosedException.<init>:()V
            athrow
         2: .line 82
      StackMap locals:
      StackMap stack:
            sipush 4096
            aload 0 /* this */
            getfield sun.net.httpserver.ChunkedOutputStream.count:I
            isub
            istore 4 /* remain */
        start local 4 // int remain
         3: .line 83
            iload 3 /* len */
            iload 4 /* remain */
            if_icmple 17
         4: .line 84
            aload 1 /* b */
            iload 2 /* off */
            aload 0 /* this */
            getfield sun.net.httpserver.ChunkedOutputStream.buf:[B
            aload 0 /* this */
            getfield sun.net.httpserver.ChunkedOutputStream.pos:I
            iload 4 /* remain */
            invokestatic java.lang.System.arraycopy:(Ljava/lang/Object;ILjava/lang/Object;II)V
         5: .line 85
            aload 0 /* this */
            sipush 4096
            putfield sun.net.httpserver.ChunkedOutputStream.count:I
         6: .line 86
            aload 0 /* this */
            invokevirtual sun.net.httpserver.ChunkedOutputStream.writeChunk:()V
         7: .line 87
            iload 3 /* len */
            iload 4 /* remain */
            isub
            istore 3 /* len */
         8: .line 88
            iload 2 /* off */
            iload 4 /* remain */
            iadd
            istore 2 /* off */
         9: .line 89
            goto 15
        10: .line 90
      StackMap locals: int
      StackMap stack:
            aload 1 /* b */
            iload 2 /* off */
            aload 0 /* this */
            getfield sun.net.httpserver.ChunkedOutputStream.buf:[B
            bipush 6
            sipush 4096
            invokestatic java.lang.System.arraycopy:(Ljava/lang/Object;ILjava/lang/Object;II)V
        11: .line 91
            iinc 3 /* len */ -4096
        12: .line 92
            iinc 2 /* off */ 4096
        13: .line 93
            aload 0 /* this */
            sipush 4096
            putfield sun.net.httpserver.ChunkedOutputStream.count:I
        14: .line 94
            aload 0 /* this */
            invokevirtual sun.net.httpserver.ChunkedOutputStream.writeChunk:()V
        15: .line 89
      StackMap locals:
      StackMap stack:
            iload 3 /* len */
            sipush 4096
            if_icmpgt 10
        16: .line 96
            aload 0 /* this */
            bipush 6
            putfield sun.net.httpserver.ChunkedOutputStream.pos:I
        17: .line 98
      StackMap locals:
      StackMap stack:
            iload 3 /* len */
            ifle 21
        18: .line 99
            aload 1 /* b */
            iload 2 /* off */
            aload 0 /* this */
            getfield sun.net.httpserver.ChunkedOutputStream.buf:[B
            aload 0 /* this */
            getfield sun.net.httpserver.ChunkedOutputStream.pos:I
            iload 3 /* len */
            invokestatic java.lang.System.arraycopy:(Ljava/lang/Object;ILjava/lang/Object;II)V
        19: .line 100
            aload 0 /* this */
            dup
            getfield sun.net.httpserver.ChunkedOutputStream.count:I
            iload 3 /* len */
            iadd
            putfield sun.net.httpserver.ChunkedOutputStream.count:I
        20: .line 101
            aload 0 /* this */
            dup
            getfield sun.net.httpserver.ChunkedOutputStream.pos:I
            iload 3 /* len */
            iadd
            putfield sun.net.httpserver.ChunkedOutputStream.pos:I
        21: .line 103
      StackMap locals:
      StackMap stack:
            return
        end local 4 // int remain
        end local 3 // int len
        end local 2 // int off
        end local 1 // byte[] b
        end local 0 // sun.net.httpserver.ChunkedOutputStream this
      LocalVariableTable:
        Start  End  Slot    Name  Signature
            0   22     0    this  Lsun/net/httpserver/ChunkedOutputStream;
            0   22     1       b  [B
            0   22     2     off  I
            0   22     3     len  I
            3   22     4  remain  I
    Exceptions:
      throws java.io.IOException
    MethodParameters:
      Name  Flags
      b     
      off   
      len   

  private void writeChunk();
    descriptor: ()V
    flags: (0x0002) ACC_PRIVATE
    Code:
      stack=5, locals=5, args_size=1
        start local 0 // sun.net.httpserver.ChunkedOutputStream this
         0: .line 111
            aload 0 /* this */
            getfield sun.net.httpserver.ChunkedOutputStream.count:I
            invokestatic java.lang.Integer.toHexString:(I)Ljava/lang/String;
            invokevirtual java.lang.String.toCharArray:()[C
            astore 1 /* c */
        start local 1 // char[] c
         1: .line 112
            aload 1 /* c */
            arraylength
            istore 2 /* clen */
        start local 2 // int clen
         2: .line 113
            iconst_4
            iload 2 /* clen */
            isub
            istore 3 /* startByte */
        start local 3 // int startByte
         3: .line 115
            iconst_0
            istore 4 /* i */
        start local 4 // int i
         4: goto 7
         5: .line 116
      StackMap locals: sun.net.httpserver.ChunkedOutputStream char[] int int int
      StackMap stack:
            aload 0 /* this */
            getfield sun.net.httpserver.ChunkedOutputStream.buf:[B
            iload 3 /* startByte */
            iload 4 /* i */
            iadd
            aload 1 /* c */
            iload 4 /* i */
            caload
            i2b
            bastore
         6: .line 115
            iinc 4 /* i */ 1
      StackMap locals:
      StackMap stack:
         7: iload 4 /* i */
            iload 2 /* clen */
            if_icmplt 5
         8: .line 118
            aload 0 /* this */
            getfield sun.net.httpserver.ChunkedOutputStream.buf:[B
            iload 3 /* startByte */
            iload 4 /* i */
            iinc 4 /* i */ 1
            iadd
            bipush 13
            bastore
         9: .line 119
            aload 0 /* this */
            getfield sun.net.httpserver.ChunkedOutputStream.buf:[B
            iload 3 /* startByte */
            iload 4 /* i */
            iinc 4 /* i */ 1
            iadd
            bipush 10
            bastore
        10: .line 120
            aload 0 /* this */
            getfield sun.net.httpserver.ChunkedOutputStream.buf:[B
            iload 3 /* startByte */
            iload 4 /* i */
            iinc 4 /* i */ 1
            iadd
            aload 0 /* this */
            getfield sun.net.httpserver.ChunkedOutputStream.count:I
            iadd
            bipush 13
            bastore
        11: .line 121
            aload 0 /* this */
            getfield sun.net.httpserver.ChunkedOutputStream.buf:[B
            iload 3 /* startByte */
            iload 4 /* i */
            iinc 4 /* i */ 1
            iadd
            aload 0 /* this */
            getfield sun.net.httpserver.ChunkedOutputStream.count:I
            iadd
            bipush 10
            bastore
        12: .line 122
            aload 0 /* this */
            getfield sun.net.httpserver.ChunkedOutputStream.out:Ljava/io/OutputStream;
            aload 0 /* this */
            getfield sun.net.httpserver.ChunkedOutputStream.buf:[B
            iload 3 /* startByte */
            iload 4 /* i */
            aload 0 /* this */
            getfield sun.net.httpserver.ChunkedOutputStream.count:I
            iadd
            invokevirtual java.io.OutputStream.write:([BII)V
        13: .line 123
            aload 0 /* this */
            iconst_0
            putfield sun.net.httpserver.ChunkedOutputStream.count:I
        14: .line 124
            aload 0 /* this */
            bipush 6
            putfield sun.net.httpserver.ChunkedOutputStream.pos:I
        15: .line 125
            return
        end local 4 // int i
        end local 3 // int startByte
        end local 2 // int clen
        end local 1 // char[] c
        end local 0 // sun.net.httpserver.ChunkedOutputStream this
      LocalVariableTable:
        Start  End  Slot       Name  Signature
            0   16     0       this  Lsun/net/httpserver/ChunkedOutputStream;
            1   16     1          c  [C
            2   16     2       clen  I
            3   16     3  startByte  I
            4   16     4          i  I
    Exceptions:
      throws java.io.IOException

  public void close();
    descriptor: ()V
    flags: (0x0001) ACC_PUBLIC
    Code:
      stack=3, locals=3, args_size=1
        start local 0 // sun.net.httpserver.ChunkedOutputStream this
         0: .line 128
            aload 0 /* this */
            getfield sun.net.httpserver.ChunkedOutputStream.closed:Z
            ifeq 2
         1: .line 129
            return
         2: .line 131
      StackMap locals:
      StackMap stack:
            aload 0 /* this */
            invokevirtual sun.net.httpserver.ChunkedOutputStream.flush:()V
         3: .line 134
            aload 0 /* this */
            invokevirtual sun.net.httpserver.ChunkedOutputStream.writeChunk:()V
         4: .line 135
            aload 0 /* this */
            getfield sun.net.httpserver.ChunkedOutputStream.out:Ljava/io/OutputStream;
            invokevirtual java.io.OutputStream.flush:()V
         5: .line 136
            aload 0 /* this */
            getfield sun.net.httpserver.ChunkedOutputStream.t:Lsun/net/httpserver/ExchangeImpl;
            invokevirtual sun.net.httpserver.ExchangeImpl.getOriginalInputStream:()Lsun/net/httpserver/LeftOverInputStream;
            astore 1 /* is */
        start local 1 // sun.net.httpserver.LeftOverInputStream is
         6: .line 137
            aload 1 /* is */
            invokevirtual sun.net.httpserver.LeftOverInputStream.isClosed:()Z
            ifne 14
         7: .line 138
            aload 1 /* is */
            invokevirtual sun.net.httpserver.LeftOverInputStream.close:()V
        end local 1 // sun.net.httpserver.LeftOverInputStream is
         8: .line 141
            goto 14
      StackMap locals:
      StackMap stack: java.io.IOException
         9: pop
        10: .line 144
            aload 0 /* this */
            iconst_1
            putfield sun.net.httpserver.ChunkedOutputStream.closed:Z
            goto 15
        11: .line 143
      StackMap locals:
      StackMap stack: java.lang.Throwable
            astore 2
        12: .line 144
            aload 0 /* this */
            iconst_1
            putfield sun.net.httpserver.ChunkedOutputStream.closed:Z
        13: .line 145
            aload 2
            athrow
        14: .line 144
      StackMap locals:
      StackMap stack:
            aload 0 /* this */
            iconst_1
            putfield sun.net.httpserver.ChunkedOutputStream.closed:Z
        15: .line 147
      StackMap locals:
      StackMap stack:
            new sun.net.httpserver.WriteFinishedEvent
            dup
            aload 0 /* this */
            getfield sun.net.httpserver.ChunkedOutputStream.t:Lsun/net/httpserver/ExchangeImpl;
            invokespecial sun.net.httpserver.WriteFinishedEvent.<init>:(Lsun/net/httpserver/ExchangeImpl;)V
            astore 1 /* e */
        start local 1 // sun.net.httpserver.WriteFinishedEvent e
        16: .line 148
            aload 0 /* this */
            getfield sun.net.httpserver.ChunkedOutputStream.t:Lsun/net/httpserver/ExchangeImpl;
            invokevirtual sun.net.httpserver.ExchangeImpl.getHttpContext:()Lsun/net/httpserver/HttpContextImpl;
            invokevirtual sun.net.httpserver.HttpContextImpl.getServerImpl:()Lsun/net/httpserver/ServerImpl;
            aload 1 /* e */
            invokevirtual sun.net.httpserver.ServerImpl.addEvent:(Lsun/net/httpserver/Event;)V
        17: .line 149
            return
        end local 1 // sun.net.httpserver.WriteFinishedEvent e
        end local 0 // sun.net.httpserver.ChunkedOutputStream this
      LocalVariableTable:
        Start  End  Slot  Name  Signature
            0   18     0  this  Lsun/net/httpserver/ChunkedOutputStream;
            6    8     1    is  Lsun/net/httpserver/LeftOverInputStream;
           16   18     1     e  Lsun/net/httpserver/WriteFinishedEvent;
      Exception table:
        from    to  target  type
           3     8       9  Class java.io.IOException
           3    10      11  any
    Exceptions:
      throws java.io.IOException

  public void flush();
    descriptor: ()V
    flags: (0x0001) ACC_PUBLIC
    Code:
      stack=2, locals=1, args_size=1
        start local 0 // sun.net.httpserver.ChunkedOutputStream this
         0: .line 152
            aload 0 /* this */
            getfield sun.net.httpserver.ChunkedOutputStream.closed:Z
            ifeq 2
         1: .line 153
            new sun.net.httpserver.StreamClosedException
            dup
            invokespecial sun.net.httpserver.StreamClosedException.<init>:()V
            athrow
         2: .line 155
      StackMap locals:
      StackMap stack:
            aload 0 /* this */
            getfield sun.net.httpserver.ChunkedOutputStream.count:I
            ifle 4
         3: .line 156
            aload 0 /* this */
            invokevirtual sun.net.httpserver.ChunkedOutputStream.writeChunk:()V
         4: .line 158
      StackMap locals:
      StackMap stack:
            aload 0 /* this */
            getfield sun.net.httpserver.ChunkedOutputStream.out:Ljava/io/OutputStream;
            invokevirtual java.io.OutputStream.flush:()V
         5: .line 159
            return
        end local 0 // sun.net.httpserver.ChunkedOutputStream this
      LocalVariableTable:
        Start  End  Slot  Name  Signature
            0    6     0  this  Lsun/net/httpserver/ChunkedOutputStream;
    Exceptions:
      throws java.io.IOException
}
SourceFile: "ChunkedOutputStream.java"