public abstract class org.glassfish.grizzly.streams.BufferedInput implements org.glassfish.grizzly.streams.Input
minor version: 0
major version: 59
flags: flags: (0x0421) ACC_PUBLIC, ACC_SUPER, ACC_ABSTRACT
this_class: org.glassfish.grizzly.streams.BufferedInput
super_class: java.lang.Object
{
protected final org.glassfish.grizzly.memory.CompositeBuffer compositeBuffer;
descriptor: Lorg/glassfish/grizzly/memory/CompositeBuffer;
flags: (0x0014) ACC_PROTECTED, ACC_FINAL
private volatile boolean isClosed;
descriptor: Z
flags: (0x0042) ACC_PRIVATE, ACC_VOLATILE
protected final java.util.concurrent.locks.ReentrantReadWriteLock lock;
descriptor: Ljava/util/concurrent/locks/ReentrantReadWriteLock;
flags: (0x0014) ACC_PROTECTED, ACC_FINAL
protected boolean isCompletionHandlerRegistered;
descriptor: Z
flags: (0x0004) ACC_PROTECTED
protected java.lang.Exception registrationStackTrace;
descriptor: Ljava/lang/Exception;
flags: (0x0004) ACC_PROTECTED
protected org.glassfish.grizzly.utils.conditions.Condition condition;
descriptor: Lorg/glassfish/grizzly/utils/conditions/Condition;
flags: (0x0004) ACC_PROTECTED
protected org.glassfish.grizzly.CompletionHandler<java.lang.Integer> completionHandler;
descriptor: Lorg/glassfish/grizzly/CompletionHandler;
flags: (0x0004) ACC_PROTECTED
Signature: Lorg/glassfish/grizzly/CompletionHandler<Ljava/lang/Integer;>;
protected org.glassfish.grizzly.impl.FutureImpl<java.lang.Integer> future;
descriptor: Lorg/glassfish/grizzly/impl/FutureImpl;
flags: (0x0004) ACC_PROTECTED
Signature: Lorg/glassfish/grizzly/impl/FutureImpl<Ljava/lang/Integer;>;
public void <init>();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=1, args_size=1
start local 0 0: aload 0
invokespecial java.lang.Object.<init>:()V
1: aload 0
new java.util.concurrent.locks.ReentrantReadWriteLock
dup
invokespecial java.util.concurrent.locks.ReentrantReadWriteLock.<init>:()V
putfield org.glassfish.grizzly.streams.BufferedInput.lock:Ljava/util/concurrent/locks/ReentrantReadWriteLock;
2: aload 0
invokestatic org.glassfish.grizzly.memory.CompositeBuffer.newBuffer:()Lorg/glassfish/grizzly/memory/CompositeBuffer;
putfield org.glassfish.grizzly.streams.BufferedInput.compositeBuffer:Lorg/glassfish/grizzly/memory/CompositeBuffer;
3: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Lorg/glassfish/grizzly/streams/BufferedInput;
protected abstract void onOpenInputSource();
descriptor: ()V
flags: (0x0404) ACC_PROTECTED, ACC_ABSTRACT
Exceptions:
throws java.io.IOException
protected abstract void onCloseInputSource();
descriptor: ()V
flags: (0x0404) ACC_PROTECTED, ACC_ABSTRACT
Exceptions:
throws java.io.IOException
public boolean append(org.glassfish.grizzly.Buffer);
descriptor: (Lorg/glassfish/grizzly/Buffer;)Z
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=4, args_size=2
start local 0 start local 1 0: aload 1
ifnonnull 2
1: iconst_0
ireturn
2: StackMap locals:
StackMap stack:
aload 0
getfield org.glassfish.grizzly.streams.BufferedInput.lock:Ljava/util/concurrent/locks/ReentrantReadWriteLock;
invokevirtual java.util.concurrent.locks.ReentrantReadWriteLock.writeLock:()Ljava/util/concurrent/locks/ReentrantReadWriteLock$WriteLock;
invokevirtual java.util.concurrent.locks.ReentrantReadWriteLock$WriteLock.lock:()V
3: aload 0
getfield org.glassfish.grizzly.streams.BufferedInput.isClosed:Z
ifeq 6
4: aload 1
invokeinterface org.glassfish.grizzly.Buffer.dispose:()V
5: goto 14
6: StackMap locals:
StackMap stack:
aload 1
invokeinterface org.glassfish.grizzly.Buffer.remaining:()I
istore 2
start local 2 7: iload 2
ifle 9
8: aload 0
getfield org.glassfish.grizzly.streams.BufferedInput.compositeBuffer:Lorg/glassfish/grizzly/memory/CompositeBuffer;
aload 1
invokevirtual org.glassfish.grizzly.memory.CompositeBuffer.append:(Lorg/glassfish/grizzly/Buffer;)Lorg/glassfish/grizzly/memory/CompositeBuffer;
pop
9: StackMap locals: int
StackMap stack:
aload 0
invokevirtual org.glassfish.grizzly.streams.BufferedInput.notifyUpdate:()V
end local 2 10: goto 14
StackMap locals: org.glassfish.grizzly.streams.BufferedInput org.glassfish.grizzly.Buffer
StackMap stack: java.lang.Throwable
11: astore 3
12: aload 0
getfield org.glassfish.grizzly.streams.BufferedInput.lock:Ljava/util/concurrent/locks/ReentrantReadWriteLock;
invokevirtual java.util.concurrent.locks.ReentrantReadWriteLock.writeLock:()Ljava/util/concurrent/locks/ReentrantReadWriteLock$WriteLock;
invokevirtual java.util.concurrent.locks.ReentrantReadWriteLock$WriteLock.unlock:()V
13: aload 3
athrow
14: StackMap locals:
StackMap stack:
aload 0
getfield org.glassfish.grizzly.streams.BufferedInput.lock:Ljava/util/concurrent/locks/ReentrantReadWriteLock;
invokevirtual java.util.concurrent.locks.ReentrantReadWriteLock.writeLock:()Ljava/util/concurrent/locks/ReentrantReadWriteLock$WriteLock;
invokevirtual java.util.concurrent.locks.ReentrantReadWriteLock$WriteLock.unlock:()V
15: iconst_1
ireturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 16 0 this Lorg/glassfish/grizzly/streams/BufferedInput;
0 16 1 buffer Lorg/glassfish/grizzly/Buffer;
7 10 2 addSize I
Exception table:
from to target type
3 11 11 any
MethodParameters:
Name Flags
buffer final
public boolean prepend(org.glassfish.grizzly.Buffer);
descriptor: (Lorg/glassfish/grizzly/Buffer;)Z
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=4, args_size=2
start local 0 start local 1 0: aload 1
ifnonnull 2
1: iconst_0
ireturn
2: StackMap locals:
StackMap stack:
aload 0
getfield org.glassfish.grizzly.streams.BufferedInput.lock:Ljava/util/concurrent/locks/ReentrantReadWriteLock;
invokevirtual java.util.concurrent.locks.ReentrantReadWriteLock.writeLock:()Ljava/util/concurrent/locks/ReentrantReadWriteLock$WriteLock;
invokevirtual java.util.concurrent.locks.ReentrantReadWriteLock$WriteLock.lock:()V
3: aload 0
getfield org.glassfish.grizzly.streams.BufferedInput.isClosed:Z
ifeq 6
4: aload 1
invokeinterface org.glassfish.grizzly.Buffer.dispose:()V
5: goto 14
6: StackMap locals:
StackMap stack:
aload 1
invokeinterface org.glassfish.grizzly.Buffer.remaining:()I
istore 2
start local 2 7: iload 2
ifle 9
8: aload 0
getfield org.glassfish.grizzly.streams.BufferedInput.compositeBuffer:Lorg/glassfish/grizzly/memory/CompositeBuffer;
aload 1
invokevirtual org.glassfish.grizzly.memory.CompositeBuffer.prepend:(Lorg/glassfish/grizzly/Buffer;)Lorg/glassfish/grizzly/memory/CompositeBuffer;
pop
9: StackMap locals: int
StackMap stack:
aload 0
invokevirtual org.glassfish.grizzly.streams.BufferedInput.notifyUpdate:()V
end local 2 10: goto 14
StackMap locals: org.glassfish.grizzly.streams.BufferedInput org.glassfish.grizzly.Buffer
StackMap stack: java.lang.Throwable
11: astore 3
12: aload 0
getfield org.glassfish.grizzly.streams.BufferedInput.lock:Ljava/util/concurrent/locks/ReentrantReadWriteLock;
invokevirtual java.util.concurrent.locks.ReentrantReadWriteLock.writeLock:()Ljava/util/concurrent/locks/ReentrantReadWriteLock$WriteLock;
invokevirtual java.util.concurrent.locks.ReentrantReadWriteLock$WriteLock.unlock:()V
13: aload 3
athrow
14: StackMap locals:
StackMap stack:
aload 0
getfield org.glassfish.grizzly.streams.BufferedInput.lock:Ljava/util/concurrent/locks/ReentrantReadWriteLock;
invokevirtual java.util.concurrent.locks.ReentrantReadWriteLock.writeLock:()Ljava/util/concurrent/locks/ReentrantReadWriteLock$WriteLock;
invokevirtual java.util.concurrent.locks.ReentrantReadWriteLock$WriteLock.unlock:()V
15: iconst_1
ireturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 16 0 this Lorg/glassfish/grizzly/streams/BufferedInput;
0 16 1 buffer Lorg/glassfish/grizzly/Buffer;
7 10 2 addSize I
Exception table:
from to target type
3 11 11 any
MethodParameters:
Name Flags
buffer final
public byte read();
descriptor: ()B
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=2, args_size=1
start local 0 0: aload 0
getfield org.glassfish.grizzly.streams.BufferedInput.compositeBuffer:Lorg/glassfish/grizzly/memory/CompositeBuffer;
invokevirtual org.glassfish.grizzly.memory.CompositeBuffer.get:()B
istore 1
start local 1 1: aload 0
getfield org.glassfish.grizzly.streams.BufferedInput.compositeBuffer:Lorg/glassfish/grizzly/memory/CompositeBuffer;
invokevirtual org.glassfish.grizzly.memory.CompositeBuffer.shrink:()V
2: iload 1
ireturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lorg/glassfish/grizzly/streams/BufferedInput;
1 3 1 result B
Exceptions:
throws java.io.IOException
public void skip(int);
descriptor: (I)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=2, args_size=2
start local 0 start local 1 0: iload 1
aload 0
invokevirtual org.glassfish.grizzly.streams.BufferedInput.size:()I
if_icmple 2
1: new java.lang.IllegalStateException
dup
ldc "Can not skip more bytes than available"
invokespecial java.lang.IllegalStateException.<init>:(Ljava/lang/String;)V
athrow
2: StackMap locals:
StackMap stack:
aload 0
getfield org.glassfish.grizzly.streams.BufferedInput.compositeBuffer:Lorg/glassfish/grizzly/memory/CompositeBuffer;
aload 0
getfield org.glassfish.grizzly.streams.BufferedInput.compositeBuffer:Lorg/glassfish/grizzly/memory/CompositeBuffer;
invokevirtual org.glassfish.grizzly.memory.CompositeBuffer.position:()I
iload 1
iadd
invokevirtual org.glassfish.grizzly.memory.CompositeBuffer.position:(I)Lorg/glassfish/grizzly/Buffer;
pop
3: aload 0
getfield org.glassfish.grizzly.streams.BufferedInput.compositeBuffer:Lorg/glassfish/grizzly/memory/CompositeBuffer;
invokevirtual org.glassfish.grizzly.memory.CompositeBuffer.shrink:()V
4: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 this Lorg/glassfish/grizzly/streams/BufferedInput;
0 5 1 length I
MethodParameters:
Name Flags
length
public final boolean isBuffered();
descriptor: ()Z
flags: (0x0011) ACC_PUBLIC, ACC_FINAL
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/BufferedInput;
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.BufferedInput.compositeBuffer:Lorg/glassfish/grizzly/memory/CompositeBuffer;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/glassfish/grizzly/streams/BufferedInput;
public org.glassfish.grizzly.Buffer takeBuffer();
descriptor: ()Lorg/glassfish/grizzly/Buffer;
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=2, args_size=1
start local 0 0: aload 0
getfield org.glassfish.grizzly.streams.BufferedInput.compositeBuffer:Lorg/glassfish/grizzly/memory/CompositeBuffer;
invokevirtual org.glassfish.grizzly.memory.CompositeBuffer.duplicate:()Lorg/glassfish/grizzly/Buffer;
astore 1
start local 1 1: aload 0
getfield org.glassfish.grizzly.streams.BufferedInput.compositeBuffer:Lorg/glassfish/grizzly/memory/CompositeBuffer;
invokevirtual org.glassfish.grizzly.memory.CompositeBuffer.removeAll:()V
2: aload 1
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lorg/glassfish/grizzly/streams/BufferedInput;
1 3 1 duplicate Lorg/glassfish/grizzly/Buffer;
public int size();
descriptor: ()I
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield org.glassfish.grizzly.streams.BufferedInput.compositeBuffer:Lorg/glassfish/grizzly/memory/CompositeBuffer;
invokevirtual org.glassfish.grizzly.memory.CompositeBuffer.remaining:()I
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/glassfish/grizzly/streams/BufferedInput;
public void close();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=5, locals=3, args_size=1
start local 0 0: aload 0
getfield org.glassfish.grizzly.streams.BufferedInput.lock:Ljava/util/concurrent/locks/ReentrantReadWriteLock;
invokevirtual java.util.concurrent.locks.ReentrantReadWriteLock.writeLock:()Ljava/util/concurrent/locks/ReentrantReadWriteLock$WriteLock;
invokevirtual java.util.concurrent.locks.ReentrantReadWriteLock$WriteLock.lock:()V
1: aload 0
getfield org.glassfish.grizzly.streams.BufferedInput.isClosed:Z
ifne 13
2: aload 0
iconst_1
putfield org.glassfish.grizzly.streams.BufferedInput.isClosed:Z
3: aload 0
getfield org.glassfish.grizzly.streams.BufferedInput.compositeBuffer:Lorg/glassfish/grizzly/memory/CompositeBuffer;
invokevirtual org.glassfish.grizzly.memory.CompositeBuffer.dispose:()V
4: aload 0
getfield org.glassfish.grizzly.streams.BufferedInput.completionHandler:Lorg/glassfish/grizzly/CompletionHandler;
astore 1
start local 1 5: aload 1
ifnull 13
6: aload 0
aconst_null
putfield org.glassfish.grizzly.streams.BufferedInput.completionHandler:Lorg/glassfish/grizzly/CompletionHandler;
7: aload 0
iconst_0
putfield org.glassfish.grizzly.streams.BufferedInput.isCompletionHandlerRegistered:Z
8: aload 0
aload 1
new java.io.EOFException
dup
ldc "Input is closed"
invokespecial java.io.EOFException.<init>:(Ljava/lang/String;)V
invokevirtual org.glassfish.grizzly.streams.BufferedInput.notifyFailure:(Lorg/glassfish/grizzly/CompletionHandler;Ljava/lang/Throwable;)V
end local 1 9: goto 13
StackMap locals:
StackMap stack: java.lang.Throwable
10: astore 2
11: aload 0
getfield org.glassfish.grizzly.streams.BufferedInput.lock:Ljava/util/concurrent/locks/ReentrantReadWriteLock;
invokevirtual java.util.concurrent.locks.ReentrantReadWriteLock.writeLock:()Ljava/util/concurrent/locks/ReentrantReadWriteLock$WriteLock;
invokevirtual java.util.concurrent.locks.ReentrantReadWriteLock$WriteLock.unlock:()V
12: aload 2
athrow
13: StackMap locals:
StackMap stack:
aload 0
getfield org.glassfish.grizzly.streams.BufferedInput.lock:Ljava/util/concurrent/locks/ReentrantReadWriteLock;
invokevirtual java.util.concurrent.locks.ReentrantReadWriteLock.writeLock:()Ljava/util/concurrent/locks/ReentrantReadWriteLock$WriteLock;
invokevirtual java.util.concurrent.locks.ReentrantReadWriteLock$WriteLock.unlock:()V
14: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 15 0 this Lorg/glassfish/grizzly/streams/BufferedInput;
5 9 1 localCompletionHandler Lorg/glassfish/grizzly/CompletionHandler<Ljava/lang/Integer;>;
Exception table:
from to target type
1 10 10 any
public org.glassfish.grizzly.GrizzlyFuture<java.lang.Integer> notifyCondition(org.glassfish.grizzly.utils.conditions.Condition, org.glassfish.grizzly.CompletionHandler<java.lang.Integer>);
descriptor: (Lorg/glassfish/grizzly/utils/conditions/Condition;Lorg/glassfish/grizzly/CompletionHandler;)Lorg/glassfish/grizzly/GrizzlyFuture;
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=7, args_size=3
start local 0 start local 1 start local 2 0: aload 0
getfield org.glassfish.grizzly.streams.BufferedInput.lock:Ljava/util/concurrent/locks/ReentrantReadWriteLock;
invokevirtual java.util.concurrent.locks.ReentrantReadWriteLock.writeLock:()Ljava/util/concurrent/locks/ReentrantReadWriteLock$WriteLock;
invokevirtual java.util.concurrent.locks.ReentrantReadWriteLock$WriteLock.lock:()V
1: aload 0
getfield org.glassfish.grizzly.streams.BufferedInput.isCompletionHandlerRegistered:Z
ifne 23
2: aload 1
invokeinterface org.glassfish.grizzly.utils.conditions.Condition.check:()Z
ifeq 7
3: aload 0
aload 2
invokevirtual org.glassfish.grizzly.streams.BufferedInput.notifyCompleted:(Lorg/glassfish/grizzly/CompletionHandler;)V
4: aload 0
getfield org.glassfish.grizzly.streams.BufferedInput.compositeBuffer:Lorg/glassfish/grizzly/memory/CompositeBuffer;
invokevirtual org.glassfish.grizzly.memory.CompositeBuffer.remaining:()I
invokestatic java.lang.Integer.valueOf:(I)Ljava/lang/Integer;
invokestatic org.glassfish.grizzly.impl.ReadyFutureImpl.create:(Ljava/lang/Object;)Lorg/glassfish/grizzly/impl/ReadyFutureImpl;
astore 6
5: aload 0
getfield org.glassfish.grizzly.streams.BufferedInput.lock:Ljava/util/concurrent/locks/ReentrantReadWriteLock;
invokevirtual java.util.concurrent.locks.ReentrantReadWriteLock.writeLock:()Ljava/util/concurrent/locks/ReentrantReadWriteLock$WriteLock;
invokevirtual java.util.concurrent.locks.ReentrantReadWriteLock$WriteLock.unlock:()V
6: aload 6
areturn
7: StackMap locals:
StackMap stack:
aload 0
new java.lang.Exception
dup
invokespecial java.lang.Exception.<init>:()V
putfield org.glassfish.grizzly.streams.BufferedInput.registrationStackTrace:Ljava/lang/Exception;
8: aload 0
iconst_1
putfield org.glassfish.grizzly.streams.BufferedInput.isCompletionHandlerRegistered:Z
9: aload 0
aload 2
putfield org.glassfish.grizzly.streams.BufferedInput.completionHandler:Lorg/glassfish/grizzly/CompletionHandler;
10: invokestatic org.glassfish.grizzly.impl.SafeFutureImpl.create:()Lorg/glassfish/grizzly/impl/SafeFutureImpl;
astore 3
start local 3 11: aload 0
aload 3
putfield org.glassfish.grizzly.streams.BufferedInput.future:Lorg/glassfish/grizzly/impl/FutureImpl;
12: aload 0
aload 1
putfield org.glassfish.grizzly.streams.BufferedInput.condition:Lorg/glassfish/grizzly/utils/conditions/Condition;
13: aload 0
invokevirtual org.glassfish.grizzly.streams.BufferedInput.onOpenInputSource:()V
14: goto 20
StackMap locals: org.glassfish.grizzly.streams.BufferedInput org.glassfish.grizzly.utils.conditions.Condition org.glassfish.grizzly.CompletionHandler org.glassfish.grizzly.impl.FutureImpl
StackMap stack: java.io.IOException
15: astore 4
start local 4 16: aload 0
aload 2
aload 4
invokevirtual org.glassfish.grizzly.streams.BufferedInput.notifyFailure:(Lorg/glassfish/grizzly/CompletionHandler;Ljava/lang/Throwable;)V
17: aload 4
invokestatic org.glassfish.grizzly.impl.ReadyFutureImpl.create:(Ljava/lang/Throwable;)Lorg/glassfish/grizzly/impl/ReadyFutureImpl;
astore 6
18: aload 0
getfield org.glassfish.grizzly.streams.BufferedInput.lock:Ljava/util/concurrent/locks/ReentrantReadWriteLock;
invokevirtual java.util.concurrent.locks.ReentrantReadWriteLock.writeLock:()Ljava/util/concurrent/locks/ReentrantReadWriteLock$WriteLock;
invokevirtual java.util.concurrent.locks.ReentrantReadWriteLock$WriteLock.unlock:()V
19: aload 6
areturn
end local 4 20: StackMap locals:
StackMap stack:
aload 3
astore 6
21: aload 0
getfield org.glassfish.grizzly.streams.BufferedInput.lock:Ljava/util/concurrent/locks/ReentrantReadWriteLock;
invokevirtual java.util.concurrent.locks.ReentrantReadWriteLock.writeLock:()Ljava/util/concurrent/locks/ReentrantReadWriteLock$WriteLock;
invokevirtual java.util.concurrent.locks.ReentrantReadWriteLock$WriteLock.unlock:()V
22: aload 6
areturn
end local 3 23: StackMap locals:
StackMap stack:
new java.lang.IllegalStateException
dup
ldc "Only one notificator could be registered. Previous registration came from: "
aload 0
getfield org.glassfish.grizzly.streams.BufferedInput.registrationStackTrace:Ljava/lang/Exception;
invokespecial java.lang.IllegalStateException.<init>:(Ljava/lang/String;Ljava/lang/Throwable;)V
athrow
24: StackMap locals:
StackMap stack: java.lang.Throwable
astore 5
25: aload 0
getfield org.glassfish.grizzly.streams.BufferedInput.lock:Ljava/util/concurrent/locks/ReentrantReadWriteLock;
invokevirtual java.util.concurrent.locks.ReentrantReadWriteLock.writeLock:()Ljava/util/concurrent/locks/ReentrantReadWriteLock$WriteLock;
invokevirtual java.util.concurrent.locks.ReentrantReadWriteLock$WriteLock.unlock:()V
26: aload 5
athrow
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 27 0 this Lorg/glassfish/grizzly/streams/BufferedInput;
0 27 1 condition Lorg/glassfish/grizzly/utils/conditions/Condition;
0 27 2 completionHandler Lorg/glassfish/grizzly/CompletionHandler<Ljava/lang/Integer;>;
11 23 3 localFuture Lorg/glassfish/grizzly/impl/FutureImpl<Ljava/lang/Integer;>;
16 20 4 e Ljava/io/IOException;
Exception table:
from to target type
13 14 15 Class java.io.IOException
1 5 24 any
7 18 24 any
20 21 24 any
23 24 24 any
Signature: (Lorg/glassfish/grizzly/utils/conditions/Condition;Lorg/glassfish/grizzly/CompletionHandler<Ljava/lang/Integer;>;)Lorg/glassfish/grizzly/GrizzlyFuture<Ljava/lang/Integer;>;
MethodParameters:
Name Flags
condition
completionHandler
private void notifyUpdate();
descriptor: ()V
flags: (0x0002) ACC_PRIVATE
Code:
stack=3, locals=4, args_size=1
start local 0 0: aload 0
getfield org.glassfish.grizzly.streams.BufferedInput.condition:Lorg/glassfish/grizzly/utils/conditions/Condition;
ifnull 14
aload 0
getfield org.glassfish.grizzly.streams.BufferedInput.condition:Lorg/glassfish/grizzly/utils/conditions/Condition;
invokeinterface org.glassfish.grizzly.utils.conditions.Condition.check:()Z
ifeq 14
1: aload 0
aconst_null
putfield org.glassfish.grizzly.streams.BufferedInput.condition:Lorg/glassfish/grizzly/utils/conditions/Condition;
2: aload 0
getfield org.glassfish.grizzly.streams.BufferedInput.completionHandler:Lorg/glassfish/grizzly/CompletionHandler;
astore 1
start local 1 3: aload 0
aconst_null
putfield org.glassfish.grizzly.streams.BufferedInput.completionHandler:Lorg/glassfish/grizzly/CompletionHandler;
4: aload 0
getfield org.glassfish.grizzly.streams.BufferedInput.future:Lorg/glassfish/grizzly/impl/FutureImpl;
astore 2
start local 2 5: aload 0
aconst_null
putfield org.glassfish.grizzly.streams.BufferedInput.future:Lorg/glassfish/grizzly/impl/FutureImpl;
6: aload 0
iconst_0
putfield org.glassfish.grizzly.streams.BufferedInput.isCompletionHandlerRegistered:Z
7: aload 0
invokevirtual org.glassfish.grizzly.streams.BufferedInput.onCloseInputSource:()V
8: aload 0
aload 1
invokevirtual org.glassfish.grizzly.streams.BufferedInput.notifyCompleted:(Lorg/glassfish/grizzly/CompletionHandler;)V
9: aload 2
aload 0
getfield org.glassfish.grizzly.streams.BufferedInput.compositeBuffer:Lorg/glassfish/grizzly/memory/CompositeBuffer;
invokevirtual org.glassfish.grizzly.memory.CompositeBuffer.remaining:()I
invokestatic java.lang.Integer.valueOf:(I)Ljava/lang/Integer;
invokeinterface org.glassfish.grizzly.impl.FutureImpl.result:(Ljava/lang/Object;)V
10: goto 14
StackMap locals: org.glassfish.grizzly.streams.BufferedInput org.glassfish.grizzly.CompletionHandler org.glassfish.grizzly.impl.FutureImpl
StackMap stack: java.io.IOException
11: astore 3
start local 3 12: aload 0
aload 1
aload 3
invokevirtual org.glassfish.grizzly.streams.BufferedInput.notifyFailure:(Lorg/glassfish/grizzly/CompletionHandler;Ljava/lang/Throwable;)V
13: aload 2
aload 3
invokeinterface org.glassfish.grizzly.impl.FutureImpl.failure:(Ljava/lang/Throwable;)V
end local 3 end local 2 end local 1 14: StackMap locals:
StackMap stack:
return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 15 0 this Lorg/glassfish/grizzly/streams/BufferedInput;
3 14 1 localCompletionHandler Lorg/glassfish/grizzly/CompletionHandler<Ljava/lang/Integer;>;
5 14 2 localFuture Lorg/glassfish/grizzly/impl/FutureImpl<Ljava/lang/Integer;>;
12 14 3 e Ljava/io/IOException;
Exception table:
from to target type
7 10 11 Class java.io.IOException
protected void notifyCompleted(org.glassfish.grizzly.CompletionHandler<java.lang.Integer>);
descriptor: (Lorg/glassfish/grizzly/CompletionHandler;)V
flags: (0x0004) ACC_PROTECTED
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 1
ifnull 2
1: aload 1
aload 0
getfield org.glassfish.grizzly.streams.BufferedInput.compositeBuffer:Lorg/glassfish/grizzly/memory/CompositeBuffer;
invokevirtual org.glassfish.grizzly.memory.CompositeBuffer.remaining:()I
invokestatic java.lang.Integer.valueOf:(I)Ljava/lang/Integer;
invokeinterface org.glassfish.grizzly.CompletionHandler.completed:(Ljava/lang/Object;)V
2: StackMap locals:
StackMap stack:
return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lorg/glassfish/grizzly/streams/BufferedInput;
0 3 1 completionHandler Lorg/glassfish/grizzly/CompletionHandler<Ljava/lang/Integer;>;
Signature: (Lorg/glassfish/grizzly/CompletionHandler<Ljava/lang/Integer;>;)V
MethodParameters:
Name Flags
completionHandler final
protected void notifyFailure(org.glassfish.grizzly.CompletionHandler<java.lang.Integer>, java.lang.Throwable);
descriptor: (Lorg/glassfish/grizzly/CompletionHandler;Ljava/lang/Throwable;)V
flags: (0x0004) ACC_PROTECTED
Code:
stack=2, locals=3, args_size=3
start local 0 start local 1 start local 2 0: aload 1
ifnull 2
1: aload 1
aload 2
invokeinterface org.glassfish.grizzly.CompletionHandler.failed:(Ljava/lang/Throwable;)V
2: StackMap locals:
StackMap stack:
return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lorg/glassfish/grizzly/streams/BufferedInput;
0 3 1 completionHandler Lorg/glassfish/grizzly/CompletionHandler<Ljava/lang/Integer;>;
0 3 2 failure Ljava/lang/Throwable;
Signature: (Lorg/glassfish/grizzly/CompletionHandler<Ljava/lang/Integer;>;Ljava/lang/Throwable;)V
MethodParameters:
Name Flags
completionHandler final
failure final
}
SourceFile: "BufferedInput.java"
InnerClasses:
public WriteLock = java.util.concurrent.locks.ReentrantReadWriteLock$WriteLock of java.util.concurrent.locks.ReentrantReadWriteLock