public abstract class org.glassfish.grizzly.streams.BufferedOutput implements org.glassfish.grizzly.streams.Output
  minor version: 0
  major version: 59
  flags: flags: (0x0421) ACC_PUBLIC, ACC_SUPER, ACC_ABSTRACT
  this_class: org.glassfish.grizzly.streams.BufferedOutput
  super_class: java.lang.Object
{
  protected static final java.lang.Integer ZERO;
    descriptor: Ljava/lang/Integer;
    flags: (0x001c) ACC_PROTECTED, ACC_STATIC, ACC_FINAL

  protected static final org.glassfish.grizzly.GrizzlyFuture<java.lang.Integer> ZERO_READY_FUTURE;
    descriptor: Lorg/glassfish/grizzly/GrizzlyFuture;
    flags: (0x001c) ACC_PROTECTED, ACC_STATIC, ACC_FINAL
    Signature: Lorg/glassfish/grizzly/GrizzlyFuture<Ljava/lang/Integer;>;

  protected final int bufferSize;
    descriptor: I
    flags: (0x0014) ACC_PROTECTED, ACC_FINAL

  protected org.glassfish.grizzly.memory.CompositeBuffer multiBufferWindow;
    descriptor: Lorg/glassfish/grizzly/memory/CompositeBuffer;
    flags: (0x0004) ACC_PROTECTED

  private org.glassfish.grizzly.Buffer buffer;
    descriptor: Lorg/glassfish/grizzly/Buffer;
    flags: (0x0002) ACC_PRIVATE

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

  protected final java.util.concurrent.atomic.AtomicBoolean isClosed;
    descriptor: Ljava/util/concurrent/atomic/AtomicBoolean;
    flags: (0x0014) ACC_PROTECTED, ACC_FINAL

  static void <clinit>();
    descriptor: ()V
    flags: (0x0008) ACC_STATIC
    Code:
      stack=1, locals=0, args_size=0
         0: .line 36
            iconst_0
            invokestatic java.lang.Integer.valueOf:(I)Ljava/lang/Integer;
            putstatic org.glassfish.grizzly.streams.BufferedOutput.ZERO:Ljava/lang/Integer;
         1: .line 37
            iconst_0
            invokestatic java.lang.Integer.valueOf:(I)Ljava/lang/Integer;
            invokestatic org.glassfish.grizzly.impl.ReadyFutureImpl.create:(Ljava/lang/Object;)Lorg/glassfish/grizzly/impl/ReadyFutureImpl;
            putstatic org.glassfish.grizzly.streams.BufferedOutput.ZERO_READY_FUTURE:Lorg/glassfish/grizzly/GrizzlyFuture;
            return
      LocalVariableTable:
        Start  End  Slot  Name  Signature

  public void <init>();
    descriptor: ()V
    flags: (0x0001) ACC_PUBLIC
    Code:
      stack=2, locals=1, args_size=1
        start local 0 // org.glassfish.grizzly.streams.BufferedOutput this
         0: .line 47
            aload 0 /* this */
            sipush 8192
            invokespecial org.glassfish.grizzly.streams.BufferedOutput.<init>:(I)V
         1: .line 48
            return
        end local 0 // org.glassfish.grizzly.streams.BufferedOutput this
      LocalVariableTable:
        Start  End  Slot  Name  Signature
            0    2     0  this  Lorg/glassfish/grizzly/streams/BufferedOutput;

  public void <init>(int);
    descriptor: (I)V
    flags: (0x0001) ACC_PUBLIC
    Code:
      stack=3, locals=2, args_size=2
        start local 0 // org.glassfish.grizzly.streams.BufferedOutput this
        start local 1 // int bufferSize
         0: .line 50
            aload 0 /* this */
            invokespecial java.lang.Object.<init>:()V
         1: .line 44
            aload 0 /* this */
            new java.util.concurrent.atomic.AtomicBoolean
            dup
            invokespecial java.util.concurrent.atomic.AtomicBoolean.<init>:()V
            putfield org.glassfish.grizzly.streams.BufferedOutput.isClosed:Ljava/util/concurrent/atomic/AtomicBoolean;
         2: .line 51
            aload 0 /* this */
            iload 1 /* bufferSize */
            putfield org.glassfish.grizzly.streams.BufferedOutput.bufferSize:I
         3: .line 52
            return
        end local 1 // int bufferSize
        end local 0 // org.glassfish.grizzly.streams.BufferedOutput this
      LocalVariableTable:
        Start  End  Slot        Name  Signature
            0    4     0        this  Lorg/glassfish/grizzly/streams/BufferedOutput;
            0    4     1  bufferSize  I
    MethodParameters:
            Name  Flags
      bufferSize  

  protected abstract void onClosed();
    descriptor: ()V
    flags: (0x0404) ACC_PROTECTED, ACC_ABSTRACT
    Exceptions:
      throws java.io.IOException

  protected abstract org.glassfish.grizzly.GrizzlyFuture<java.lang.Integer> flush0(org.glassfish.grizzly.Buffer, org.glassfish.grizzly.CompletionHandler<java.lang.Integer>);
    descriptor: (Lorg/glassfish/grizzly/Buffer;Lorg/glassfish/grizzly/CompletionHandler;)Lorg/glassfish/grizzly/GrizzlyFuture;
    flags: (0x0404) ACC_PROTECTED, ACC_ABSTRACT
    Exceptions:
      throws java.io.IOException
    Signature: (Lorg/glassfish/grizzly/Buffer;Lorg/glassfish/grizzly/CompletionHandler<Ljava/lang/Integer;>;)Lorg/glassfish/grizzly/GrizzlyFuture<Ljava/lang/Integer;>;
    MethodParameters:
                   Name  Flags
      buffer             final
      completionHandler  final

  protected abstract org.glassfish.grizzly.Buffer newBuffer(int);
    descriptor: (I)Lorg/glassfish/grizzly/Buffer;
    flags: (0x0404) ACC_PROTECTED, ACC_ABSTRACT
    MethodParameters:
      Name  Flags
      size  

  protected abstract org.glassfish.grizzly.Buffer reallocateBuffer(org.glassfish.grizzly.Buffer, int);
    descriptor: (Lorg/glassfish/grizzly/Buffer;I)Lorg/glassfish/grizzly/Buffer;
    flags: (0x0404) ACC_PROTECTED, ACC_ABSTRACT
    MethodParameters:
           Name  Flags
      oldBuffer  
      size       

  public void write(byte);
    descriptor: (B)V
    flags: (0x0001) ACC_PUBLIC
    Code:
      stack=2, locals=2, args_size=2
        start local 0 // org.glassfish.grizzly.streams.BufferedOutput this
        start local 1 // byte data
         0: .line 64
            aload 0 /* this */
            iconst_1
            invokevirtual org.glassfish.grizzly.streams.BufferedOutput.ensureBufferCapacity:(I)V
         1: .line 65
            aload 0 /* this */
            getfield org.glassfish.grizzly.streams.BufferedOutput.buffer:Lorg/glassfish/grizzly/Buffer;
            iload 1 /* data */
            invokeinterface org.glassfish.grizzly.Buffer.put:(B)Lorg/glassfish/grizzly/Buffer;
            pop
         2: .line 66
            return
        end local 1 // byte data
        end local 0 // org.glassfish.grizzly.streams.BufferedOutput this
      LocalVariableTable:
        Start  End  Slot  Name  Signature
            0    3     0  this  Lorg/glassfish/grizzly/streams/BufferedOutput;
            0    3     1  data  B
    Exceptions:
      throws java.io.IOException
    MethodParameters:
      Name  Flags
      data  

  public void write(org.glassfish.grizzly.Buffer);
    descriptor: (Lorg/glassfish/grizzly/Buffer;)V
    flags: (0x0001) ACC_PUBLIC
    Code:
      stack=3, locals=4, args_size=2
        start local 0 // org.glassfish.grizzly.streams.BufferedOutput this
        start local 1 // org.glassfish.grizzly.Buffer bufferToWrite
         0: .line 70
            aload 0 /* this */
            getfield org.glassfish.grizzly.streams.BufferedOutput.multiBufferWindow:Lorg/glassfish/grizzly/memory/CompositeBuffer;
            ifnonnull 2
         1: .line 71
            aload 0 /* this */
            invokestatic org.glassfish.grizzly.memory.CompositeBuffer.newBuffer:()Lorg/glassfish/grizzly/memory/CompositeBuffer;
            putfield org.glassfish.grizzly.streams.BufferedOutput.multiBufferWindow:Lorg/glassfish/grizzly/memory/CompositeBuffer;
         2: .line 74
      StackMap locals:
      StackMap stack:
            aload 0 /* this */
            getfield org.glassfish.grizzly.streams.BufferedOutput.buffer:Lorg/glassfish/grizzly/Buffer;
            ifnull 3
            aload 0 /* this */
            getfield org.glassfish.grizzly.streams.BufferedOutput.buffer:Lorg/glassfish/grizzly/Buffer;
            invokeinterface org.glassfish.grizzly.Buffer.position:()I
            aload 0 /* this */
            getfield org.glassfish.grizzly.streams.BufferedOutput.lastSlicedPosition:I
            isub
            ifeq 3
            iconst_0
            goto 4
      StackMap locals:
      StackMap stack:
         3: iconst_1
      StackMap locals:
      StackMap stack: int
         4: istore 2 /* isInternalBufferEmpty */
        start local 2 // boolean isInternalBufferEmpty
         5: .line 76
            iload 2 /* isInternalBufferEmpty */
            ifne 9
         6: .line 77
            aload 0 /* this */
            getfield org.glassfish.grizzly.streams.BufferedOutput.buffer:Lorg/glassfish/grizzly/Buffer;
            aload 0 /* this */
            getfield org.glassfish.grizzly.streams.BufferedOutput.lastSlicedPosition:I
            aload 0 /* this */
            getfield org.glassfish.grizzly.streams.BufferedOutput.buffer:Lorg/glassfish/grizzly/Buffer;
            invokeinterface org.glassfish.grizzly.Buffer.position:()I
            invokeinterface org.glassfish.grizzly.Buffer.slice:(II)Lorg/glassfish/grizzly/Buffer;
            astore 3 /* slice */
        start local 3 // org.glassfish.grizzly.Buffer slice
         7: .line 79
            aload 0 /* this */
            getfield org.glassfish.grizzly.streams.BufferedOutput.multiBufferWindow:Lorg/glassfish/grizzly/memory/CompositeBuffer;
            aload 3 /* slice */
            invokevirtual org.glassfish.grizzly.memory.CompositeBuffer.append:(Lorg/glassfish/grizzly/Buffer;)Lorg/glassfish/grizzly/memory/CompositeBuffer;
            pop
         8: .line 81
            aload 0 /* this */
            aload 0 /* this */
            getfield org.glassfish.grizzly.streams.BufferedOutput.buffer:Lorg/glassfish/grizzly/Buffer;
            invokeinterface org.glassfish.grizzly.Buffer.position:()I
            putfield org.glassfish.grizzly.streams.BufferedOutput.lastSlicedPosition:I
        end local 3 // org.glassfish.grizzly.Buffer slice
         9: .line 84
      StackMap locals: int
      StackMap stack:
            aload 0 /* this */
            getfield org.glassfish.grizzly.streams.BufferedOutput.multiBufferWindow:Lorg/glassfish/grizzly/memory/CompositeBuffer;
            aload 1 /* bufferToWrite */
            invokevirtual org.glassfish.grizzly.memory.CompositeBuffer.append:(Lorg/glassfish/grizzly/Buffer;)Lorg/glassfish/grizzly/memory/CompositeBuffer;
            pop
        10: .line 85
            aload 0 /* this */
            iconst_0
            invokevirtual org.glassfish.grizzly.streams.BufferedOutput.ensureBufferCapacity:(I)V
        11: .line 86
            return
        end local 2 // boolean isInternalBufferEmpty
        end local 1 // org.glassfish.grizzly.Buffer bufferToWrite
        end local 0 // org.glassfish.grizzly.streams.BufferedOutput this
      LocalVariableTable:
        Start  End  Slot                   Name  Signature
            0   12     0                   this  Lorg/glassfish/grizzly/streams/BufferedOutput;
            0   12     1          bufferToWrite  Lorg/glassfish/grizzly/Buffer;
            5   12     2  isInternalBufferEmpty  Z
            7    9     3                  slice  Lorg/glassfish/grizzly/Buffer;
    Exceptions:
      throws java.io.IOException
    MethodParameters:
               Name  Flags
      bufferToWrite  

  public boolean isBuffered();
    descriptor: ()Z
    flags: (0x0001) ACC_PUBLIC
    Code:
      stack=1, locals=1, args_size=1
        start local 0 // org.glassfish.grizzly.streams.BufferedOutput this
         0: .line 90
            iconst_1
            ireturn
        end local 0 // org.glassfish.grizzly.streams.BufferedOutput this
      LocalVariableTable:
        Start  End  Slot  Name  Signature
            0    1     0  this  Lorg/glassfish/grizzly/streams/BufferedOutput;

  public org.glassfish.grizzly.Buffer getBuffer();
    descriptor: ()Lorg/glassfish/grizzly/Buffer;
    flags: (0x0001) ACC_PUBLIC
    Code:
      stack=1, locals=1, args_size=1
        start local 0 // org.glassfish.grizzly.streams.BufferedOutput this
         0: .line 95
            aload 0 /* this */
            getfield org.glassfish.grizzly.streams.BufferedOutput.buffer:Lorg/glassfish/grizzly/Buffer;
            areturn
        end local 0 // org.glassfish.grizzly.streams.BufferedOutput this
      LocalVariableTable:
        Start  End  Slot  Name  Signature
            0    1     0  this  Lorg/glassfish/grizzly/streams/BufferedOutput;

  public void ensureBufferCapacity(int);
    descriptor: (I)V
    flags: (0x0001) ACC_PUBLIC
    Code:
      stack=5, locals=3, args_size=2
        start local 0 // org.glassfish.grizzly.streams.BufferedOutput this
        start local 1 // int size
         0: .line 100
            iload 1 /* size */
            aload 0 /* this */
            getfield org.glassfish.grizzly.streams.BufferedOutput.bufferSize:I
            if_icmple 2
         1: .line 101
            new java.lang.IllegalArgumentException
            dup
            new java.lang.StringBuilder
            dup
            ldc "Size exceeds max size limit: "
            invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
            aload 0 /* this */
            getfield org.glassfish.grizzly.streams.BufferedOutput.bufferSize:I
            invokevirtual java.lang.StringBuilder.append:(I)Ljava/lang/StringBuilder;
            invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
            invokespecial java.lang.IllegalArgumentException.<init>:(Ljava/lang/String;)V
            athrow
         2: .line 104
      StackMap locals:
      StackMap stack:
            aload 0 /* this */
            invokevirtual org.glassfish.grizzly.streams.BufferedOutput.getBufferedSize:()I
            aload 0 /* this */
            getfield org.glassfish.grizzly.streams.BufferedOutput.bufferSize:I
            if_icmplt 4
         3: .line 105
            aload 0 /* this */
            aconst_null
            invokevirtual org.glassfish.grizzly.streams.BufferedOutput.overflow:(Lorg/glassfish/grizzly/CompletionHandler;)Lorg/glassfish/grizzly/GrizzlyFuture;
            pop
         4: .line 108
      StackMap locals:
      StackMap stack:
            iload 1 /* size */
            ifne 6
         5: .line 109
            return
         6: .line 112
      StackMap locals:
      StackMap stack:
            aload 0 /* this */
            getfield org.glassfish.grizzly.streams.BufferedOutput.buffer:Lorg/glassfish/grizzly/Buffer;
            ifnull 12
         7: .line 113
            aload 0 /* this */
            getfield org.glassfish.grizzly.streams.BufferedOutput.buffer:Lorg/glassfish/grizzly/Buffer;
            invokeinterface org.glassfish.grizzly.Buffer.remaining:()I
            istore 2 /* bufferRemaining */
        start local 2 // int bufferRemaining
         8: .line 114
            iload 2 /* bufferRemaining */
            iload 1 /* size */
            if_icmpge 13
         9: .line 115
            aload 0 /* this */
            aconst_null
            invokevirtual org.glassfish.grizzly.streams.BufferedOutput.overflow:(Lorg/glassfish/grizzly/CompletionHandler;)Lorg/glassfish/grizzly/GrizzlyFuture;
            pop
        10: .line 116
            aload 0 /* this */
            iload 1 /* size */
            invokevirtual org.glassfish.grizzly.streams.BufferedOutput.ensureBufferCapacity:(I)V
        end local 2 // int bufferRemaining
        11: .line 118
            goto 13
        12: .line 119
      StackMap locals:
      StackMap stack:
            aload 0 /* this */
            aload 0 /* this */
            aload 0 /* this */
            getfield org.glassfish.grizzly.streams.BufferedOutput.bufferSize:I
            invokevirtual org.glassfish.grizzly.streams.BufferedOutput.newBuffer:(I)Lorg/glassfish/grizzly/Buffer;
            putfield org.glassfish.grizzly.streams.BufferedOutput.buffer:Lorg/glassfish/grizzly/Buffer;
        13: .line 121
      StackMap locals:
      StackMap stack:
            return
        end local 1 // int size
        end local 0 // org.glassfish.grizzly.streams.BufferedOutput this
      LocalVariableTable:
        Start  End  Slot             Name  Signature
            0   14     0             this  Lorg/glassfish/grizzly/streams/BufferedOutput;
            0   14     1             size  I
            8   11     2  bufferRemaining  I
    Exceptions:
      throws java.io.IOException
    MethodParameters:
      Name  Flags
      size  final

  private org.glassfish.grizzly.GrizzlyFuture<java.lang.Integer> overflow(org.glassfish.grizzly.CompletionHandler<java.lang.Integer>);
    descriptor: (Lorg/glassfish/grizzly/CompletionHandler;)Lorg/glassfish/grizzly/GrizzlyFuture;
    flags: (0x0002) ACC_PRIVATE
    Code:
      stack=3, locals=3, args_size=2
        start local 0 // org.glassfish.grizzly.streams.BufferedOutput this
        start local 1 // org.glassfish.grizzly.CompletionHandler completionHandler
         0: .line 124
            aload 0 /* this */
            getfield org.glassfish.grizzly.streams.BufferedOutput.multiBufferWindow:Lorg/glassfish/grizzly/memory/CompositeBuffer;
            ifnull 20
         1: .line 125
            aload 0 /* this */
            getfield org.glassfish.grizzly.streams.BufferedOutput.buffer:Lorg/glassfish/grizzly/Buffer;
            ifnull 5
            aload 0 /* this */
            getfield org.glassfish.grizzly.streams.BufferedOutput.buffer:Lorg/glassfish/grizzly/Buffer;
            invokeinterface org.glassfish.grizzly.Buffer.position:()I
            aload 0 /* this */
            getfield org.glassfish.grizzly.streams.BufferedOutput.lastSlicedPosition:I
            if_icmple 5
         2: .line 126
            aload 0 /* this */
            getfield org.glassfish.grizzly.streams.BufferedOutput.buffer:Lorg/glassfish/grizzly/Buffer;
            aload 0 /* this */
            getfield org.glassfish.grizzly.streams.BufferedOutput.lastSlicedPosition:I
            aload 0 /* this */
            getfield org.glassfish.grizzly.streams.BufferedOutput.buffer:Lorg/glassfish/grizzly/Buffer;
            invokeinterface org.glassfish.grizzly.Buffer.position:()I
            invokeinterface org.glassfish.grizzly.Buffer.slice:(II)Lorg/glassfish/grizzly/Buffer;
            astore 2 /* slice */
        start local 2 // org.glassfish.grizzly.Buffer slice
         3: .line 128
            aload 0 /* this */
            aload 0 /* this */
            getfield org.glassfish.grizzly.streams.BufferedOutput.buffer:Lorg/glassfish/grizzly/Buffer;
            invokeinterface org.glassfish.grizzly.Buffer.position:()I
            putfield org.glassfish.grizzly.streams.BufferedOutput.lastSlicedPosition:I
         4: .line 129
            aload 0 /* this */
            getfield org.glassfish.grizzly.streams.BufferedOutput.multiBufferWindow:Lorg/glassfish/grizzly/memory/CompositeBuffer;
            aload 2 /* slice */
            invokevirtual org.glassfish.grizzly.memory.CompositeBuffer.append:(Lorg/glassfish/grizzly/Buffer;)Lorg/glassfish/grizzly/memory/CompositeBuffer;
            pop
        end local 2 // org.glassfish.grizzly.Buffer slice
         5: .line 132
      StackMap locals:
      StackMap stack:
            aload 0 /* this */
            aload 0 /* this */
            getfield org.glassfish.grizzly.streams.BufferedOutput.multiBufferWindow:Lorg/glassfish/grizzly/memory/CompositeBuffer;
            aload 1 /* completionHandler */
            invokevirtual org.glassfish.grizzly.streams.BufferedOutput.flush0:(Lorg/glassfish/grizzly/Buffer;Lorg/glassfish/grizzly/CompletionHandler;)Lorg/glassfish/grizzly/GrizzlyFuture;
            astore 2 /* future */
        start local 2 // org.glassfish.grizzly.GrizzlyFuture future
         6: .line 134
            aload 2 /* future */
            invokeinterface org.glassfish.grizzly.GrizzlyFuture.isDone:()Z
            ifeq 16
         7: .line 135
            aload 0 /* this */
            getfield org.glassfish.grizzly.streams.BufferedOutput.multiBufferWindow:Lorg/glassfish/grizzly/memory/CompositeBuffer;
            invokevirtual org.glassfish.grizzly.memory.CompositeBuffer.removeAll:()V
         8: .line 136
            aload 0 /* this */
            getfield org.glassfish.grizzly.streams.BufferedOutput.multiBufferWindow:Lorg/glassfish/grizzly/memory/CompositeBuffer;
            invokevirtual org.glassfish.grizzly.memory.CompositeBuffer.clear:()Lorg/glassfish/grizzly/Buffer;
            pop
         9: .line 137
            aload 0 /* this */
            getfield org.glassfish.grizzly.streams.BufferedOutput.buffer:Lorg/glassfish/grizzly/Buffer;
            ifnull 19
        10: .line 138
            aload 0 /* this */
            getfield org.glassfish.grizzly.streams.BufferedOutput.buffer:Lorg/glassfish/grizzly/Buffer;
            invokeinterface org.glassfish.grizzly.Buffer.isComposite:()Z
            ifne 13
        11: .line 139
            aload 0 /* this */
            getfield org.glassfish.grizzly.streams.BufferedOutput.buffer:Lorg/glassfish/grizzly/Buffer;
            invokeinterface org.glassfish.grizzly.Buffer.clear:()Lorg/glassfish/grizzly/Buffer;
            pop
        12: .line 140
            goto 14
        13: .line 141
      StackMap locals: org.glassfish.grizzly.GrizzlyFuture
      StackMap stack:
            aload 0 /* this */
            aconst_null
            putfield org.glassfish.grizzly.streams.BufferedOutput.buffer:Lorg/glassfish/grizzly/Buffer;
        14: .line 143
      StackMap locals:
      StackMap stack:
            aload 0 /* this */
            iconst_0
            putfield org.glassfish.grizzly.streams.BufferedOutput.lastSlicedPosition:I
        15: .line 145
            goto 19
        16: .line 146
      StackMap locals:
      StackMap stack:
            aload 0 /* this */
            aconst_null
            putfield org.glassfish.grizzly.streams.BufferedOutput.multiBufferWindow:Lorg/glassfish/grizzly/memory/CompositeBuffer;
        17: .line 147
            aload 0 /* this */
            aconst_null
            putfield org.glassfish.grizzly.streams.BufferedOutput.buffer:Lorg/glassfish/grizzly/Buffer;
        18: .line 148
            aload 0 /* this */
            iconst_0
            putfield org.glassfish.grizzly.streams.BufferedOutput.lastSlicedPosition:I
        19: .line 151
      StackMap locals:
      StackMap stack:
            aload 2 /* future */
            areturn
        end local 2 // org.glassfish.grizzly.GrizzlyFuture future
        20: .line 152
      StackMap locals:
      StackMap stack:
            aload 0 /* this */
            getfield org.glassfish.grizzly.streams.BufferedOutput.buffer:Lorg/glassfish/grizzly/Buffer;
            ifnull 28
            aload 0 /* this */
            getfield org.glassfish.grizzly.streams.BufferedOutput.buffer:Lorg/glassfish/grizzly/Buffer;
            invokeinterface org.glassfish.grizzly.Buffer.position:()I
            ifle 28
        21: .line 153
            aload 0 /* this */
            getfield org.glassfish.grizzly.streams.BufferedOutput.buffer:Lorg/glassfish/grizzly/Buffer;
            invokeinterface org.glassfish.grizzly.Buffer.flip:()Lorg/glassfish/grizzly/Buffer;
            pop
        22: .line 155
            aload 0 /* this */
            aload 0 /* this */
            getfield org.glassfish.grizzly.streams.BufferedOutput.buffer:Lorg/glassfish/grizzly/Buffer;
            aload 1 /* completionHandler */
            invokevirtual org.glassfish.grizzly.streams.BufferedOutput.flush0:(Lorg/glassfish/grizzly/Buffer;Lorg/glassfish/grizzly/CompletionHandler;)Lorg/glassfish/grizzly/GrizzlyFuture;
            astore 2 /* future */
        start local 2 // org.glassfish.grizzly.GrizzlyFuture future
        23: .line 156
            aload 2 /* future */
            invokeinterface org.glassfish.grizzly.GrizzlyFuture.isDone:()Z
            ifeq 26
            aload 0 /* this */
            getfield org.glassfish.grizzly.streams.BufferedOutput.buffer:Lorg/glassfish/grizzly/Buffer;
            invokeinterface org.glassfish.grizzly.Buffer.isComposite:()Z
            ifne 26
        24: .line 157
            aload 0 /* this */
            getfield org.glassfish.grizzly.streams.BufferedOutput.buffer:Lorg/glassfish/grizzly/Buffer;
            invokeinterface org.glassfish.grizzly.Buffer.clear:()Lorg/glassfish/grizzly/Buffer;
            pop
        25: .line 158
            goto 27
        26: .line 159
      StackMap locals: org.glassfish.grizzly.GrizzlyFuture
      StackMap stack:
            aload 0 /* this */
            aconst_null
            putfield org.glassfish.grizzly.streams.BufferedOutput.buffer:Lorg/glassfish/grizzly/Buffer;
        27: .line 162
      StackMap locals:
      StackMap stack:
            aload 2 /* future */
            areturn
        end local 2 // org.glassfish.grizzly.GrizzlyFuture future
        28: .line 165
      StackMap locals:
      StackMap stack:
            aload 0 /* this */
            aconst_null
            aload 1 /* completionHandler */
            invokevirtual org.glassfish.grizzly.streams.BufferedOutput.flush0:(Lorg/glassfish/grizzly/Buffer;Lorg/glassfish/grizzly/CompletionHandler;)Lorg/glassfish/grizzly/GrizzlyFuture;
            areturn
        end local 1 // org.glassfish.grizzly.CompletionHandler completionHandler
        end local 0 // org.glassfish.grizzly.streams.BufferedOutput this
      LocalVariableTable:
        Start  End  Slot               Name  Signature
            0   29     0               this  Lorg/glassfish/grizzly/streams/BufferedOutput;
            0   29     1  completionHandler  Lorg/glassfish/grizzly/CompletionHandler<Ljava/lang/Integer;>;
            3    5     2              slice  Lorg/glassfish/grizzly/Buffer;
            6   20     2             future  Lorg/glassfish/grizzly/GrizzlyFuture<Ljava/lang/Integer;>;
           23   28     2             future  Lorg/glassfish/grizzly/GrizzlyFuture<Ljava/lang/Integer;>;
    Exceptions:
      throws java.io.IOException
    Signature: (Lorg/glassfish/grizzly/CompletionHandler<Ljava/lang/Integer;>;)Lorg/glassfish/grizzly/GrizzlyFuture<Ljava/lang/Integer;>;
    MethodParameters:
                   Name  Flags
      completionHandler  final

  public org.glassfish.grizzly.GrizzlyFuture<java.lang.Integer> flush(org.glassfish.grizzly.CompletionHandler<java.lang.Integer>);
    descriptor: (Lorg/glassfish/grizzly/CompletionHandler;)Lorg/glassfish/grizzly/GrizzlyFuture;
    flags: (0x0001) ACC_PUBLIC
    Code:
      stack=2, locals=2, args_size=2
        start local 0 // org.glassfish.grizzly.streams.BufferedOutput this
        start local 1 // org.glassfish.grizzly.CompletionHandler completionHandler
         0: .line 170
            aload 0 /* this */
            aload 1 /* completionHandler */
            invokevirtual org.glassfish.grizzly.streams.BufferedOutput.overflow:(Lorg/glassfish/grizzly/CompletionHandler;)Lorg/glassfish/grizzly/GrizzlyFuture;
            areturn
        end local 1 // org.glassfish.grizzly.CompletionHandler completionHandler
        end local 0 // org.glassfish.grizzly.streams.BufferedOutput this
      LocalVariableTable:
        Start  End  Slot               Name  Signature
            0    1     0               this  Lorg/glassfish/grizzly/streams/BufferedOutput;
            0    1     1  completionHandler  Lorg/glassfish/grizzly/CompletionHandler<Ljava/lang/Integer;>;
    Exceptions:
      throws java.io.IOException
    Signature: (Lorg/glassfish/grizzly/CompletionHandler<Ljava/lang/Integer;>;)Lorg/glassfish/grizzly/GrizzlyFuture<Ljava/lang/Integer;>;
    MethodParameters:
                   Name  Flags
      completionHandler  

  public org.glassfish.grizzly.GrizzlyFuture<java.lang.Integer> close(org.glassfish.grizzly.CompletionHandler<java.lang.Integer>);
    descriptor: (Lorg/glassfish/grizzly/CompletionHandler;)Lorg/glassfish/grizzly/GrizzlyFuture;
    flags: (0x0001) ACC_PUBLIC
    Code:
      stack=6, locals=3, args_size=2
        start local 0 // org.glassfish.grizzly.streams.BufferedOutput this
        start local 1 // org.glassfish.grizzly.CompletionHandler completionHandler
         0: .line 176
            aload 0 /* this */
            getfield org.glassfish.grizzly.streams.BufferedOutput.isClosed:Ljava/util/concurrent/atomic/AtomicBoolean;
            iconst_1
            invokevirtual java.util.concurrent.atomic.AtomicBoolean.getAndSet:(Z)Z
            ifne 6
            aload 0 /* this */
            getfield org.glassfish.grizzly.streams.BufferedOutput.buffer:Lorg/glassfish/grizzly/Buffer;
            ifnull 6
            aload 0 /* this */
            getfield org.glassfish.grizzly.streams.BufferedOutput.buffer:Lorg/glassfish/grizzly/Buffer;
            invokeinterface org.glassfish.grizzly.Buffer.position:()I
            ifle 6
         1: .line 177
            invokestatic org.glassfish.grizzly.impl.SafeFutureImpl.create:()Lorg/glassfish/grizzly/impl/SafeFutureImpl;
            astore 2 /* future */
        start local 2 // org.glassfish.grizzly.impl.FutureImpl future
         2: .line 180
            aload 0 /* this */
            new org.glassfish.grizzly.streams.BufferedOutput$1
            dup
            aload 0 /* this */
            aload 1 /* completionHandler */
            aload 2 /* future */
            invokespecial org.glassfish.grizzly.streams.BufferedOutput$1.<init>:(Lorg/glassfish/grizzly/streams/BufferedOutput;Lorg/glassfish/grizzly/CompletionHandler;Lorg/glassfish/grizzly/impl/FutureImpl;)V
            invokevirtual org.glassfish.grizzly.streams.BufferedOutput.overflow:(Lorg/glassfish/grizzly/CompletionHandler;)Lorg/glassfish/grizzly/GrizzlyFuture;
            pop
         3: .line 214
            goto 5
      StackMap locals: org.glassfish.grizzly.streams.BufferedOutput org.glassfish.grizzly.CompletionHandler org.glassfish.grizzly.impl.FutureImpl
      StackMap stack: java.io.IOException
         4: pop
         5: .line 217
      StackMap locals:
      StackMap stack:
            aload 2 /* future */
            areturn
        end local 2 // org.glassfish.grizzly.impl.FutureImpl future
         6: .line 219
      StackMap locals:
      StackMap stack:
            aload 1 /* completionHandler */
            ifnull 8
         7: .line 220
            aload 1 /* completionHandler */
            getstatic org.glassfish.grizzly.streams.BufferedOutput.ZERO:Ljava/lang/Integer;
            invokeinterface org.glassfish.grizzly.CompletionHandler.completed:(Ljava/lang/Object;)V
         8: .line 223
      StackMap locals:
      StackMap stack:
            getstatic org.glassfish.grizzly.streams.BufferedOutput.ZERO_READY_FUTURE:Lorg/glassfish/grizzly/GrizzlyFuture;
            areturn
        end local 1 // org.glassfish.grizzly.CompletionHandler completionHandler
        end local 0 // org.glassfish.grizzly.streams.BufferedOutput this
      LocalVariableTable:
        Start  End  Slot               Name  Signature
            0    9     0               this  Lorg/glassfish/grizzly/streams/BufferedOutput;
            0    9     1  completionHandler  Lorg/glassfish/grizzly/CompletionHandler<Ljava/lang/Integer;>;
            2    6     2             future  Lorg/glassfish/grizzly/impl/FutureImpl<Ljava/lang/Integer;>;
      Exception table:
        from    to  target  type
           2     3       4  Class java.io.IOException
    Exceptions:
      throws java.io.IOException
    Signature: (Lorg/glassfish/grizzly/CompletionHandler<Ljava/lang/Integer;>;)Lorg/glassfish/grizzly/GrizzlyFuture<Ljava/lang/Integer;>;
    MethodParameters:
                   Name  Flags
      completionHandler  final

  protected int getBufferedSize();
    descriptor: ()I
    flags: (0x0004) ACC_PROTECTED
    Code:
      stack=3, locals=2, args_size=1
        start local 0 // org.glassfish.grizzly.streams.BufferedOutput this
         0: .line 228
            iconst_0
            istore 1 /* size */
        start local 1 // int size
         1: .line 230
            aload 0 /* this */
            getfield org.glassfish.grizzly.streams.BufferedOutput.multiBufferWindow:Lorg/glassfish/grizzly/memory/CompositeBuffer;
            ifnull 3
         2: .line 231
            aload 0 /* this */
            getfield org.glassfish.grizzly.streams.BufferedOutput.multiBufferWindow:Lorg/glassfish/grizzly/memory/CompositeBuffer;
            invokevirtual org.glassfish.grizzly.memory.CompositeBuffer.remaining:()I
            istore 1 /* size */
         3: .line 234
      StackMap locals: int
      StackMap stack:
            aload 0 /* this */
            getfield org.glassfish.grizzly.streams.BufferedOutput.buffer:Lorg/glassfish/grizzly/Buffer;
            ifnull 5
         4: .line 235
            iload 1 /* size */
            aload 0 /* this */
            getfield org.glassfish.grizzly.streams.BufferedOutput.buffer:Lorg/glassfish/grizzly/Buffer;
            invokeinterface org.glassfish.grizzly.Buffer.position:()I
            aload 0 /* this */
            getfield org.glassfish.grizzly.streams.BufferedOutput.lastSlicedPosition:I
            isub
            iadd
            istore 1 /* size */
         5: .line 238
      StackMap locals:
      StackMap stack:
            iload 1 /* size */
            ireturn
        end local 1 // int size
        end local 0 // org.glassfish.grizzly.streams.BufferedOutput this
      LocalVariableTable:
        Start  End  Slot  Name  Signature
            0    6     0  this  Lorg/glassfish/grizzly/streams/BufferedOutput;
            1    6     1  size  I
}
SourceFile: "BufferedOutput.java"
NestMembers:
  org.glassfish.grizzly.streams.BufferedOutput$1
InnerClasses:
  org.glassfish.grizzly.streams.BufferedOutput$1