final class jdk.incubator.http.internal.websocket.OutgoingMessage$Text extends jdk.incubator.http.internal.websocket.OutgoingMessage
minor version: 0
major version: 59
flags: flags: (0x0030) ACC_FINAL, ACC_SUPER
this_class: jdk.incubator.http.internal.websocket.OutgoingMessage$Text
super_class: jdk.incubator.http.internal.websocket.OutgoingMessage
{
private final java.nio.ByteBuffer payload;
descriptor: Ljava/nio/ByteBuffer;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private final boolean isLast;
descriptor: Z
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
void <init>(java.lang.CharSequence, boolean);
descriptor: (Ljava/lang/CharSequence;Z)V
flags: (0x0000)
Code:
stack=3, locals=4, args_size=3
start local 0 // jdk.incubator.http.internal.websocket.OutgoingMessage$Text this
start local 1 // java.lang.CharSequence characters
start local 2 // boolean isLast
0: .line 107
aload 0 /* this */
invokespecial jdk.incubator.http.internal.websocket.OutgoingMessage.<init>:()V
1: .line 108
getstatic java.nio.charset.StandardCharsets.UTF_8:Ljava/nio/charset/Charset;
invokevirtual java.nio.charset.Charset.newEncoder:()Ljava/nio/charset/CharsetEncoder;
astore 3 /* encoder */
start local 3 // java.nio.charset.CharsetEncoder encoder
2: .line 110
aload 0 /* this */
aload 3 /* encoder */
aload 1 /* characters */
invokestatic java.nio.CharBuffer.wrap:(Ljava/lang/CharSequence;)Ljava/nio/CharBuffer;
invokevirtual java.nio.charset.CharsetEncoder.encode:(Ljava/nio/CharBuffer;)Ljava/nio/ByteBuffer;
putfield jdk.incubator.http.internal.websocket.OutgoingMessage$Text.payload:Ljava/nio/ByteBuffer;
3: .line 111
goto 8
StackMap locals: jdk.incubator.http.internal.websocket.OutgoingMessage$Text java.lang.CharSequence int java.nio.charset.CharsetEncoder
StackMap stack: java.nio.charset.CharacterCodingException
4: pop
5: .line 112
new java.lang.IllegalArgumentException
dup
6: .line 113
ldc "Malformed UTF-8 text message"
7: .line 112
invokespecial java.lang.IllegalArgumentException.<init>:(Ljava/lang/String;)V
athrow
8: .line 115
StackMap locals:
StackMap stack:
aload 0 /* this */
iload 2 /* isLast */
putfield jdk.incubator.http.internal.websocket.OutgoingMessage$Text.isLast:Z
9: .line 116
return
end local 3 // java.nio.charset.CharsetEncoder encoder
end local 2 // boolean isLast
end local 1 // java.lang.CharSequence characters
end local 0 // jdk.incubator.http.internal.websocket.OutgoingMessage$Text this
LocalVariableTable:
Start End Slot Name Signature
0 10 0 this Ljdk/incubator/http/internal/websocket/OutgoingMessage$Text;
0 10 1 characters Ljava/lang/CharSequence;
0 10 2 isLast Z
2 10 3 encoder Ljava/nio/charset/CharsetEncoder;
Exception table:
from to target type
2 3 4 Class java.nio.charset.CharacterCodingException
MethodParameters:
Name Flags
characters
isLast
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=6, locals=2, args_size=2
start local 0 // jdk.incubator.http.internal.websocket.OutgoingMessage$Text this
start local 1 // jdk.incubator.http.internal.websocket.OutgoingMessage$Context context
0: .line 120
aload 0 /* this */
aload 1 /* context */
invokespecial jdk.incubator.http.internal.websocket.OutgoingMessage.contextualize:(Ljdk/incubator/http/internal/websocket/OutgoingMessage$Context;)Z
pop
1: .line 121
aload 1 /* context */
invokevirtual jdk.incubator.http.internal.websocket.OutgoingMessage$Context.isPreviousBinary:()Z
ifeq 3
aload 1 /* context */
invokevirtual jdk.incubator.http.internal.websocket.OutgoingMessage$Context.isPreviousLast:()Z
ifne 3
2: .line 122
new java.lang.IllegalStateException
dup
ldc "Unexpected text message"
invokespecial java.lang.IllegalStateException.<init>:(Ljava/lang/String;)V
athrow
3: .line 124
StackMap locals:
StackMap stack:
aload 0 /* this */
4: .line 125
getstatic jdk.incubator.http.internal.websocket.Frame$Opcode.TEXT:Ljdk/incubator/http/internal/websocket/Frame$Opcode;
aload 1 /* context */
invokevirtual jdk.incubator.http.internal.websocket.OutgoingMessage$Context.isPreviousLast:()Z
aload 0 /* this */
getfield jdk.incubator.http.internal.websocket.OutgoingMessage$Text.isLast:Z
aload 0 /* this */
getfield jdk.incubator.http.internal.websocket.OutgoingMessage$Text.payload:Ljava/nio/ByteBuffer;
aload 0 /* this */
getfield jdk.incubator.http.internal.websocket.OutgoingMessage$Text.payload:Ljava/nio/ByteBuffer;
5: .line 124
invokestatic jdk.incubator.http.internal.websocket.OutgoingMessage.getDataMessageBuffers:(Ljdk/incubator/http/internal/websocket/Frame$Opcode;ZZLjava/nio/ByteBuffer;Ljava/nio/ByteBuffer;)[Ljava/nio/ByteBuffer;
putfield jdk.incubator.http.internal.websocket.OutgoingMessage$Text.frame:[Ljava/nio/ByteBuffer;
6: .line 126
aload 1 /* context */
iconst_0
invokevirtual jdk.incubator.http.internal.websocket.OutgoingMessage$Context.setPreviousBinary:(Z)V
7: .line 127
aload 1 /* context */
iconst_1
invokevirtual jdk.incubator.http.internal.websocket.OutgoingMessage$Context.setPreviousText:(Z)V
8: .line 128
aload 1 /* context */
aload 0 /* this */
getfield jdk.incubator.http.internal.websocket.OutgoingMessage$Text.isLast:Z
invokevirtual jdk.incubator.http.internal.websocket.OutgoingMessage$Context.setPreviousLast:(Z)V
9: .line 129
iconst_1
ireturn
end local 1 // jdk.incubator.http.internal.websocket.OutgoingMessage$Context context
end local 0 // jdk.incubator.http.internal.websocket.OutgoingMessage$Text this
LocalVariableTable:
Start End Slot Name Signature
0 10 0 this Ljdk/incubator/http/internal/websocket/OutgoingMessage$Text;
0 10 1 context Ljdk/incubator/http/internal/websocket/OutgoingMessage$Context;
MethodParameters:
Name Flags
context
}
SourceFile: "OutgoingMessage.java"
NestHost: jdk.incubator.http.internal.websocket.OutgoingMessage
InnerClasses:
final Opcode = jdk.incubator.http.internal.websocket.Frame$Opcode of jdk.incubator.http.internal.websocket.Frame
public Context = jdk.incubator.http.internal.websocket.OutgoingMessage$Context of jdk.incubator.http.internal.websocket.OutgoingMessage
final Text = jdk.incubator.http.internal.websocket.OutgoingMessage$Text of jdk.incubator.http.internal.websocket.OutgoingMessage