public abstract class org.glassfish.grizzly.streams.AbstractStreamWriter implements org.glassfish.grizzly.streams.StreamWriter
minor version: 0
major version: 59
flags: flags: (0x0421) ACC_PUBLIC, ACC_SUPER, ACC_ABSTRACT
this_class: org.glassfish.grizzly.streams.AbstractStreamWriter
super_class: java.lang.Object
{
protected static final java.util.logging.Logger logger;
descriptor: Ljava/util/logging/Logger;
flags: (0x001c) ACC_PROTECTED, ACC_STATIC, ACC_FINAL
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;>;
private final org.glassfish.grizzly.Connection connection;
descriptor: Lorg/glassfish/grizzly/Connection;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private long timeoutMillis;
descriptor: J
flags: (0x0002) ACC_PRIVATE
private final java.util.concurrent.atomic.AtomicBoolean isClosed;
descriptor: Ljava/util/concurrent/atomic/AtomicBoolean;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
protected final boolean isOutputBuffered;
descriptor: Z
flags: (0x0014) ACC_PROTECTED, ACC_FINAL
protected final org.glassfish.grizzly.streams.Output output;
descriptor: Lorg/glassfish/grizzly/streams/Output;
flags: (0x0014) ACC_PROTECTED, ACC_FINAL
static void <clinit>();
descriptor: ()V
flags: (0x0008) ACC_STATIC
Code:
stack=1, locals=0, args_size=0
0: ldc Lorg/glassfish/grizzly/streams/AbstractStreamWriter;
invokestatic org.glassfish.grizzly.Grizzly.logger:(Ljava/lang/Class;)Ljava/util/logging/Logger;
putstatic org.glassfish.grizzly.streams.AbstractStreamWriter.logger:Ljava/util/logging/Logger;
1: iconst_0
invokestatic java.lang.Integer.valueOf:(I)Ljava/lang/Integer;
putstatic org.glassfish.grizzly.streams.AbstractStreamWriter.ZERO:Ljava/lang/Integer;
2: getstatic org.glassfish.grizzly.streams.AbstractStreamWriter.ZERO:Ljava/lang/Integer;
invokestatic org.glassfish.grizzly.impl.ReadyFutureImpl.create:(Ljava/lang/Object;)Lorg/glassfish/grizzly/impl/ReadyFutureImpl;
putstatic org.glassfish.grizzly.streams.AbstractStreamWriter.ZERO_READY_FUTURE:Lorg/glassfish/grizzly/GrizzlyFuture;
return
LocalVariableTable:
Start End Slot Name Signature
protected void <init>(org.glassfish.grizzly.Connection, org.glassfish.grizzly.streams.Output);
descriptor: (Lorg/glassfish/grizzly/Connection;Lorg/glassfish/grizzly/streams/Output;)V
flags: (0x0004) ACC_PROTECTED
Code:
stack=3, locals=3, args_size=3
start local 0 start local 1 start local 2 0: aload 0
invokespecial java.lang.Object.<init>:()V
1: aload 0
ldc 30000
putfield org.glassfish.grizzly.streams.AbstractStreamWriter.timeoutMillis:J
2: aload 0
new java.util.concurrent.atomic.AtomicBoolean
dup
invokespecial java.util.concurrent.atomic.AtomicBoolean.<init>:()V
putfield org.glassfish.grizzly.streams.AbstractStreamWriter.isClosed:Ljava/util/concurrent/atomic/AtomicBoolean;
3: aload 0
aload 1
putfield org.glassfish.grizzly.streams.AbstractStreamWriter.connection:Lorg/glassfish/grizzly/Connection;
4: aload 0
aload 2
putfield org.glassfish.grizzly.streams.AbstractStreamWriter.output:Lorg/glassfish/grizzly/streams/Output;
5: aload 0
aload 2
invokeinterface org.glassfish.grizzly.streams.Output.isBuffered:()Z
putfield org.glassfish.grizzly.streams.AbstractStreamWriter.isOutputBuffered:Z
6: return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 7 0 this Lorg/glassfish/grizzly/streams/AbstractStreamWriter;
0 7 1 connection Lorg/glassfish/grizzly/Connection;
0 7 2 streamOutput Lorg/glassfish/grizzly/streams/Output;
MethodParameters:
Name Flags
connection final
streamOutput
public org.glassfish.grizzly.GrizzlyFuture<java.lang.Integer> flush();
descriptor: ()Lorg/glassfish/grizzly/GrizzlyFuture;
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=1, args_size=1
start local 0 0: aload 0
aconst_null
invokevirtual org.glassfish.grizzly.streams.AbstractStreamWriter.flush:(Lorg/glassfish/grizzly/CompletionHandler;)Lorg/glassfish/grizzly/GrizzlyFuture;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/glassfish/grizzly/streams/AbstractStreamWriter;
Exceptions:
throws java.io.IOException
Signature: ()Lorg/glassfish/grizzly/GrizzlyFuture<Ljava/lang/Integer;>;
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
getfield org.glassfish.grizzly.streams.AbstractStreamWriter.output:Lorg/glassfish/grizzly/streams/Output;
aload 1
invokeinterface org.glassfish.grizzly.streams.Output.flush:(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/AbstractStreamWriter;
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 boolean isClosed();
descriptor: ()Z
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield org.glassfish.grizzly.streams.AbstractStreamWriter.isClosed:Ljava/util/concurrent/atomic/AtomicBoolean;
invokevirtual java.util.concurrent.atomic.AtomicBoolean.get:()Z
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/glassfish/grizzly/streams/AbstractStreamWriter;
public void close();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=1, args_size=1
start local 0 0: aload 0
aconst_null
invokevirtual org.glassfish.grizzly.streams.AbstractStreamWriter.close:(Lorg/glassfish/grizzly/CompletionHandler;)Lorg/glassfish/grizzly/GrizzlyFuture;
pop
1: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lorg/glassfish/grizzly/streams/AbstractStreamWriter;
Exceptions:
throws java.io.IOException
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=2, locals=2, args_size=2
start local 0 start local 1 0: aload 0
getfield org.glassfish.grizzly.streams.AbstractStreamWriter.isClosed:Ljava/util/concurrent/atomic/AtomicBoolean;
iconst_1
invokevirtual java.util.concurrent.atomic.AtomicBoolean.getAndSet:(Z)Z
ifne 2
1: aload 0
getfield org.glassfish.grizzly.streams.AbstractStreamWriter.output:Lorg/glassfish/grizzly/streams/Output;
aload 1
invokeinterface org.glassfish.grizzly.streams.Output.close:(Lorg/glassfish/grizzly/CompletionHandler;)Lorg/glassfish/grizzly/GrizzlyFuture;
areturn
2: StackMap locals:
StackMap stack:
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;
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lorg/glassfish/grizzly/streams/AbstractStreamWriter;
0 3 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 void writeBuffer(org.glassfish.grizzly.Buffer);
descriptor: (Lorg/glassfish/grizzly/Buffer;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 0
getfield org.glassfish.grizzly.streams.AbstractStreamWriter.output:Lorg/glassfish/grizzly/streams/Output;
aload 1
invokeinterface org.glassfish.grizzly.streams.Output.write:(Lorg/glassfish/grizzly/Buffer;)V
1: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lorg/glassfish/grizzly/streams/AbstractStreamWriter;
0 2 1 b Lorg/glassfish/grizzly/Buffer;
Exceptions:
throws java.io.IOException
MethodParameters:
Name Flags
b
public void writeBoolean(boolean);
descriptor: (Z)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=3, args_size=2
start local 0 start local 1 0: iload 1
ifeq 1
iconst_1
goto 2
StackMap locals:
StackMap stack:
1: iconst_0
StackMap locals:
StackMap stack: int
2: istore 2
start local 2 3: aload 0
iload 2
invokevirtual org.glassfish.grizzly.streams.AbstractStreamWriter.writeByte:(B)V
4: return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 this Lorg/glassfish/grizzly/streams/AbstractStreamWriter;
0 5 1 data Z
3 5 2 value B
Exceptions:
throws java.io.IOException
MethodParameters:
Name Flags
data final
public void writeByte(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
getfield org.glassfish.grizzly.streams.AbstractStreamWriter.output:Lorg/glassfish/grizzly/streams/Output;
iload 1
invokeinterface org.glassfish.grizzly.streams.Output.write:(B)V
1: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lorg/glassfish/grizzly/streams/AbstractStreamWriter;
0 2 1 data B
Exceptions:
throws java.io.IOException
MethodParameters:
Name Flags
data final
public void writeChar(char);
descriptor: (C)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=2, args_size=2
start local 0 start local 1 0: aload 0
getfield org.glassfish.grizzly.streams.AbstractStreamWriter.isOutputBuffered:Z
ifeq 4
1: aload 0
getfield org.glassfish.grizzly.streams.AbstractStreamWriter.output:Lorg/glassfish/grizzly/streams/Output;
iconst_2
invokeinterface org.glassfish.grizzly.streams.Output.ensureBufferCapacity:(I)V
2: aload 0
getfield org.glassfish.grizzly.streams.AbstractStreamWriter.output:Lorg/glassfish/grizzly/streams/Output;
invokeinterface org.glassfish.grizzly.streams.Output.getBuffer:()Lorg/glassfish/grizzly/Buffer;
iload 1
invokeinterface org.glassfish.grizzly.Buffer.putChar:(C)Lorg/glassfish/grizzly/Buffer;
pop
3: goto 6
4: StackMap locals:
StackMap stack:
aload 0
getfield org.glassfish.grizzly.streams.AbstractStreamWriter.output:Lorg/glassfish/grizzly/streams/Output;
iload 1
bipush 8
iushr
sipush 255
iand
i2b
invokeinterface org.glassfish.grizzly.streams.Output.write:(B)V
5: aload 0
getfield org.glassfish.grizzly.streams.AbstractStreamWriter.output:Lorg/glassfish/grizzly/streams/Output;
iload 1
sipush 255
iand
i2b
invokeinterface org.glassfish.grizzly.streams.Output.write:(B)V
6: StackMap locals:
StackMap stack:
return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 7 0 this Lorg/glassfish/grizzly/streams/AbstractStreamWriter;
0 7 1 data C
Exceptions:
throws java.io.IOException
MethodParameters:
Name Flags
data final
public void writeShort(short);
descriptor: (S)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=2, args_size=2
start local 0 start local 1 0: aload 0
getfield org.glassfish.grizzly.streams.AbstractStreamWriter.isOutputBuffered:Z
ifeq 4
1: aload 0
getfield org.glassfish.grizzly.streams.AbstractStreamWriter.output:Lorg/glassfish/grizzly/streams/Output;
iconst_2
invokeinterface org.glassfish.grizzly.streams.Output.ensureBufferCapacity:(I)V
2: aload 0
getfield org.glassfish.grizzly.streams.AbstractStreamWriter.output:Lorg/glassfish/grizzly/streams/Output;
invokeinterface org.glassfish.grizzly.streams.Output.getBuffer:()Lorg/glassfish/grizzly/Buffer;
iload 1
invokeinterface org.glassfish.grizzly.Buffer.putShort:(S)Lorg/glassfish/grizzly/Buffer;
pop
3: goto 6
4: StackMap locals:
StackMap stack:
aload 0
getfield org.glassfish.grizzly.streams.AbstractStreamWriter.output:Lorg/glassfish/grizzly/streams/Output;
iload 1
bipush 8
iushr
sipush 255
iand
i2b
invokeinterface org.glassfish.grizzly.streams.Output.write:(B)V
5: aload 0
getfield org.glassfish.grizzly.streams.AbstractStreamWriter.output:Lorg/glassfish/grizzly/streams/Output;
iload 1
sipush 255
iand
i2b
invokeinterface org.glassfish.grizzly.streams.Output.write:(B)V
6: StackMap locals:
StackMap stack:
return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 7 0 this Lorg/glassfish/grizzly/streams/AbstractStreamWriter;
0 7 1 data S
Exceptions:
throws java.io.IOException
MethodParameters:
Name Flags
data final
public void writeInt(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
getfield org.glassfish.grizzly.streams.AbstractStreamWriter.isOutputBuffered:Z
ifeq 4
1: aload 0
getfield org.glassfish.grizzly.streams.AbstractStreamWriter.output:Lorg/glassfish/grizzly/streams/Output;
iconst_4
invokeinterface org.glassfish.grizzly.streams.Output.ensureBufferCapacity:(I)V
2: aload 0
getfield org.glassfish.grizzly.streams.AbstractStreamWriter.output:Lorg/glassfish/grizzly/streams/Output;
invokeinterface org.glassfish.grizzly.streams.Output.getBuffer:()Lorg/glassfish/grizzly/Buffer;
iload 1
invokeinterface org.glassfish.grizzly.Buffer.putInt:(I)Lorg/glassfish/grizzly/Buffer;
pop
3: goto 8
4: StackMap locals:
StackMap stack:
aload 0
getfield org.glassfish.grizzly.streams.AbstractStreamWriter.output:Lorg/glassfish/grizzly/streams/Output;
iload 1
bipush 24
iushr
sipush 255
iand
i2b
invokeinterface org.glassfish.grizzly.streams.Output.write:(B)V
5: aload 0
getfield org.glassfish.grizzly.streams.AbstractStreamWriter.output:Lorg/glassfish/grizzly/streams/Output;
iload 1
bipush 16
iushr
sipush 255
iand
i2b
invokeinterface org.glassfish.grizzly.streams.Output.write:(B)V
6: aload 0
getfield org.glassfish.grizzly.streams.AbstractStreamWriter.output:Lorg/glassfish/grizzly/streams/Output;
iload 1
bipush 8
iushr
sipush 255
iand
i2b
invokeinterface org.glassfish.grizzly.streams.Output.write:(B)V
7: aload 0
getfield org.glassfish.grizzly.streams.AbstractStreamWriter.output:Lorg/glassfish/grizzly/streams/Output;
iload 1
sipush 255
iand
i2b
invokeinterface org.glassfish.grizzly.streams.Output.write:(B)V
8: StackMap locals:
StackMap stack:
return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 9 0 this Lorg/glassfish/grizzly/streams/AbstractStreamWriter;
0 9 1 data I
Exceptions:
throws java.io.IOException
MethodParameters:
Name Flags
data final
public void writeLong(long);
descriptor: (J)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=5, locals=3, args_size=2
start local 0 start local 1 0: aload 0
getfield org.glassfish.grizzly.streams.AbstractStreamWriter.isOutputBuffered:Z
ifeq 4
1: aload 0
getfield org.glassfish.grizzly.streams.AbstractStreamWriter.output:Lorg/glassfish/grizzly/streams/Output;
bipush 8
invokeinterface org.glassfish.grizzly.streams.Output.ensureBufferCapacity:(I)V
2: aload 0
getfield org.glassfish.grizzly.streams.AbstractStreamWriter.output:Lorg/glassfish/grizzly/streams/Output;
invokeinterface org.glassfish.grizzly.streams.Output.getBuffer:()Lorg/glassfish/grizzly/Buffer;
lload 1
invokeinterface org.glassfish.grizzly.Buffer.putLong:(J)Lorg/glassfish/grizzly/Buffer;
pop
3: goto 12
4: StackMap locals:
StackMap stack:
aload 0
getfield org.glassfish.grizzly.streams.AbstractStreamWriter.output:Lorg/glassfish/grizzly/streams/Output;
lload 1
bipush 56
lushr
ldc 255
land
l2i
i2b
invokeinterface org.glassfish.grizzly.streams.Output.write:(B)V
5: aload 0
getfield org.glassfish.grizzly.streams.AbstractStreamWriter.output:Lorg/glassfish/grizzly/streams/Output;
lload 1
bipush 48
lushr
ldc 255
land
l2i
i2b
invokeinterface org.glassfish.grizzly.streams.Output.write:(B)V
6: aload 0
getfield org.glassfish.grizzly.streams.AbstractStreamWriter.output:Lorg/glassfish/grizzly/streams/Output;
lload 1
bipush 40
lushr
ldc 255
land
l2i
i2b
invokeinterface org.glassfish.grizzly.streams.Output.write:(B)V
7: aload 0
getfield org.glassfish.grizzly.streams.AbstractStreamWriter.output:Lorg/glassfish/grizzly/streams/Output;
lload 1
bipush 32
lushr
ldc 255
land
l2i
i2b
invokeinterface org.glassfish.grizzly.streams.Output.write:(B)V
8: aload 0
getfield org.glassfish.grizzly.streams.AbstractStreamWriter.output:Lorg/glassfish/grizzly/streams/Output;
lload 1
bipush 24
lushr
ldc 255
land
l2i
i2b
invokeinterface org.glassfish.grizzly.streams.Output.write:(B)V
9: aload 0
getfield org.glassfish.grizzly.streams.AbstractStreamWriter.output:Lorg/glassfish/grizzly/streams/Output;
lload 1
bipush 16
lushr
ldc 255
land
l2i
i2b
invokeinterface org.glassfish.grizzly.streams.Output.write:(B)V
10: aload 0
getfield org.glassfish.grizzly.streams.AbstractStreamWriter.output:Lorg/glassfish/grizzly/streams/Output;
lload 1
bipush 8
lushr
ldc 255
land
l2i
i2b
invokeinterface org.glassfish.grizzly.streams.Output.write:(B)V
11: aload 0
getfield org.glassfish.grizzly.streams.AbstractStreamWriter.output:Lorg/glassfish/grizzly/streams/Output;
lload 1
ldc 255
land
l2i
i2b
invokeinterface org.glassfish.grizzly.streams.Output.write:(B)V
12: StackMap locals:
StackMap stack:
return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 13 0 this Lorg/glassfish/grizzly/streams/AbstractStreamWriter;
0 13 1 data J
Exceptions:
throws java.io.IOException
MethodParameters:
Name Flags
data final
public void writeFloat(float);
descriptor: (F)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 0
fload 1
invokestatic java.lang.Float.floatToIntBits:(F)I
invokevirtual org.glassfish.grizzly.streams.AbstractStreamWriter.writeInt:(I)V
1: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lorg/glassfish/grizzly/streams/AbstractStreamWriter;
0 2 1 data F
Exceptions:
throws java.io.IOException
MethodParameters:
Name Flags
data final
public void writeDouble(double);
descriptor: (D)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=3, args_size=2
start local 0 start local 1 0: aload 0
dload 1
invokestatic java.lang.Double.doubleToLongBits:(D)J
invokevirtual org.glassfish.grizzly.streams.AbstractStreamWriter.writeLong:(J)V
1: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lorg/glassfish/grizzly/streams/AbstractStreamWriter;
0 2 1 data D
Exceptions:
throws java.io.IOException
MethodParameters:
Name Flags
data final
public void writeBooleanArray(boolean[]);
descriptor: ([Z)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=3, args_size=2
start local 0 start local 1 0: iconst_0
istore 2
start local 2 1: goto 6
2: StackMap locals: int
StackMap stack:
aload 0
getfield org.glassfish.grizzly.streams.AbstractStreamWriter.output:Lorg/glassfish/grizzly/streams/Output;
aload 1
iload 2
baload
ifeq 3
iconst_1
goto 4
StackMap locals:
StackMap stack: org.glassfish.grizzly.streams.Output
3: iconst_0
StackMap locals: org.glassfish.grizzly.streams.AbstractStreamWriter boolean[] int
StackMap stack: org.glassfish.grizzly.streams.Output int
4: i2b
invokeinterface org.glassfish.grizzly.streams.Output.write:(B)V
5: iinc 2 1
StackMap locals:
StackMap stack:
6: iload 2
aload 1
arraylength
if_icmplt 2
end local 2 7: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 8 0 this Lorg/glassfish/grizzly/streams/AbstractStreamWriter;
0 8 1 data [Z
1 7 2 i I
Exceptions:
throws java.io.IOException
MethodParameters:
Name Flags
data final
public void writeByteArray(byte[]);
descriptor: ([B)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=2, args_size=2
start local 0 start local 1 0: aload 0
aload 1
iconst_0
aload 1
arraylength
invokevirtual org.glassfish.grizzly.streams.AbstractStreamWriter.writeByteArray:([BII)V
1: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lorg/glassfish/grizzly/streams/AbstractStreamWriter;
0 2 1 data [B
Exceptions:
throws java.io.IOException
MethodParameters:
Name Flags
data final
public void writeByteArray(byte[], int, int);
descriptor: ([BII)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=5, args_size=4
start local 0 start local 1 start local 2 start local 3 0: aload 0
getfield org.glassfish.grizzly.streams.AbstractStreamWriter.connection:Lorg/glassfish/grizzly/Connection;
invokeinterface org.glassfish.grizzly.Connection.getMemoryManager:()Lorg/glassfish/grizzly/memory/MemoryManager;
aload 1
iload 2
iload 3
invokestatic org.glassfish.grizzly.memory.Buffers.wrap:(Lorg/glassfish/grizzly/memory/MemoryManager;[BII)Lorg/glassfish/grizzly/Buffer;
astore 4
start local 4 1: aload 0
getfield org.glassfish.grizzly.streams.AbstractStreamWriter.output:Lorg/glassfish/grizzly/streams/Output;
aload 4
invokeinterface org.glassfish.grizzly.streams.Output.write:(Lorg/glassfish/grizzly/Buffer;)V
2: return
end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lorg/glassfish/grizzly/streams/AbstractStreamWriter;
0 3 1 data [B
0 3 2 offset I
0 3 3 length I
1 3 4 buffer Lorg/glassfish/grizzly/Buffer;
Exceptions:
throws java.io.IOException
MethodParameters:
Name Flags
data
offset
length
public void writeCharArray(char[]);
descriptor: ([C)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=3, args_size=2
start local 0 start local 1 0: iconst_0
istore 2
start local 2 1: goto 4
2: StackMap locals: int
StackMap stack:
aload 0
aload 1
iload 2
caload
invokevirtual org.glassfish.grizzly.streams.AbstractStreamWriter.writeChar:(C)V
3: iinc 2 1
StackMap locals:
StackMap stack:
4: iload 2
aload 1
arraylength
if_icmplt 2
end local 2 5: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 6 0 this Lorg/glassfish/grizzly/streams/AbstractStreamWriter;
0 6 1 data [C
1 5 2 i I
Exceptions:
throws java.io.IOException
MethodParameters:
Name Flags
data final
public void writeShortArray(short[]);
descriptor: ([S)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=3, args_size=2
start local 0 start local 1 0: iconst_0
istore 2
start local 2 1: goto 4
2: StackMap locals: int
StackMap stack:
aload 0
aload 1
iload 2
saload
invokevirtual org.glassfish.grizzly.streams.AbstractStreamWriter.writeShort:(S)V
3: iinc 2 1
StackMap locals:
StackMap stack:
4: iload 2
aload 1
arraylength
if_icmplt 2
end local 2 5: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 6 0 this Lorg/glassfish/grizzly/streams/AbstractStreamWriter;
0 6 1 data [S
1 5 2 i I
Exceptions:
throws java.io.IOException
MethodParameters:
Name Flags
data final
public void writeIntArray(int[]);
descriptor: ([I)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=3, args_size=2
start local 0 start local 1 0: iconst_0
istore 2
start local 2 1: goto 4
2: StackMap locals: int
StackMap stack:
aload 0
aload 1
iload 2
iaload
invokevirtual org.glassfish.grizzly.streams.AbstractStreamWriter.writeInt:(I)V
3: iinc 2 1
StackMap locals:
StackMap stack:
4: iload 2
aload 1
arraylength
if_icmplt 2
end local 2 5: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 6 0 this Lorg/glassfish/grizzly/streams/AbstractStreamWriter;
0 6 1 data [I
1 5 2 i I
Exceptions:
throws java.io.IOException
MethodParameters:
Name Flags
data final
public void writeLongArray(long[]);
descriptor: ([J)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=3, args_size=2
start local 0 start local 1 0: iconst_0
istore 2
start local 2 1: goto 4
2: StackMap locals: int
StackMap stack:
aload 0
aload 1
iload 2
laload
invokevirtual org.glassfish.grizzly.streams.AbstractStreamWriter.writeLong:(J)V
3: iinc 2 1
StackMap locals:
StackMap stack:
4: iload 2
aload 1
arraylength
if_icmplt 2
end local 2 5: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 6 0 this Lorg/glassfish/grizzly/streams/AbstractStreamWriter;
0 6 1 data [J
1 5 2 i I
Exceptions:
throws java.io.IOException
MethodParameters:
Name Flags
data final
public void writeFloatArray(float[]);
descriptor: ([F)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=3, args_size=2
start local 0 start local 1 0: iconst_0
istore 2
start local 2 1: goto 4
2: StackMap locals: int
StackMap stack:
aload 0
aload 1
iload 2
faload
invokevirtual org.glassfish.grizzly.streams.AbstractStreamWriter.writeFloat:(F)V
3: iinc 2 1
StackMap locals:
StackMap stack:
4: iload 2
aload 1
arraylength
if_icmplt 2
end local 2 5: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 6 0 this Lorg/glassfish/grizzly/streams/AbstractStreamWriter;
0 6 1 data [F
1 5 2 i I
Exceptions:
throws java.io.IOException
MethodParameters:
Name Flags
data final
public void writeDoubleArray(double[]);
descriptor: ([D)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=3, args_size=2
start local 0 start local 1 0: iconst_0
istore 2
start local 2 1: goto 4
2: StackMap locals: int
StackMap stack:
aload 0
aload 1
iload 2
daload
invokevirtual org.glassfish.grizzly.streams.AbstractStreamWriter.writeDouble:(D)V
3: iinc 2 1
StackMap locals:
StackMap stack:
4: iload 2
aload 1
arraylength
if_icmplt 2
end local 2 5: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 6 0 this Lorg/glassfish/grizzly/streams/AbstractStreamWriter;
0 6 1 data [D
1 5 2 i I
Exceptions:
throws java.io.IOException
MethodParameters:
Name Flags
data final
public <E> org.glassfish.grizzly.GrizzlyFuture<org.glassfish.grizzly.streams.Stream> encode(org.glassfish.grizzly.Transformer<E, org.glassfish.grizzly.Buffer>, E);
descriptor: (Lorg/glassfish/grizzly/Transformer;Ljava/lang/Object;)Lorg/glassfish/grizzly/GrizzlyFuture;
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=3, args_size=3
start local 0 start local 1 start local 2 0: aload 0
aload 1
aload 2
aconst_null
invokevirtual org.glassfish.grizzly.streams.AbstractStreamWriter.encode:(Lorg/glassfish/grizzly/Transformer;Ljava/lang/Object;Lorg/glassfish/grizzly/CompletionHandler;)Lorg/glassfish/grizzly/GrizzlyFuture;
areturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/glassfish/grizzly/streams/AbstractStreamWriter;
0 1 1 encoder Lorg/glassfish/grizzly/Transformer<TE;Lorg/glassfish/grizzly/Buffer;>;
0 1 2 object TE;
Exceptions:
throws java.io.IOException
Signature: <E:Ljava/lang/Object;>(Lorg/glassfish/grizzly/Transformer<TE;Lorg/glassfish/grizzly/Buffer;>;TE;)Lorg/glassfish/grizzly/GrizzlyFuture<Lorg/glassfish/grizzly/streams/Stream;>;
MethodParameters:
Name Flags
encoder
object
public <E> org.glassfish.grizzly.GrizzlyFuture<org.glassfish.grizzly.streams.Stream> encode(org.glassfish.grizzly.Transformer<E, org.glassfish.grizzly.Buffer>, E, org.glassfish.grizzly.CompletionHandler<org.glassfish.grizzly.streams.Stream>);
descriptor: (Lorg/glassfish/grizzly/Transformer;Ljava/lang/Object;Lorg/glassfish/grizzly/CompletionHandler;)Lorg/glassfish/grizzly/GrizzlyFuture;
flags: (0x0001) ACC_PUBLIC
Code:
stack=5, locals=7, args_size=4
start local 0 start local 1 start local 2 start local 3 0: aconst_null
astore 4
start local 4 1: aload 1
aload 0
getfield org.glassfish.grizzly.streams.AbstractStreamWriter.connection:Lorg/glassfish/grizzly/Connection;
aload 2
invokeinterface org.glassfish.grizzly.Transformer.transform:(Lorg/glassfish/grizzly/attributes/AttributeStorage;Ljava/lang/Object;)Lorg/glassfish/grizzly/TransformationResult;
astore 5
start local 5 2: aload 5
invokevirtual org.glassfish.grizzly.TransformationResult.getStatus:()Lorg/glassfish/grizzly/TransformationResult$Status;
astore 6
start local 6 3: aload 6
getstatic org.glassfish.grizzly.TransformationResult$Status.COMPLETE:Lorg/glassfish/grizzly/TransformationResult$Status;
if_acmpne 8
4: aload 0
getfield org.glassfish.grizzly.streams.AbstractStreamWriter.output:Lorg/glassfish/grizzly/streams/Output;
aload 5
invokevirtual org.glassfish.grizzly.TransformationResult.getMessage:()Ljava/lang/Object;
checkcast org.glassfish.grizzly.Buffer
invokeinterface org.glassfish.grizzly.streams.Output.write:(Lorg/glassfish/grizzly/Buffer;)V
5: aload 3
ifnull 7
6: aload 3
aload 0
invokeinterface org.glassfish.grizzly.CompletionHandler.completed:(Ljava/lang/Object;)V
7: StackMap locals: java.lang.Exception org.glassfish.grizzly.TransformationResult org.glassfish.grizzly.TransformationResult$Status
StackMap stack:
aload 0
invokestatic org.glassfish.grizzly.impl.ReadyFutureImpl.create:(Ljava/lang/Object;)Lorg/glassfish/grizzly/impl/ReadyFutureImpl;
areturn
8: StackMap locals:
StackMap stack:
aload 6
getstatic org.glassfish.grizzly.TransformationResult$Status.INCOMPLETE:Lorg/glassfish/grizzly/TransformationResult$Status;
if_acmpne 10
9: new java.lang.IllegalStateException
dup
ldc "Encoder returned INCOMPLETE state"
invokespecial java.lang.IllegalStateException.<init>:(Ljava/lang/String;)V
astore 4
10: StackMap locals:
StackMap stack:
aload 4
ifnonnull 12
11: new org.glassfish.grizzly.TransformationException
dup
new java.lang.StringBuilder
dup
aload 5
invokevirtual org.glassfish.grizzly.TransformationResult.getErrorCode:()I
invokestatic java.lang.String.valueOf:(I)Ljava/lang/String;
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
ldc ": "
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
aload 5
invokevirtual org.glassfish.grizzly.TransformationResult.getErrorDescription:()Ljava/lang/String;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokespecial org.glassfish.grizzly.TransformationException.<init>:(Ljava/lang/String;)V
astore 4
12: StackMap locals:
StackMap stack:
aload 4
invokestatic org.glassfish.grizzly.impl.ReadyFutureImpl.create:(Ljava/lang/Throwable;)Lorg/glassfish/grizzly/impl/ReadyFutureImpl;
areturn
end local 6 end local 5 end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 13 0 this Lorg/glassfish/grizzly/streams/AbstractStreamWriter;
0 13 1 encoder Lorg/glassfish/grizzly/Transformer<TE;Lorg/glassfish/grizzly/Buffer;>;
0 13 2 object TE;
0 13 3 completionHandler Lorg/glassfish/grizzly/CompletionHandler<Lorg/glassfish/grizzly/streams/Stream;>;
1 13 4 exception Ljava/lang/Exception;
2 13 5 result Lorg/glassfish/grizzly/TransformationResult<TE;Lorg/glassfish/grizzly/Buffer;>;
3 13 6 status Lorg/glassfish/grizzly/TransformationResult$Status;
Exceptions:
throws java.io.IOException
Signature: <E:Ljava/lang/Object;>(Lorg/glassfish/grizzly/Transformer<TE;Lorg/glassfish/grizzly/Buffer;>;TE;Lorg/glassfish/grizzly/CompletionHandler<Lorg/glassfish/grizzly/streams/Stream;>;)Lorg/glassfish/grizzly/GrizzlyFuture<Lorg/glassfish/grizzly/streams/Stream;>;
MethodParameters:
Name Flags
encoder
object
completionHandler
public org.glassfish.grizzly.Connection getConnection();
descriptor: ()Lorg/glassfish/grizzly/Connection;
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield org.glassfish.grizzly.streams.AbstractStreamWriter.connection:Lorg/glassfish/grizzly/Connection;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/glassfish/grizzly/streams/AbstractStreamWriter;
public long getTimeout(java.util.concurrent.TimeUnit);
descriptor: (Ljava/util/concurrent/TimeUnit;)J
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=2, args_size=2
start local 0 start local 1 0: aload 1
aload 0
getfield org.glassfish.grizzly.streams.AbstractStreamWriter.timeoutMillis:J
getstatic java.util.concurrent.TimeUnit.MILLISECONDS:Ljava/util/concurrent/TimeUnit;
invokevirtual java.util.concurrent.TimeUnit.convert:(JLjava/util/concurrent/TimeUnit;)J
lreturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/glassfish/grizzly/streams/AbstractStreamWriter;
0 1 1 timeunit Ljava/util/concurrent/TimeUnit;
MethodParameters:
Name Flags
timeunit
public void setTimeout(long, java.util.concurrent.TimeUnit);
descriptor: (JLjava/util/concurrent/TimeUnit;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=5, locals=4, args_size=3
start local 0 start local 1 start local 3 0: aload 0
getstatic java.util.concurrent.TimeUnit.MILLISECONDS:Ljava/util/concurrent/TimeUnit;
lload 1
aload 3
invokevirtual java.util.concurrent.TimeUnit.convert:(JLjava/util/concurrent/TimeUnit;)J
putfield org.glassfish.grizzly.streams.AbstractStreamWriter.timeoutMillis:J
1: return
end local 3 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lorg/glassfish/grizzly/streams/AbstractStreamWriter;
0 2 1 timeout J
0 2 3 timeunit Ljava/util/concurrent/TimeUnit;
MethodParameters:
Name Flags
timeout
timeunit
}
SourceFile: "AbstractStreamWriter.java"
NestMembers:
org.glassfish.grizzly.streams.AbstractStreamWriter$DisposeBufferCompletionHandler
InnerClasses:
public final Status = org.glassfish.grizzly.TransformationResult$Status of org.glassfish.grizzly.TransformationResult
public DisposeBufferCompletionHandler = org.glassfish.grizzly.streams.AbstractStreamWriter$DisposeBufferCompletionHandler of org.glassfish.grizzly.streams.AbstractStreamWriter