class org.glassfish.grizzly.http.server.CLStaticHttpHandler$NonBlockingDownloadHandler implements org.glassfish.grizzly.WriteHandler
  minor version: 0
  major version: 59
  flags: flags: (0x0020) ACC_SUPER
  this_class: org.glassfish.grizzly.http.server.CLStaticHttpHandler$NonBlockingDownloadHandler
  super_class: java.lang.Object
{
  private final org.glassfish.grizzly.http.server.Response response;
    descriptor: Lorg/glassfish/grizzly/http/server/Response;
    flags: (0x0012) ACC_PRIVATE, ACC_FINAL

  private final org.glassfish.grizzly.http.io.NIOOutputStream outputStream;
    descriptor: Lorg/glassfish/grizzly/http/io/NIOOutputStream;
    flags: (0x0012) ACC_PRIVATE, ACC_FINAL

  private final java.io.InputStream inputStream;
    descriptor: Ljava/io/InputStream;
    flags: (0x0012) ACC_PRIVATE, ACC_FINAL

  private final org.glassfish.grizzly.memory.MemoryManager mm;
    descriptor: Lorg/glassfish/grizzly/memory/MemoryManager;
    flags: (0x0012) ACC_PRIVATE, ACC_FINAL

  private final int chunkSize;
    descriptor: I
    flags: (0x0012) ACC_PRIVATE, ACC_FINAL

  void <init>(org.glassfish.grizzly.http.server.Response, org.glassfish.grizzly.http.io.NIOOutputStream, java.io.InputStream, int);
    descriptor: (Lorg/glassfish/grizzly/http/server/Response;Lorg/glassfish/grizzly/http/io/NIOOutputStream;Ljava/io/InputStream;I)V
    flags: (0x0000) 
    Code:
      stack=2, locals=5, args_size=5
        start local 0 // org.glassfish.grizzly.http.server.CLStaticHttpHandler$NonBlockingDownloadHandler this
        start local 1 // org.glassfish.grizzly.http.server.Response response
        start local 2 // org.glassfish.grizzly.http.io.NIOOutputStream outputStream
        start local 3 // java.io.InputStream inputStream
        start local 4 // int chunkSize
         0: .line 384
            aload 0 /* this */
            invokespecial java.lang.Object.<init>:()V
         1: .line 388
            aload 0 /* this */
            aload 1 /* response */
            putfield org.glassfish.grizzly.http.server.CLStaticHttpHandler$NonBlockingDownloadHandler.response:Lorg/glassfish/grizzly/http/server/Response;
         2: .line 389
            aload 0 /* this */
            aload 2 /* outputStream */
            putfield org.glassfish.grizzly.http.server.CLStaticHttpHandler$NonBlockingDownloadHandler.outputStream:Lorg/glassfish/grizzly/http/io/NIOOutputStream;
         3: .line 390
            aload 0 /* this */
            aload 3 /* inputStream */
            putfield org.glassfish.grizzly.http.server.CLStaticHttpHandler$NonBlockingDownloadHandler.inputStream:Ljava/io/InputStream;
         4: .line 391
            aload 0 /* this */
            aload 1 /* response */
            invokevirtual org.glassfish.grizzly.http.server.Response.getRequest:()Lorg/glassfish/grizzly/http/server/Request;
            invokevirtual org.glassfish.grizzly.http.server.Request.getContext:()Lorg/glassfish/grizzly/filterchain/FilterChainContext;
            invokevirtual org.glassfish.grizzly.filterchain.FilterChainContext.getMemoryManager:()Lorg/glassfish/grizzly/memory/MemoryManager;
            putfield org.glassfish.grizzly.http.server.CLStaticHttpHandler$NonBlockingDownloadHandler.mm:Lorg/glassfish/grizzly/memory/MemoryManager;
         5: .line 392
            aload 0 /* this */
            iload 4 /* chunkSize */
            putfield org.glassfish.grizzly.http.server.CLStaticHttpHandler$NonBlockingDownloadHandler.chunkSize:I
         6: .line 393
            return
        end local 4 // int chunkSize
        end local 3 // java.io.InputStream inputStream
        end local 2 // org.glassfish.grizzly.http.io.NIOOutputStream outputStream
        end local 1 // org.glassfish.grizzly.http.server.Response response
        end local 0 // org.glassfish.grizzly.http.server.CLStaticHttpHandler$NonBlockingDownloadHandler this
      LocalVariableTable:
        Start  End  Slot          Name  Signature
            0    7     0          this  Lorg/glassfish/grizzly/http/server/CLStaticHttpHandler$NonBlockingDownloadHandler;
            0    7     1      response  Lorg/glassfish/grizzly/http/server/Response;
            0    7     2  outputStream  Lorg/glassfish/grizzly/http/io/NIOOutputStream;
            0    7     3   inputStream  Ljava/io/InputStream;
            0    7     4     chunkSize  I
    MethodParameters:
              Name  Flags
      response      final
      outputStream  final
      inputStream   final
      chunkSize     final

  public void onWritePossible();
    descriptor: ()V
    flags: (0x0001) ACC_PUBLIC
    Code:
      stack=3, locals=2, args_size=1
        start local 0 // org.glassfish.grizzly.http.server.CLStaticHttpHandler$NonBlockingDownloadHandler this
         0: .line 397
            getstatic org.glassfish.grizzly.http.server.CLStaticHttpHandler.LOGGER:Ljava/util/logging/Logger;
            getstatic java.util.logging.Level.FINE:Ljava/util/logging/Level;
            ldc "[onWritePossible]"
            invokevirtual java.util.logging.Logger.log:(Ljava/util/logging/Level;Ljava/lang/String;)V
         1: .line 399
            aload 0 /* this */
            invokevirtual org.glassfish.grizzly.http.server.CLStaticHttpHandler$NonBlockingDownloadHandler.sendChunk:()Z
            istore 1 /* isWriteMore */
        start local 1 // boolean isWriteMore
         2: .line 401
            iload 1 /* isWriteMore */
            ifeq 4
         3: .line 403
            aload 0 /* this */
            getfield org.glassfish.grizzly.http.server.CLStaticHttpHandler$NonBlockingDownloadHandler.outputStream:Lorg/glassfish/grizzly/http/io/NIOOutputStream;
            aload 0 /* this */
            invokevirtual org.glassfish.grizzly.http.io.NIOOutputStream.notifyCanWrite:(Lorg/glassfish/grizzly/WriteHandler;)V
         4: .line 405
      StackMap locals: int
      StackMap stack:
            return
        end local 1 // boolean isWriteMore
        end local 0 // org.glassfish.grizzly.http.server.CLStaticHttpHandler$NonBlockingDownloadHandler this
      LocalVariableTable:
        Start  End  Slot         Name  Signature
            0    5     0         this  Lorg/glassfish/grizzly/http/server/CLStaticHttpHandler$NonBlockingDownloadHandler;
            2    5     1  isWriteMore  Z
    Exceptions:
      throws java.lang.Exception

  public void onError(java.lang.Throwable);
    descriptor: (Ljava/lang/Throwable;)V
    flags: (0x0001) ACC_PUBLIC
    Code:
      stack=4, locals=2, args_size=2
        start local 0 // org.glassfish.grizzly.http.server.CLStaticHttpHandler$NonBlockingDownloadHandler this
        start local 1 // java.lang.Throwable t
         0: .line 409
            getstatic org.glassfish.grizzly.http.server.CLStaticHttpHandler.LOGGER:Ljava/util/logging/Logger;
            getstatic java.util.logging.Level.FINE:Ljava/util/logging/Level;
            ldc "[onError] "
            aload 1 /* t */
            invokevirtual java.util.logging.Logger.log:(Ljava/util/logging/Level;Ljava/lang/String;Ljava/lang/Throwable;)V
         1: .line 410
            aload 0 /* this */
            getfield org.glassfish.grizzly.http.server.CLStaticHttpHandler$NonBlockingDownloadHandler.response:Lorg/glassfish/grizzly/http/server/Response;
            sipush 500
            aload 1 /* t */
            invokevirtual java.lang.Throwable.getMessage:()Ljava/lang/String;
            invokevirtual org.glassfish.grizzly.http.server.Response.setStatus:(ILjava/lang/String;)V
         2: .line 411
            aload 0 /* this */
            iconst_1
            invokevirtual org.glassfish.grizzly.http.server.CLStaticHttpHandler$NonBlockingDownloadHandler.complete:(Z)V
         3: .line 412
            return
        end local 1 // java.lang.Throwable t
        end local 0 // org.glassfish.grizzly.http.server.CLStaticHttpHandler$NonBlockingDownloadHandler this
      LocalVariableTable:
        Start  End  Slot  Name  Signature
            0    4     0  this  Lorg/glassfish/grizzly/http/server/CLStaticHttpHandler$NonBlockingDownloadHandler;
            0    4     1     t  Ljava/lang/Throwable;
    MethodParameters:
      Name  Flags
      t     

  private boolean sendChunk();
    descriptor: ()Z
    flags: (0x0002) ACC_PRIVATE
    Code:
      stack=4, locals=11, args_size=1
        start local 0 // org.glassfish.grizzly.http.server.CLStaticHttpHandler$NonBlockingDownloadHandler this
         0: .line 419
            aconst_null
            astore 1 /* buffer */
        start local 1 // org.glassfish.grizzly.Buffer buffer
         1: .line 421
            aload 0 /* this */
            getfield org.glassfish.grizzly.http.server.CLStaticHttpHandler$NonBlockingDownloadHandler.mm:Lorg/glassfish/grizzly/memory/MemoryManager;
            aload 0 /* this */
            getfield org.glassfish.grizzly.http.server.CLStaticHttpHandler$NonBlockingDownloadHandler.chunkSize:I
            invokeinterface org.glassfish.grizzly.memory.MemoryManager.willAllocateDirect:(I)Z
            ifne 38
         2: .line 422
            aload 0 /* this */
            getfield org.glassfish.grizzly.http.server.CLStaticHttpHandler$NonBlockingDownloadHandler.mm:Lorg/glassfish/grizzly/memory/MemoryManager;
            aload 0 /* this */
            getfield org.glassfish.grizzly.http.server.CLStaticHttpHandler$NonBlockingDownloadHandler.chunkSize:I
            invokeinterface org.glassfish.grizzly.memory.MemoryManager.allocate:(I)Lorg/glassfish/grizzly/Buffer;
            astore 1 /* buffer */
         3: .line 424
            aload 1 /* buffer */
            invokeinterface org.glassfish.grizzly.Buffer.isComposite:()Z
            ifne 9
         4: .line 425
            aload 0 /* this */
            getfield org.glassfish.grizzly.http.server.CLStaticHttpHandler$NonBlockingDownloadHandler.inputStream:Ljava/io/InputStream;
            aload 1 /* buffer */
            invokeinterface org.glassfish.grizzly.Buffer.array:()[B
         5: .line 426
            aload 1 /* buffer */
            invokeinterface org.glassfish.grizzly.Buffer.position:()I
            aload 1 /* buffer */
            invokeinterface org.glassfish.grizzly.Buffer.arrayOffset:()I
            iadd
         6: .line 427
            aload 0 /* this */
            getfield org.glassfish.grizzly.http.server.CLStaticHttpHandler$NonBlockingDownloadHandler.chunkSize:I
         7: .line 425
            invokevirtual java.io.InputStream.read:([BII)I
            istore 2 /* len */
        start local 2 // int len
         8: .line 428
            goto 32
        end local 2 // int len
         9: .line 429
      StackMap locals: org.glassfish.grizzly.Buffer
      StackMap stack:
            aload 1 /* buffer */
            invokeinterface org.glassfish.grizzly.Buffer.toBufferArray:()Lorg/glassfish/grizzly/memory/BufferArray;
            astore 3 /* bufferArray */
        start local 3 // org.glassfish.grizzly.memory.BufferArray bufferArray
        10: .line 430
            aload 3 /* bufferArray */
            invokevirtual org.glassfish.grizzly.memory.BufferArray.size:()I
            istore 4 /* size */
        start local 4 // int size
        11: .line 431
            aload 3 /* bufferArray */
            invokevirtual org.glassfish.grizzly.memory.BufferArray.getArray:()[Ljava/lang/Object;
            checkcast org.glassfish.grizzly.Buffer[]
            astore 5 /* buffers */
        start local 5 // org.glassfish.grizzly.Buffer[] buffers
        12: .line 433
            iconst_0
            istore 6 /* lenCounter */
        start local 6 // int lenCounter
        13: .line 434
            iconst_0
            istore 7 /* i */
        start local 7 // int i
        14: goto 26
        15: .line 435
      StackMap locals: org.glassfish.grizzly.http.server.CLStaticHttpHandler$NonBlockingDownloadHandler org.glassfish.grizzly.Buffer top org.glassfish.grizzly.memory.BufferArray int org.glassfish.grizzly.Buffer[] int int
      StackMap stack:
            aload 5 /* buffers */
            iload 7 /* i */
            aaload
            astore 8 /* subBuffer */
        start local 8 // org.glassfish.grizzly.Buffer subBuffer
        16: .line 436
            aload 8 /* subBuffer */
            invokeinterface org.glassfish.grizzly.Buffer.remaining:()I
            istore 9 /* subBufferLen */
        start local 9 // int subBufferLen
        17: .line 437
            aload 0 /* this */
            getfield org.glassfish.grizzly.http.server.CLStaticHttpHandler$NonBlockingDownloadHandler.inputStream:Ljava/io/InputStream;
            aload 8 /* subBuffer */
            invokeinterface org.glassfish.grizzly.Buffer.array:()[B
        18: .line 438
            aload 8 /* subBuffer */
            invokeinterface org.glassfish.grizzly.Buffer.position:()I
            aload 8 /* subBuffer */
            invokeinterface org.glassfish.grizzly.Buffer.arrayOffset:()I
            iadd
        19: .line 439
            iload 9 /* subBufferLen */
        20: .line 437
            invokevirtual java.io.InputStream.read:([BII)I
            istore 10 /* justReadLen */
        start local 10 // int justReadLen
        21: .line 441
            iload 10 /* justReadLen */
            ifle 23
        22: .line 442
            iload 6 /* lenCounter */
            iload 10 /* justReadLen */
            iadd
            istore 6 /* lenCounter */
        23: .line 445
      StackMap locals: org.glassfish.grizzly.Buffer int int
      StackMap stack:
            iload 10 /* justReadLen */
            iload 9 /* subBufferLen */
            if_icmpge 25
        24: .line 446
            goto 27
        end local 10 // int justReadLen
        end local 9 // int subBufferLen
        end local 8 // org.glassfish.grizzly.Buffer subBuffer
        25: .line 434
      StackMap locals:
      StackMap stack:
            iinc 7 /* i */ 1
      StackMap locals:
      StackMap stack:
        26: iload 7 /* i */
            iload 4 /* size */
            if_icmplt 15
        end local 7 // int i
        27: .line 450
      StackMap locals:
      StackMap stack:
            aload 3 /* bufferArray */
            invokevirtual org.glassfish.grizzly.memory.BufferArray.restore:()V
        28: .line 451
            aload 3 /* bufferArray */
            invokevirtual org.glassfish.grizzly.memory.BufferArray.recycle:()V
        29: .line 453
            iload 6 /* lenCounter */
            ifle 30
            iload 6 /* lenCounter */
            goto 31
      StackMap locals:
      StackMap stack:
        30: iconst_m1
      StackMap locals:
      StackMap stack: int
        31: istore 2 /* len */
        end local 6 // int lenCounter
        end local 5 // org.glassfish.grizzly.Buffer[] buffers
        end local 4 // int size
        end local 3 // org.glassfish.grizzly.memory.BufferArray bufferArray
        start local 2 // int len
        32: .line 456
      StackMap locals: org.glassfish.grizzly.http.server.CLStaticHttpHandler$NonBlockingDownloadHandler org.glassfish.grizzly.Buffer int
      StackMap stack:
            iload 2 /* len */
            ifle 35
        33: .line 457
            aload 1 /* buffer */
            aload 1 /* buffer */
            invokeinterface org.glassfish.grizzly.Buffer.position:()I
            iload 2 /* len */
            iadd
            invokeinterface org.glassfish.grizzly.Buffer.position:(I)Lorg/glassfish/grizzly/Buffer;
            pop
        34: .line 458
            goto 43
        35: .line 459
      StackMap locals:
      StackMap stack:
            aload 1 /* buffer */
            invokeinterface org.glassfish.grizzly.Buffer.dispose:()V
        36: .line 460
            aconst_null
            astore 1 /* buffer */
        end local 2 // int len
        37: .line 462
            goto 43
        38: .line 463
      StackMap locals:
      StackMap stack:
            aload 0 /* this */
            getfield org.glassfish.grizzly.http.server.CLStaticHttpHandler$NonBlockingDownloadHandler.chunkSize:I
            newarray 8
            astore 2 /* buf */
        start local 2 // byte[] buf
        39: .line 464
            aload 0 /* this */
            getfield org.glassfish.grizzly.http.server.CLStaticHttpHandler$NonBlockingDownloadHandler.inputStream:Ljava/io/InputStream;
            aload 2 /* buf */
            invokevirtual java.io.InputStream.read:([B)I
            istore 3 /* len */
        start local 3 // int len
        40: .line 465
            iload 3 /* len */
            ifle 43
        41: .line 466
            aload 0 /* this */
            getfield org.glassfish.grizzly.http.server.CLStaticHttpHandler$NonBlockingDownloadHandler.mm:Lorg/glassfish/grizzly/memory/MemoryManager;
            iload 3 /* len */
            invokeinterface org.glassfish.grizzly.memory.MemoryManager.allocate:(I)Lorg/glassfish/grizzly/Buffer;
            astore 1 /* buffer */
        42: .line 467
            aload 1 /* buffer */
            aload 2 /* buf */
            invokeinterface org.glassfish.grizzly.Buffer.put:([B)Lorg/glassfish/grizzly/Buffer;
            pop
        end local 3 // int len
        end local 2 // byte[] buf
        43: .line 471
      StackMap locals:
      StackMap stack:
            aload 1 /* buffer */
            ifnonnull 46
        44: .line 472
            aload 0 /* this */
            iconst_0
            invokevirtual org.glassfish.grizzly.http.server.CLStaticHttpHandler$NonBlockingDownloadHandler.complete:(Z)V
        45: .line 473
            iconst_0
            ireturn
        46: .line 476
      StackMap locals:
      StackMap stack:
            aload 1 /* buffer */
            iconst_1
            invokeinterface org.glassfish.grizzly.Buffer.allowBufferDispose:(Z)V
        47: .line 477
            aload 1 /* buffer */
            invokeinterface org.glassfish.grizzly.Buffer.trim:()V
        48: .line 480
            aload 0 /* this */
            getfield org.glassfish.grizzly.http.server.CLStaticHttpHandler$NonBlockingDownloadHandler.outputStream:Lorg/glassfish/grizzly/http/io/NIOOutputStream;
            aload 1 /* buffer */
            invokevirtual org.glassfish.grizzly.http.io.NIOOutputStream.write:(Lorg/glassfish/grizzly/Buffer;)V
        49: .line 482
            iconst_1
            ireturn
        end local 1 // org.glassfish.grizzly.Buffer buffer
        end local 0 // org.glassfish.grizzly.http.server.CLStaticHttpHandler$NonBlockingDownloadHandler this
      LocalVariableTable:
        Start  End  Slot          Name  Signature
            0   50     0          this  Lorg/glassfish/grizzly/http/server/CLStaticHttpHandler$NonBlockingDownloadHandler;
            1   50     1        buffer  Lorg/glassfish/grizzly/Buffer;
            8    9     2           len  I
           32   37     2           len  I
           10   32     3   bufferArray  Lorg/glassfish/grizzly/memory/BufferArray;
           11   32     4          size  I
           12   32     5       buffers  [Lorg/glassfish/grizzly/Buffer;
           13   32     6    lenCounter  I
           14   27     7             i  I
           16   25     8     subBuffer  Lorg/glassfish/grizzly/Buffer;
           17   25     9  subBufferLen  I
           21   25    10   justReadLen  I
           39   43     2           buf  [B
           40   43     3           len  I
    Exceptions:
      throws java.io.IOException

  private void complete(boolean);
    descriptor: (Z)V
    flags: (0x0002) ACC_PRIVATE
    Code:
      stack=3, locals=3, args_size=2
        start local 0 // org.glassfish.grizzly.http.server.CLStaticHttpHandler$NonBlockingDownloadHandler this
        start local 1 // boolean isError
         0: .line 490
            aload 0 /* this */
            getfield org.glassfish.grizzly.http.server.CLStaticHttpHandler$NonBlockingDownloadHandler.inputStream:Ljava/io/InputStream;
            invokevirtual java.io.InputStream.close:()V
         1: .line 491
            goto 5
      StackMap locals:
      StackMap stack: java.io.IOException
         2: astore 2 /* e */
        start local 2 // java.io.IOException e
         3: .line 492
            iload 1 /* isError */
            ifne 5
         4: .line 493
            aload 0 /* this */
            getfield org.glassfish.grizzly.http.server.CLStaticHttpHandler$NonBlockingDownloadHandler.response:Lorg/glassfish/grizzly/http/server/Response;
            sipush 500
            aload 2 /* e */
            invokevirtual java.io.IOException.getMessage:()Ljava/lang/String;
            invokevirtual org.glassfish.grizzly.http.server.Response.setStatus:(ILjava/lang/String;)V
        end local 2 // java.io.IOException e
         5: .line 498
      StackMap locals:
      StackMap stack:
            aload 0 /* this */
            getfield org.glassfish.grizzly.http.server.CLStaticHttpHandler$NonBlockingDownloadHandler.outputStream:Lorg/glassfish/grizzly/http/io/NIOOutputStream;
            invokevirtual org.glassfish.grizzly.http.io.NIOOutputStream.close:()V
         6: .line 499
            goto 10
      StackMap locals:
      StackMap stack: java.io.IOException
         7: astore 2 /* e */
        start local 2 // java.io.IOException e
         8: .line 500
            iload 1 /* isError */
            ifne 10
         9: .line 501
            aload 0 /* this */
            getfield org.glassfish.grizzly.http.server.CLStaticHttpHandler$NonBlockingDownloadHandler.response:Lorg/glassfish/grizzly/http/server/Response;
            sipush 500
            aload 2 /* e */
            invokevirtual java.io.IOException.getMessage:()Ljava/lang/String;
            invokevirtual org.glassfish.grizzly.http.server.Response.setStatus:(ILjava/lang/String;)V
        end local 2 // java.io.IOException e
        10: .line 505
      StackMap locals:
      StackMap stack:
            aload 0 /* this */
            getfield org.glassfish.grizzly.http.server.CLStaticHttpHandler$NonBlockingDownloadHandler.response:Lorg/glassfish/grizzly/http/server/Response;
            invokevirtual org.glassfish.grizzly.http.server.Response.isSuspended:()Z
            ifeq 13
        11: .line 506
            aload 0 /* this */
            getfield org.glassfish.grizzly.http.server.CLStaticHttpHandler$NonBlockingDownloadHandler.response:Lorg/glassfish/grizzly/http/server/Response;
            invokevirtual org.glassfish.grizzly.http.server.Response.resume:()V
        12: .line 507
            goto 14
        13: .line 508
      StackMap locals:
      StackMap stack:
            aload 0 /* this */
            getfield org.glassfish.grizzly.http.server.CLStaticHttpHandler$NonBlockingDownloadHandler.response:Lorg/glassfish/grizzly/http/server/Response;
            invokevirtual org.glassfish.grizzly.http.server.Response.finish:()V
        14: .line 510
      StackMap locals:
      StackMap stack:
            return
        end local 1 // boolean isError
        end local 0 // org.glassfish.grizzly.http.server.CLStaticHttpHandler$NonBlockingDownloadHandler this
      LocalVariableTable:
        Start  End  Slot     Name  Signature
            0   15     0     this  Lorg/glassfish/grizzly/http/server/CLStaticHttpHandler$NonBlockingDownloadHandler;
            0   15     1  isError  Z
            3    5     2        e  Ljava/io/IOException;
            8   10     2        e  Ljava/io/IOException;
      Exception table:
        from    to  target  type
           0     1       2  Class java.io.IOException
           5     6       7  Class java.io.IOException
    MethodParameters:
         Name  Flags
      isError  final
}
SourceFile: "CLStaticHttpHandler.java"
NestHost: org.glassfish.grizzly.http.server.CLStaticHttpHandler
InnerClasses:
  private NonBlockingDownloadHandler = org.glassfish.grizzly.http.server.CLStaticHttpHandler$NonBlockingDownloadHandler of org.glassfish.grizzly.http.server.CLStaticHttpHandler