abstract class jdk.incubator.http.internal.websocket.OutgoingMessage
minor version: 0
major version: 59
flags: flags: (0x0420) ACC_SUPER, ACC_ABSTRACT
this_class: jdk.incubator.http.internal.websocket.OutgoingMessage
super_class: java.lang.Object
{
private static final java.security.SecureRandom maskingKeys;
descriptor: Ljava/security/SecureRandom;
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
protected java.nio.ByteBuffer[] frame;
descriptor: [Ljava/nio/ByteBuffer;
flags: (0x0004) ACC_PROTECTED
protected int offset;
descriptor: I
flags: (0x0004) ACC_PROTECTED
static final boolean $assertionsDisabled;
descriptor: Z
flags: (0x1018) ACC_STATIC, ACC_FINAL, ACC_SYNTHETIC
static void <clinit>();
descriptor: ()V
flags: (0x0008) ACC_STATIC
Code:
stack=2, locals=0, args_size=0
0: ldc Ljdk/incubator/http/internal/websocket/OutgoingMessage;
invokevirtual java.lang.Class.desiredAssertionStatus:()Z
ifne 1
iconst_1
goto 2
StackMap locals:
StackMap stack:
1: iconst_0
StackMap locals:
StackMap stack: int
2: putstatic jdk.incubator.http.internal.websocket.OutgoingMessage.$assertionsDisabled:Z
3: new java.security.SecureRandom
dup
invokespecial java.security.SecureRandom.<init>:()V
putstatic jdk.incubator.http.internal.websocket.OutgoingMessage.maskingKeys:Ljava/security/SecureRandom;
return
LocalVariableTable:
Start End Slot Name Signature
void <init>();
descriptor: ()V
flags: (0x0000)
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
invokespecial java.lang.Object.<init>:()V
return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Ljdk/incubator/http/internal/websocket/OutgoingMessage;
protected boolean contextualize(jdk.incubator.http.internal.websocket.OutgoingMessage$Context);
descriptor: (Ljdk/incubator/http/internal/websocket/OutgoingMessage$Context;)Z
flags: (0x0004) ACC_PROTECTED
Code:
stack=3, locals=2, args_size=2
start local 0 start local 1 0: aload 1
invokevirtual jdk.incubator.http.internal.websocket.OutgoingMessage$Context.isCloseSent:()Z
ifeq 2
1: new java.lang.IllegalStateException
dup
ldc "Close sent"
invokespecial java.lang.IllegalStateException.<init>:(Ljava/lang/String;)V
athrow
2: StackMap locals:
StackMap stack:
iconst_1
ireturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Ljdk/incubator/http/internal/websocket/OutgoingMessage;
0 3 1 context Ljdk/incubator/http/internal/websocket/OutgoingMessage$Context;
MethodParameters:
Name Flags
context
protected boolean sendTo(jdk.incubator.http.internal.websocket.RawChannel);
descriptor: (Ljdk/incubator/http/internal/websocket/RawChannel;)Z
flags: (0x0004) ACC_PROTECTED
Code:
stack=5, locals=4, args_size=2
start local 0 start local 1 0: goto 4
1: StackMap locals:
StackMap stack:
aload 1
aload 0
getfield jdk.incubator.http.internal.websocket.OutgoingMessage.frame:[Ljava/nio/ByteBuffer;
aload 0
getfield jdk.incubator.http.internal.websocket.OutgoingMessage.offset:I
aload 0
getfield jdk.incubator.http.internal.websocket.OutgoingMessage.frame:[Ljava/nio/ByteBuffer;
arraylength
aload 0
getfield jdk.incubator.http.internal.websocket.OutgoingMessage.offset:I
isub
invokeinterface jdk.incubator.http.internal.websocket.RawChannel.write:([Ljava/nio/ByteBuffer;II)J
lstore 2
start local 2 2: lload 2
lconst_0
lcmp
ifne 4
3: iconst_0
ireturn
end local 2 4: StackMap locals:
StackMap stack:
aload 0
aload 0
invokevirtual jdk.incubator.http.internal.websocket.OutgoingMessage.nextUnwrittenIndex:()I
dup_x1
putfield jdk.incubator.http.internal.websocket.OutgoingMessage.offset:I
iconst_m1
if_icmpne 1
5: iconst_1
ireturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 6 0 this Ljdk/incubator/http/internal/websocket/OutgoingMessage;
0 6 1 channel Ljdk/incubator/http/internal/websocket/RawChannel;
2 4 2 n J
Exceptions:
throws java.io.IOException
MethodParameters:
Name Flags
channel
private int nextUnwrittenIndex();
descriptor: ()I
flags: (0x0002) ACC_PRIVATE
Code:
stack=2, locals=2, args_size=1
start local 0 0: aload 0
getfield jdk.incubator.http.internal.websocket.OutgoingMessage.offset:I
istore 1
start local 1 1: goto 5
2: StackMap locals: int
StackMap stack:
aload 0
getfield jdk.incubator.http.internal.websocket.OutgoingMessage.frame:[Ljava/nio/ByteBuffer;
iload 1
aaload
invokevirtual java.nio.ByteBuffer.hasRemaining:()Z
ifeq 4
3: iload 1
ireturn
4: StackMap locals:
StackMap stack:
iinc 1 1
StackMap locals:
StackMap stack:
5: iload 1
aload 0
getfield jdk.incubator.http.internal.websocket.OutgoingMessage.frame:[Ljava/nio/ByteBuffer;
arraylength
if_icmplt 2
end local 1 6: iconst_m1
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 7 0 this Ljdk/incubator/http/internal/websocket/OutgoingMessage;
1 6 1 i I
private static java.nio.ByteBuffer[] getControlMessageBuffers(jdk.incubator.http.internal.websocket.Frame$Opcode, java.nio.ByteBuffer);
descriptor: (Ljdk/incubator/http/internal/websocket/Frame$Opcode;Ljava/nio/ByteBuffer;)[Ljava/nio/ByteBuffer;
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=5, locals=5, args_size=2
start local 0 start local 1 0: getstatic jdk.incubator.http.internal.websocket.OutgoingMessage.$assertionsDisabled:Z
ifne 1
aload 0
invokevirtual jdk.incubator.http.internal.websocket.Frame$Opcode.isControl:()Z
ifne 1
new java.lang.AssertionError
dup
aload 0
invokespecial java.lang.AssertionError.<init>:(Ljava/lang/Object;)V
athrow
1: StackMap locals:
StackMap stack:
aload 1
invokevirtual java.nio.ByteBuffer.remaining:()I
istore 2
start local 2 2: iload 2
bipush 125
if_icmple 6
3: new java.lang.IllegalArgumentException
dup
4: new java.lang.StringBuilder
dup
ldc "Long message: "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
iload 2
invokevirtual java.lang.StringBuilder.append:(I)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
5: invokespecial java.lang.IllegalArgumentException.<init>:(Ljava/lang/String;)V
athrow
6: StackMap locals: int
StackMap stack:
bipush 14
iload 2
iadd
invokestatic java.nio.ByteBuffer.allocate:(I)Ljava/nio/ByteBuffer;
astore 3
start local 3 7: getstatic jdk.incubator.http.internal.websocket.OutgoingMessage.maskingKeys:Ljava/security/SecureRandom;
invokevirtual java.security.SecureRandom.nextInt:()I
istore 4
start local 4 8: new jdk.incubator.http.internal.websocket.Frame$HeaderWriter
dup
invokespecial jdk.incubator.http.internal.websocket.Frame$HeaderWriter.<init>:()V
9: iconst_1
invokevirtual jdk.incubator.http.internal.websocket.Frame$HeaderWriter.fin:(Z)Ljdk/incubator/http/internal/websocket/Frame$HeaderWriter;
10: aload 0
invokevirtual jdk.incubator.http.internal.websocket.Frame$HeaderWriter.opcode:(Ljdk/incubator/http/internal/websocket/Frame$Opcode;)Ljdk/incubator/http/internal/websocket/Frame$HeaderWriter;
11: iload 2
i2l
invokevirtual jdk.incubator.http.internal.websocket.Frame$HeaderWriter.payloadLen:(J)Ljdk/incubator/http/internal/websocket/Frame$HeaderWriter;
12: iload 4
invokevirtual jdk.incubator.http.internal.websocket.Frame$HeaderWriter.mask:(I)Ljdk/incubator/http/internal/websocket/Frame$HeaderWriter;
13: aload 3
invokevirtual jdk.incubator.http.internal.websocket.Frame$HeaderWriter.write:(Ljava/nio/ByteBuffer;)V
14: aload 1
aload 3
iload 4
invokestatic jdk.incubator.http.internal.websocket.Frame$Masker.transferMasking:(Ljava/nio/ByteBuffer;Ljava/nio/ByteBuffer;I)V
15: aload 3
invokevirtual java.nio.ByteBuffer.flip:()Ljava/nio/ByteBuffer;
pop
16: iconst_1
anewarray java.nio.ByteBuffer
dup
iconst_0
aload 3
aastore
areturn
end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 17 0 opcode Ljdk/incubator/http/internal/websocket/Frame$Opcode;
0 17 1 payload Ljava/nio/ByteBuffer;
2 17 2 remaining I
7 17 3 frame Ljava/nio/ByteBuffer;
8 17 4 mask I
MethodParameters:
Name Flags
opcode
payload
private static java.nio.ByteBuffer[] getDataMessageBuffers(jdk.incubator.http.internal.websocket.Frame$Opcode, boolean, boolean, java.nio.ByteBuffer, java.nio.ByteBuffer);
descriptor: (Ljdk/incubator/http/internal/websocket/Frame$Opcode;ZZLjava/nio/ByteBuffer;Ljava/nio/ByteBuffer;)[Ljava/nio/ByteBuffer;
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=4, locals=7, args_size=5
start local 0 start local 1 start local 2 start local 3 start local 4 0: getstatic jdk.incubator.http.internal.websocket.OutgoingMessage.$assertionsDisabled:Z
ifne 2
aload 0
invokevirtual jdk.incubator.http.internal.websocket.Frame$Opcode.isControl:()Z
ifne 1
aload 0
getstatic jdk.incubator.http.internal.websocket.Frame$Opcode.CONTINUATION:Ljdk/incubator/http/internal/websocket/Frame$Opcode;
if_acmpne 2
StackMap locals:
StackMap stack:
1: new java.lang.AssertionError
dup
aload 0
invokespecial java.lang.AssertionError.<init>:(Ljava/lang/Object;)V
athrow
2: StackMap locals:
StackMap stack:
bipush 14
invokestatic java.nio.ByteBuffer.allocate:(I)Ljava/nio/ByteBuffer;
astore 5
start local 5 3: getstatic jdk.incubator.http.internal.websocket.OutgoingMessage.maskingKeys:Ljava/security/SecureRandom;
invokevirtual java.security.SecureRandom.nextInt:()I
istore 6
start local 6 4: new jdk.incubator.http.internal.websocket.Frame$HeaderWriter
dup
invokespecial jdk.incubator.http.internal.websocket.Frame$HeaderWriter.<init>:()V
5: iload 2
invokevirtual jdk.incubator.http.internal.websocket.Frame$HeaderWriter.fin:(Z)Ljdk/incubator/http/internal/websocket/Frame$HeaderWriter;
6: iload 1
ifeq 7
aload 0
goto 8
StackMap locals: jdk.incubator.http.internal.websocket.Frame$Opcode int int java.nio.ByteBuffer java.nio.ByteBuffer java.nio.ByteBuffer int
StackMap stack: jdk.incubator.http.internal.websocket.Frame$HeaderWriter
7: getstatic jdk.incubator.http.internal.websocket.Frame$Opcode.CONTINUATION:Ljdk/incubator/http/internal/websocket/Frame$Opcode;
StackMap locals: jdk.incubator.http.internal.websocket.Frame$Opcode int int java.nio.ByteBuffer java.nio.ByteBuffer java.nio.ByteBuffer int
StackMap stack: jdk.incubator.http.internal.websocket.Frame$HeaderWriter jdk.incubator.http.internal.websocket.Frame$Opcode
8: invokevirtual jdk.incubator.http.internal.websocket.Frame$HeaderWriter.opcode:(Ljdk/incubator/http/internal/websocket/Frame$Opcode;)Ljdk/incubator/http/internal/websocket/Frame$HeaderWriter;
9: aload 4
invokevirtual java.nio.ByteBuffer.remaining:()I
i2l
invokevirtual jdk.incubator.http.internal.websocket.Frame$HeaderWriter.payloadLen:(J)Ljdk/incubator/http/internal/websocket/Frame$HeaderWriter;
10: iload 6
invokevirtual jdk.incubator.http.internal.websocket.Frame$HeaderWriter.mask:(I)Ljdk/incubator/http/internal/websocket/Frame$HeaderWriter;
11: aload 5
invokevirtual jdk.incubator.http.internal.websocket.Frame$HeaderWriter.write:(Ljava/nio/ByteBuffer;)V
12: aload 5
invokevirtual java.nio.ByteBuffer.flip:()Ljava/nio/ByteBuffer;
pop
13: aload 3
aload 4
iload 6
invokestatic jdk.incubator.http.internal.websocket.Frame$Masker.transferMasking:(Ljava/nio/ByteBuffer;Ljava/nio/ByteBuffer;I)V
14: aload 4
invokevirtual java.nio.ByteBuffer.flip:()Ljava/nio/ByteBuffer;
pop
15: iconst_2
anewarray java.nio.ByteBuffer
dup
iconst_0
aload 5
aastore
dup
iconst_1
aload 4
aastore
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 16 0 type Ljdk/incubator/http/internal/websocket/Frame$Opcode;
0 16 1 isPreviousLast Z
0 16 2 isLast Z
0 16 3 payloadSrc Ljava/nio/ByteBuffer;
0 16 4 payloadDst Ljava/nio/ByteBuffer;
3 16 5 header Ljava/nio/ByteBuffer;
4 16 6 mask I
MethodParameters:
Name Flags
type
isPreviousLast
isLast
payloadSrc
payloadDst
}
SourceFile: "OutgoingMessage.java"
NestMembers:
jdk.incubator.http.internal.websocket.OutgoingMessage$Binary jdk.incubator.http.internal.websocket.OutgoingMessage$Close jdk.incubator.http.internal.websocket.OutgoingMessage$Context jdk.incubator.http.internal.websocket.OutgoingMessage$Ping jdk.incubator.http.internal.websocket.OutgoingMessage$Pong jdk.incubator.http.internal.websocket.OutgoingMessage$Text
InnerClasses:
final HeaderWriter = jdk.incubator.http.internal.websocket.Frame$HeaderWriter of jdk.incubator.http.internal.websocket.Frame
final Masker = jdk.incubator.http.internal.websocket.Frame$Masker of jdk.incubator.http.internal.websocket.Frame
final Opcode = jdk.incubator.http.internal.websocket.Frame$Opcode of jdk.incubator.http.internal.websocket.Frame
final Binary = jdk.incubator.http.internal.websocket.OutgoingMessage$Binary of jdk.incubator.http.internal.websocket.OutgoingMessage
final Close = jdk.incubator.http.internal.websocket.OutgoingMessage$Close of jdk.incubator.http.internal.websocket.OutgoingMessage
public Context = jdk.incubator.http.internal.websocket.OutgoingMessage$Context of jdk.incubator.http.internal.websocket.OutgoingMessage
final Ping = jdk.incubator.http.internal.websocket.OutgoingMessage$Ping of jdk.incubator.http.internal.websocket.OutgoingMessage
final Pong = jdk.incubator.http.internal.websocket.OutgoingMessage$Pong of jdk.incubator.http.internal.websocket.OutgoingMessage
final Text = jdk.incubator.http.internal.websocket.OutgoingMessage$Text of jdk.incubator.http.internal.websocket.OutgoingMessage