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 360
            aload 0 /* this */
            invokespecial java.lang.Object.<init>:()V
         1: .line 362
            aload 0 /* this */
            aload 1 /* response */
            putfield org.glassfish.grizzly.http.server.CLStaticHttpHandler$NonBlockingDownloadHandler.response:Lorg/glassfish/grizzly/http/server/Response;
         2: .line 363
            aload 0 /* this */
            aload 2 /* outputStream */
            putfield org.glassfish.grizzly.http.server.CLStaticHttpHandler$NonBlockingDownloadHandler.outputStream:Lorg/glassfish/grizzly/http/io/NIOOutputStream;
         3: .line 364
            aload 0 /* this */
            aload 3 /* inputStream */
            putfield org.glassfish.grizzly.http.server.CLStaticHttpHandler$NonBlockingDownloadHandler.inputStream:Ljava/io/InputStream;
         4: .line 365
            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 366
            aload 0 /* this */
            iload 4 /* chunkSize */
            putfield org.glassfish.grizzly.http.server.CLStaticHttpHandler$NonBlockingDownloadHandler.chunkSize:I
         6: .line 367
            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 371
            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 373
            aload 0 /* this */
            invokevirtual org.glassfish.grizzly.http.server.CLStaticHttpHandler$NonBlockingDownloadHandler.sendChunk:()Z
            istore 1 /* isWriteMore */
        start local 1 // boolean isWriteMore
         2: .line 375
            iload 1 /* isWriteMore */
            ifeq 4
         3: .line 377
            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 379
      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 383
            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 384
            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 385
            aload 0 /* this */
            iconst_1
            invokevirtual org.glassfish.grizzly.http.server.CLStaticHttpHandler$NonBlockingDownloadHandler.complete:(Z)V
         3: .line 386
            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 393
            aconst_null
            astore 1 /* buffer */
        start local 1 // org.glassfish.grizzly.Buffer buffer
         1: .line 395
            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 32
         2: .line 396
            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 398
            aload 1 /* buffer */
            invokeinterface org.glassfish.grizzly.Buffer.isComposite:()Z
            ifne 6
         4: .line 399
            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
            aload 1 /* buffer */
            invokeinterface org.glassfish.grizzly.Buffer.position:()I
            aload 1 /* buffer */
            invokeinterface org.glassfish.grizzly.Buffer.arrayOffset:()I
            iadd
            aload 0 /* this */
            getfield org.glassfish.grizzly.http.server.CLStaticHttpHandler$NonBlockingDownloadHandler.chunkSize:I
            invokevirtual java.io.InputStream.read:([BII)I
            istore 2 /* len */
        start local 2 // int len
         5: .line 400
            goto 26
        end local 2 // int len
         6: .line 401
      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
         7: .line 402
            aload 3 /* bufferArray */
            invokevirtual org.glassfish.grizzly.memory.BufferArray.size:()I
            istore 4 /* size */
        start local 4 // int size
         8: .line 403
            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
         9: .line 405
            iconst_0
            istore 6 /* lenCounter */
        start local 6 // int lenCounter
        10: .line 406
            iconst_0
            istore 7 /* i */
        start local 7 // int i
        11: goto 20
        12: .line 407
      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
        13: .line 408
            aload 8 /* subBuffer */
            invokeinterface org.glassfish.grizzly.Buffer.remaining:()I
            istore 9 /* subBufferLen */
        start local 9 // int subBufferLen
        14: .line 409
            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
            aload 8 /* subBuffer */
            invokeinterface org.glassfish.grizzly.Buffer.position:()I
            aload 8 /* subBuffer */
            invokeinterface org.glassfish.grizzly.Buffer.arrayOffset:()I
            iadd
            iload 9 /* subBufferLen */
            invokevirtual java.io.InputStream.read:([BII)I
            istore 10 /* justReadLen */
        start local 10 // int justReadLen
        15: .line 411
            iload 10 /* justReadLen */
            ifle 17
        16: .line 412
            iload 6 /* lenCounter */
            iload 10 /* justReadLen */
            iadd
            istore 6 /* lenCounter */
        17: .line 415
      StackMap locals: org.glassfish.grizzly.Buffer int int
      StackMap stack:
            iload 10 /* justReadLen */
            iload 9 /* subBufferLen */
            if_icmpge 19
        18: .line 416
            goto 21
        end local 10 // int justReadLen
        end local 9 // int subBufferLen
        end local 8 // org.glassfish.grizzly.Buffer subBuffer
        19: .line 406
      StackMap locals:
      StackMap stack:
            iinc 7 /* i */ 1
      StackMap locals:
      StackMap stack:
        20: iload 7 /* i */
            iload 4 /* size */
            if_icmplt 12
        end local 7 // int i
        21: .line 420
      StackMap locals:
      StackMap stack:
            aload 3 /* bufferArray */
            invokevirtual org.glassfish.grizzly.memory.BufferArray.restore:()V
        22: .line 421
            aload 3 /* bufferArray */
            invokevirtual org.glassfish.grizzly.memory.BufferArray.recycle:()V
        23: .line 423
            iload 6 /* lenCounter */
            ifle 24
            iload 6 /* lenCounter */
            goto 25
      StackMap locals:
      StackMap stack:
        24: iconst_m1
      StackMap locals:
      StackMap stack: int
        25: 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
        26: .line 426
      StackMap locals: org.glassfish.grizzly.http.server.CLStaticHttpHandler$NonBlockingDownloadHandler org.glassfish.grizzly.Buffer int
      StackMap stack:
            iload 2 /* len */
            ifle 29
        27: .line 427
            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
        28: .line 428
            goto 37
        29: .line 429
      StackMap locals:
      StackMap stack:
            aload 1 /* buffer */
            invokeinterface org.glassfish.grizzly.Buffer.dispose:()V
        30: .line 430
            aconst_null
            astore 1 /* buffer */
        end local 2 // int len
        31: .line 432
            goto 37
        32: .line 433
      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
        33: .line 434
            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
        34: .line 435
            iload 3 /* len */
            ifle 37
        35: .line 436
            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 */
        36: .line 437
            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
        37: .line 441
      StackMap locals:
      StackMap stack:
            aload 1 /* buffer */
            ifnonnull 40
        38: .line 442
            aload 0 /* this */
            iconst_0
            invokevirtual org.glassfish.grizzly.http.server.CLStaticHttpHandler$NonBlockingDownloadHandler.complete:(Z)V
        39: .line 443
            iconst_0
            ireturn
        40: .line 446
      StackMap locals:
      StackMap stack:
            aload 1 /* buffer */
            iconst_1
            invokeinterface org.glassfish.grizzly.Buffer.allowBufferDispose:(Z)V
        41: .line 447
            aload 1 /* buffer */
            invokeinterface org.glassfish.grizzly.Buffer.trim:()V
        42: .line 450
            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
        43: .line 452
            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   44     0          this  Lorg/glassfish/grizzly/http/server/CLStaticHttpHandler$NonBlockingDownloadHandler;
            1   44     1        buffer  Lorg/glassfish/grizzly/Buffer;
            5    6     2           len  I
           26   31     2           len  I
            7   26     3   bufferArray  Lorg/glassfish/grizzly/memory/BufferArray;
            8   26     4          size  I
            9   26     5       buffers  [Lorg/glassfish/grizzly/Buffer;
           10   26     6    lenCounter  I
           11   21     7             i  I
           13   19     8     subBuffer  Lorg/glassfish/grizzly/Buffer;
           14   19     9  subBufferLen  I
           15   19    10   justReadLen  I
           33   37     2           buf  [B
           34   37     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 460
            aload 0 /* this */
            getfield org.glassfish.grizzly.http.server.CLStaticHttpHandler$NonBlockingDownloadHandler.inputStream:Ljava/io/InputStream;
            invokevirtual java.io.InputStream.close:()V
         1: .line 461
            goto 5
      StackMap locals:
      StackMap stack: java.io.IOException
         2: astore 2 /* e */
        start local 2 // java.io.IOException e
         3: .line 462
            iload 1 /* isError */
            ifne 5
         4: .line 463
            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 468
      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 469
            goto 10
      StackMap locals:
      StackMap stack: java.io.IOException
         7: astore 2 /* e */
        start local 2 // java.io.IOException e
         8: .line 470
            iload 1 /* isError */
            ifne 10
         9: .line 471
            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 475
      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 476
            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 477
            goto 14
        13: .line 478
      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 480
      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