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) 

  static final boolean $assertionsDisabled;
    descriptor: Z
    flags: (0x1018) ACC_STATIC, ACC_FINAL, ACC_SYNTHETIC

  static void <clinit>();
    descriptor: ()V
    flags: (0x0008) ACC_STATIC
    Code:
      stack=1, locals=0, args_size=0
         0: .line 50
            ldc Lsun/net/httpserver/ChunkedOutputStream;
            invokevirtual java.lang.Class.desiredAssertionStatus:()Z
            ifne 1
            iconst_1
            goto 2
      StackMap locals:
      StackMap stack:
         1: iconst_0
      StackMap locals:
      StackMap stack: int
         2: putstatic sun.net.httpserver.ChunkedOutputStream.$assertionsDisabled:Z
         3: .line 56
            return
      LocalVariableTable:
        Start  End  Slot  Name  Signature

  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:
            getstatic sun.net.httpserver.ChunkedOutputStream.$assertionsDisabled:Z
            ifne 7
            aload 0 /* this */
            getfield sun.net.httpserver.ChunkedOutputStream.count:I
            sipush 4096
            if_icmplt 7
            new java.lang.AssertionError
            dup
            invokespecial java.lang.AssertionError.<init>:()V
            athrow
         7: .line 77
      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    8     0  this  Lsun/net/httpserver/ChunkedOutputStream;
            0    8     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 80
            aload 0 /* this */
            getfield sun.net.httpserver.ChunkedOutputStream.closed:Z
            ifeq 2
         1: .line 81
            new sun.net.httpserver.StreamClosedException
            dup
            invokespecial sun.net.httpserver.StreamClosedException.<init>:()V
            athrow
         2: .line 83
      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 84
            iload 3 /* len */
            iload 4 /* remain */
            if_icmple 16
         4: .line 85
            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 86
            aload 0 /* this */
            sipush 4096
            putfield sun.net.httpserver.ChunkedOutputStream.count:I
         6: .line 87
            aload 0 /* this */
            invokevirtual sun.net.httpserver.ChunkedOutputStream.writeChunk:()V
         7: .line 88
            iload 3 /* len */
            iload 4 /* remain */
            isub
            istore 3 /* len */
         8: .line 89
            iload 2 /* off */
            iload 4 /* remain */
            iadd
            istore 2 /* off */
         9: .line 90
            goto 15
        10: .line 91
      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 92
            iinc 3 /* len */ -4096
        12: .line 93
            iinc 2 /* off */ 4096
        13: .line 94
            aload 0 /* this */
            sipush 4096
            putfield sun.net.httpserver.ChunkedOutputStream.count:I
        14: .line 95
            aload 0 /* this */
            invokevirtual sun.net.httpserver.ChunkedOutputStream.writeChunk:()V
        15: .line 90
      StackMap locals:
      StackMap stack:
            iload 3 /* len */
            sipush 4096
            if_icmpge 10
        16: .line 98
      StackMap locals:
      StackMap stack:
            iload 3 /* len */
            ifle 20
        17: .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
        18: .line 100
            aload 0 /* this */
            dup
            getfield sun.net.httpserver.ChunkedOutputStream.count:I
            iload 3 /* len */
            iadd
            putfield sun.net.httpserver.ChunkedOutputStream.count:I
        19: .line 101
            aload 0 /* this */
            dup
            getfield sun.net.httpserver.ChunkedOutputStream.pos:I
            iload 3 /* len */
            iadd
            putfield sun.net.httpserver.ChunkedOutputStream.pos:I
        20: .line 103
      StackMap locals:
      StackMap stack:
            aload 0 /* this */
            getfield sun.net.httpserver.ChunkedOutputStream.count:I
            sipush 4096
            if_icmpne 22
        21: .line 104
            aload 0 /* this */
            invokevirtual sun.net.httpserver.ChunkedOutputStream.writeChunk:()V
        22: .line 106
      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   23     0    this  Lsun/net/httpserver/ChunkedOutputStream;
            0   23     1       b  [B
            0   23     2     off  I
            0   23     3     len  I
            3   23     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 114
            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 115
            aload 1 /* c */
            arraylength
            istore 2 /* clen */
        start local 2 // int clen
         2: .line 116
            iconst_4
            iload 2 /* clen */
            isub
            istore 3 /* startByte */
        start local 3 // int startByte
         3: .line 118
            iconst_0
            istore 4 /* i */
        start local 4 // int i
         4: goto 7
         5: .line 119
      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 118
            iinc 4 /* i */ 1
      StackMap locals:
      StackMap stack:
         7: iload 4 /* i */
            iload 2 /* clen */
            if_icmplt 5
         8: .line 121
            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 122
            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 123
            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 124
            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 125
            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 126
            aload 0 /* this */
            iconst_0
            putfield sun.net.httpserver.ChunkedOutputStream.count:I
        14: .line 127
            aload 0 /* this */
            bipush 6
            putfield sun.net.httpserver.ChunkedOutputStream.pos:I
        15: .line 128
            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 131
            aload 0 /* this */
            getfield sun.net.httpserver.ChunkedOutputStream.closed:Z
            ifeq 2
         1: .line 132
            return
         2: .line 134
      StackMap locals:
      StackMap stack:
            aload 0 /* this */
            invokevirtual sun.net.httpserver.ChunkedOutputStream.flush:()V
         3: .line 137
            aload 0 /* this */
            invokevirtual sun.net.httpserver.ChunkedOutputStream.writeChunk:()V
         4: .line 138
            aload 0 /* this */
            getfield sun.net.httpserver.ChunkedOutputStream.out:Ljava/io/OutputStream;
            invokevirtual java.io.OutputStream.flush:()V
         5: .line 139
            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 140
            aload 1 /* is */
            invokevirtual sun.net.httpserver.LeftOverInputStream.isClosed:()Z
            ifne 14
         7: .line 141
            aload 1 /* is */
            invokevirtual sun.net.httpserver.LeftOverInputStream.close:()V
        end local 1 // sun.net.httpserver.LeftOverInputStream is
         8: .line 144
            goto 14
      StackMap locals:
      StackMap stack: java.io.IOException
         9: pop
        10: .line 147
            aload 0 /* this */
            iconst_1
            putfield sun.net.httpserver.ChunkedOutputStream.closed:Z
            goto 15
        11: .line 146
      StackMap locals:
      StackMap stack: java.lang.Throwable
            astore 2
        12: .line 147
            aload 0 /* this */
            iconst_1
            putfield sun.net.httpserver.ChunkedOutputStream.closed:Z
        13: .line 148
            aload 2
            athrow
        14: .line 147
      StackMap locals:
      StackMap stack:
            aload 0 /* this */
            iconst_1
            putfield sun.net.httpserver.ChunkedOutputStream.closed:Z
        15: .line 150
      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 151
            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 152
            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 155
            aload 0 /* this */
            getfield sun.net.httpserver.ChunkedOutputStream.closed:Z
            ifeq 2
         1: .line 156
            new sun.net.httpserver.StreamClosedException
            dup
            invokespecial sun.net.httpserver.StreamClosedException.<init>:()V
            athrow
         2: .line 158
      StackMap locals:
      StackMap stack:
            aload 0 /* this */
            getfield sun.net.httpserver.ChunkedOutputStream.count:I
            ifle 4
         3: .line 159
            aload 0 /* this */
            invokevirtual sun.net.httpserver.ChunkedOutputStream.writeChunk:()V
         4: .line 161
      StackMap locals:
      StackMap stack:
            aload 0 /* this */
            getfield sun.net.httpserver.ChunkedOutputStream.out:Ljava/io/OutputStream;
            invokevirtual java.io.OutputStream.flush:()V
         5: .line 162
            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"