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: iconst_0
invokestatic java.lang.Integer.valueOf:(I)Ljava/lang/Integer;
putstatic org.glassfish.grizzly.streams.BufferedOutput.ZERO:Ljava/lang/Integer;
1: 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 0: aload 0
sipush 8192
invokespecial org.glassfish.grizzly.streams.BufferedOutput.<init>:(I)V
1: return
end local 0 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 start local 1 0: aload 0
invokespecial java.lang.Object.<init>:()V
1: aload 0
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: aload 0
iload 1
putfield org.glassfish.grizzly.streams.BufferedOutput.bufferSize:I
3: return
end local 1 end local 0 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 start local 1 0: aload 0
iconst_1
invokevirtual org.glassfish.grizzly.streams.BufferedOutput.ensureBufferCapacity:(I)V
1: aload 0
getfield org.glassfish.grizzly.streams.BufferedOutput.buffer:Lorg/glassfish/grizzly/Buffer;
iload 1
invokeinterface org.glassfish.grizzly.Buffer.put:(B)Lorg/glassfish/grizzly/Buffer;
pop
2: return
end local 1 end local 0 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 start local 1 0: aload 0
getfield org.glassfish.grizzly.streams.BufferedOutput.multiBufferWindow:Lorg/glassfish/grizzly/memory/CompositeBuffer;
ifnonnull 2
1: aload 0
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: StackMap locals:
StackMap stack:
aload 0
getfield org.glassfish.grizzly.streams.BufferedOutput.buffer:Lorg/glassfish/grizzly/Buffer;
ifnull 3
aload 0
getfield org.glassfish.grizzly.streams.BufferedOutput.buffer:Lorg/glassfish/grizzly/Buffer;
invokeinterface org.glassfish.grizzly.Buffer.position:()I
aload 0
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
start local 2 5: iload 2
ifne 9
6: aload 0
getfield org.glassfish.grizzly.streams.BufferedOutput.buffer:Lorg/glassfish/grizzly/Buffer;
aload 0
getfield org.glassfish.grizzly.streams.BufferedOutput.lastSlicedPosition:I
aload 0
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
start local 3 7: aload 0
getfield org.glassfish.grizzly.streams.BufferedOutput.multiBufferWindow:Lorg/glassfish/grizzly/memory/CompositeBuffer;
aload 3
invokevirtual org.glassfish.grizzly.memory.CompositeBuffer.append:(Lorg/glassfish/grizzly/Buffer;)Lorg/glassfish/grizzly/memory/CompositeBuffer;
pop
8: aload 0
aload 0
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 9: StackMap locals: int
StackMap stack:
aload 0
getfield org.glassfish.grizzly.streams.BufferedOutput.multiBufferWindow:Lorg/glassfish/grizzly/memory/CompositeBuffer;
aload 1
invokevirtual org.glassfish.grizzly.memory.CompositeBuffer.append:(Lorg/glassfish/grizzly/Buffer;)Lorg/glassfish/grizzly/memory/CompositeBuffer;
pop
10: aload 0
iconst_0
invokevirtual org.glassfish.grizzly.streams.BufferedOutput.ensureBufferCapacity:(I)V
11: return
end local 2 end local 1 end local 0 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 0: iconst_1
ireturn
end local 0 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 0: aload 0
getfield org.glassfish.grizzly.streams.BufferedOutput.buffer:Lorg/glassfish/grizzly/Buffer;
areturn
end local 0 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 start local 1 0: iload 1
aload 0
getfield org.glassfish.grizzly.streams.BufferedOutput.bufferSize:I
if_icmple 2
1: 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
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: StackMap locals:
StackMap stack:
aload 0
invokevirtual org.glassfish.grizzly.streams.BufferedOutput.getBufferedSize:()I
aload 0
getfield org.glassfish.grizzly.streams.BufferedOutput.bufferSize:I
if_icmplt 4
3: aload 0
aconst_null
invokevirtual org.glassfish.grizzly.streams.BufferedOutput.overflow:(Lorg/glassfish/grizzly/CompletionHandler;)Lorg/glassfish/grizzly/GrizzlyFuture;
pop
4: StackMap locals:
StackMap stack:
iload 1
ifne 6
5: return
6: StackMap locals:
StackMap stack:
aload 0
getfield org.glassfish.grizzly.streams.BufferedOutput.buffer:Lorg/glassfish/grizzly/Buffer;
ifnull 12
7: aload 0
getfield org.glassfish.grizzly.streams.BufferedOutput.buffer:Lorg/glassfish/grizzly/Buffer;
invokeinterface org.glassfish.grizzly.Buffer.remaining:()I
istore 2
start local 2 8: iload 2
iload 1
if_icmpge 13
9: aload 0
aconst_null
invokevirtual org.glassfish.grizzly.streams.BufferedOutput.overflow:(Lorg/glassfish/grizzly/CompletionHandler;)Lorg/glassfish/grizzly/GrizzlyFuture;
pop
10: aload 0
iload 1
invokevirtual org.glassfish.grizzly.streams.BufferedOutput.ensureBufferCapacity:(I)V
end local 2 11: goto 13
12: StackMap locals:
StackMap stack:
aload 0
aload 0
aload 0
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: StackMap locals:
StackMap stack:
return
end local 1 end local 0 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 start local 1 0: aload 0
getfield org.glassfish.grizzly.streams.BufferedOutput.multiBufferWindow:Lorg/glassfish/grizzly/memory/CompositeBuffer;
ifnull 20
1: aload 0
getfield org.glassfish.grizzly.streams.BufferedOutput.buffer:Lorg/glassfish/grizzly/Buffer;
ifnull 5
aload 0
getfield org.glassfish.grizzly.streams.BufferedOutput.buffer:Lorg/glassfish/grizzly/Buffer;
invokeinterface org.glassfish.grizzly.Buffer.position:()I
aload 0
getfield org.glassfish.grizzly.streams.BufferedOutput.lastSlicedPosition:I
if_icmple 5
2: aload 0
getfield org.glassfish.grizzly.streams.BufferedOutput.buffer:Lorg/glassfish/grizzly/Buffer;
aload 0
getfield org.glassfish.grizzly.streams.BufferedOutput.lastSlicedPosition:I
aload 0
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
start local 2 3: aload 0
aload 0
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: aload 0
getfield org.glassfish.grizzly.streams.BufferedOutput.multiBufferWindow:Lorg/glassfish/grizzly/memory/CompositeBuffer;
aload 2
invokevirtual org.glassfish.grizzly.memory.CompositeBuffer.append:(Lorg/glassfish/grizzly/Buffer;)Lorg/glassfish/grizzly/memory/CompositeBuffer;
pop
end local 2 5: StackMap locals:
StackMap stack:
aload 0
aload 0
getfield org.glassfish.grizzly.streams.BufferedOutput.multiBufferWindow:Lorg/glassfish/grizzly/memory/CompositeBuffer;
aload 1
invokevirtual org.glassfish.grizzly.streams.BufferedOutput.flush0:(Lorg/glassfish/grizzly/Buffer;Lorg/glassfish/grizzly/CompletionHandler;)Lorg/glassfish/grizzly/GrizzlyFuture;
astore 2
start local 2 6: aload 2
invokeinterface org.glassfish.grizzly.GrizzlyFuture.isDone:()Z
ifeq 16
7: aload 0
getfield org.glassfish.grizzly.streams.BufferedOutput.multiBufferWindow:Lorg/glassfish/grizzly/memory/CompositeBuffer;
invokevirtual org.glassfish.grizzly.memory.CompositeBuffer.removeAll:()V
8: aload 0
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: aload 0
getfield org.glassfish.grizzly.streams.BufferedOutput.buffer:Lorg/glassfish/grizzly/Buffer;
ifnull 19
10: aload 0
getfield org.glassfish.grizzly.streams.BufferedOutput.buffer:Lorg/glassfish/grizzly/Buffer;
invokeinterface org.glassfish.grizzly.Buffer.isComposite:()Z
ifne 13
11: aload 0
getfield org.glassfish.grizzly.streams.BufferedOutput.buffer:Lorg/glassfish/grizzly/Buffer;
invokeinterface org.glassfish.grizzly.Buffer.clear:()Lorg/glassfish/grizzly/Buffer;
pop
12: goto 14
13: StackMap locals: org.glassfish.grizzly.GrizzlyFuture
StackMap stack:
aload 0
aconst_null
putfield org.glassfish.grizzly.streams.BufferedOutput.buffer:Lorg/glassfish/grizzly/Buffer;
14: StackMap locals:
StackMap stack:
aload 0
iconst_0
putfield org.glassfish.grizzly.streams.BufferedOutput.lastSlicedPosition:I
15: goto 19
16: StackMap locals:
StackMap stack:
aload 0
aconst_null
putfield org.glassfish.grizzly.streams.BufferedOutput.multiBufferWindow:Lorg/glassfish/grizzly/memory/CompositeBuffer;
17: aload 0
aconst_null
putfield org.glassfish.grizzly.streams.BufferedOutput.buffer:Lorg/glassfish/grizzly/Buffer;
18: aload 0
iconst_0
putfield org.glassfish.grizzly.streams.BufferedOutput.lastSlicedPosition:I
19: StackMap locals:
StackMap stack:
aload 2
areturn
end local 2 20: StackMap locals:
StackMap stack:
aload 0
getfield org.glassfish.grizzly.streams.BufferedOutput.buffer:Lorg/glassfish/grizzly/Buffer;
ifnull 28
aload 0
getfield org.glassfish.grizzly.streams.BufferedOutput.buffer:Lorg/glassfish/grizzly/Buffer;
invokeinterface org.glassfish.grizzly.Buffer.position:()I
ifle 28
21: aload 0
getfield org.glassfish.grizzly.streams.BufferedOutput.buffer:Lorg/glassfish/grizzly/Buffer;
invokeinterface org.glassfish.grizzly.Buffer.flip:()Lorg/glassfish/grizzly/Buffer;
pop
22: aload 0
aload 0
getfield org.glassfish.grizzly.streams.BufferedOutput.buffer:Lorg/glassfish/grizzly/Buffer;
aload 1
invokevirtual org.glassfish.grizzly.streams.BufferedOutput.flush0:(Lorg/glassfish/grizzly/Buffer;Lorg/glassfish/grizzly/CompletionHandler;)Lorg/glassfish/grizzly/GrizzlyFuture;
astore 2
start local 2 23: aload 2
invokeinterface org.glassfish.grizzly.GrizzlyFuture.isDone:()Z
ifeq 26
aload 0
getfield org.glassfish.grizzly.streams.BufferedOutput.buffer:Lorg/glassfish/grizzly/Buffer;
invokeinterface org.glassfish.grizzly.Buffer.isComposite:()Z
ifne 26
24: aload 0
getfield org.glassfish.grizzly.streams.BufferedOutput.buffer:Lorg/glassfish/grizzly/Buffer;
invokeinterface org.glassfish.grizzly.Buffer.clear:()Lorg/glassfish/grizzly/Buffer;
pop
25: goto 27
26: StackMap locals: org.glassfish.grizzly.GrizzlyFuture
StackMap stack:
aload 0
aconst_null
putfield org.glassfish.grizzly.streams.BufferedOutput.buffer:Lorg/glassfish/grizzly/Buffer;
27: StackMap locals:
StackMap stack:
aload 2
areturn
end local 2 28: StackMap locals:
StackMap stack:
aload 0
aconst_null
aload 1
invokevirtual org.glassfish.grizzly.streams.BufferedOutput.flush0:(Lorg/glassfish/grizzly/Buffer;Lorg/glassfish/grizzly/CompletionHandler;)Lorg/glassfish/grizzly/GrizzlyFuture;
areturn
end local 1 end local 0 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 start local 1 0: aload 0
aload 1
invokevirtual org.glassfish.grizzly.streams.BufferedOutput.overflow:(Lorg/glassfish/grizzly/CompletionHandler;)Lorg/glassfish/grizzly/GrizzlyFuture;
areturn
end local 1 end local 0 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 start local 1 0: aload 0
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
getfield org.glassfish.grizzly.streams.BufferedOutput.buffer:Lorg/glassfish/grizzly/Buffer;
ifnull 6
aload 0
getfield org.glassfish.grizzly.streams.BufferedOutput.buffer:Lorg/glassfish/grizzly/Buffer;
invokeinterface org.glassfish.grizzly.Buffer.position:()I
ifle 6
1: invokestatic org.glassfish.grizzly.impl.SafeFutureImpl.create:()Lorg/glassfish/grizzly/impl/SafeFutureImpl;
astore 2
start local 2 2: aload 0
new org.glassfish.grizzly.streams.BufferedOutput$1
dup
aload 0
aload 1
aload 2
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: 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: StackMap locals:
StackMap stack:
aload 2
areturn
end local 2 6: StackMap locals:
StackMap stack:
aload 1
ifnull 8
7: aload 1
getstatic org.glassfish.grizzly.streams.BufferedOutput.ZERO:Ljava/lang/Integer;
invokeinterface org.glassfish.grizzly.CompletionHandler.completed:(Ljava/lang/Object;)V
8: StackMap locals:
StackMap stack:
getstatic org.glassfish.grizzly.streams.BufferedOutput.ZERO_READY_FUTURE:Lorg/glassfish/grizzly/GrizzlyFuture;
areturn
end local 1 end local 0 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 0: iconst_0
istore 1
start local 1 1: aload 0
getfield org.glassfish.grizzly.streams.BufferedOutput.multiBufferWindow:Lorg/glassfish/grizzly/memory/CompositeBuffer;
ifnull 3
2: aload 0
getfield org.glassfish.grizzly.streams.BufferedOutput.multiBufferWindow:Lorg/glassfish/grizzly/memory/CompositeBuffer;
invokevirtual org.glassfish.grizzly.memory.CompositeBuffer.remaining:()I
istore 1
3: StackMap locals: int
StackMap stack:
aload 0
getfield org.glassfish.grizzly.streams.BufferedOutput.buffer:Lorg/glassfish/grizzly/Buffer;
ifnull 5
4: iload 1
aload 0
getfield org.glassfish.grizzly.streams.BufferedOutput.buffer:Lorg/glassfish/grizzly/Buffer;
invokeinterface org.glassfish.grizzly.Buffer.position:()I
aload 0
getfield org.glassfish.grizzly.streams.BufferedOutput.lastSlicedPosition:I
isub
iadd
istore 1
5: StackMap locals:
StackMap stack:
iload 1
ireturn
end local 1 end local 0 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