public class org.glassfish.grizzly.websockets.ClosingFrame extends org.glassfish.grizzly.websockets.DataFrame
minor version: 0
major version: 59
flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
this_class: org.glassfish.grizzly.websockets.ClosingFrame
super_class: org.glassfish.grizzly.websockets.DataFrame
{
public static final byte[] EMPTY_BYTES;
descriptor: [B
flags: (0x0019) ACC_PUBLIC, ACC_STATIC, ACC_FINAL
private int code;
descriptor: I
flags: (0x0002) ACC_PRIVATE
private java.lang.String reason;
descriptor: Ljava/lang/String;
flags: (0x0002) ACC_PRIVATE
static void <clinit>();
descriptor: ()V
flags: (0x0008) ACC_STATIC
Code:
stack=1, locals=0, args_size=0
0: iconst_0
newarray 8
putstatic org.glassfish.grizzly.websockets.ClosingFrame.EMPTY_BYTES:[B
return
LocalVariableTable:
Start End Slot Name Signature
public void <init>();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=1, args_size=1
start local 0 0: aload 0
new org.glassfish.grizzly.websockets.frametypes.ClosingFrameType
dup
invokespecial org.glassfish.grizzly.websockets.frametypes.ClosingFrameType.<init>:()V
invokespecial org.glassfish.grizzly.websockets.DataFrame.<init>:(Lorg/glassfish/grizzly/websockets/FrameType;)V
1: aload 0
sipush 1000
putfield org.glassfish.grizzly.websockets.ClosingFrame.code:I
2: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lorg/glassfish/grizzly/websockets/ClosingFrame;
public void <init>(int, java.lang.String);
descriptor: (ILjava/lang/String;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=3, args_size=3
start local 0 start local 1 start local 2 0: aload 0
new org.glassfish.grizzly.websockets.frametypes.ClosingFrameType
dup
invokespecial org.glassfish.grizzly.websockets.frametypes.ClosingFrameType.<init>:()V
invokespecial org.glassfish.grizzly.websockets.DataFrame.<init>:(Lorg/glassfish/grizzly/websockets/FrameType;)V
1: aload 0
sipush 1000
putfield org.glassfish.grizzly.websockets.ClosingFrame.code:I
2: iload 1
ifle 4
3: aload 0
iload 1
putfield org.glassfish.grizzly.websockets.ClosingFrame.code:I
4: StackMap locals: org.glassfish.grizzly.websockets.ClosingFrame int java.lang.String
StackMap stack:
aload 0
aload 2
putfield org.glassfish.grizzly.websockets.ClosingFrame.reason:Ljava/lang/String;
5: return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 6 0 this Lorg/glassfish/grizzly/websockets/ClosingFrame;
0 6 1 code I
0 6 2 reason Ljava/lang/String;
MethodParameters:
Name Flags
code
reason
public void <init>(byte[]);
descriptor: ([B)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=2, args_size=2
start local 0 start local 1 0: aload 0
new org.glassfish.grizzly.websockets.frametypes.ClosingFrameType
dup
invokespecial org.glassfish.grizzly.websockets.frametypes.ClosingFrameType.<init>:()V
invokespecial org.glassfish.grizzly.websockets.DataFrame.<init>:(Lorg/glassfish/grizzly/websockets/FrameType;)V
1: aload 0
sipush 1000
putfield org.glassfish.grizzly.websockets.ClosingFrame.code:I
2: aload 0
aload 1
invokevirtual org.glassfish.grizzly.websockets.ClosingFrame.setPayload:([B)V
3: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Lorg/glassfish/grizzly/websockets/ClosingFrame;
0 4 1 data [B
MethodParameters:
Name Flags
data
public int getCode();
descriptor: ()I
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield org.glassfish.grizzly.websockets.ClosingFrame.code:I
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/glassfish/grizzly/websockets/ClosingFrame;
public java.lang.String getReason();
descriptor: ()Ljava/lang/String;
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield org.glassfish.grizzly.websockets.ClosingFrame.reason:Ljava/lang/String;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/glassfish/grizzly/websockets/ClosingFrame;
public void setPayload(byte[]);
descriptor: ([B)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=5, locals=2, args_size=2
start local 0 start local 1 0: aload 1
arraylength
iconst_1
if_icmpne 2
1: new org.glassfish.grizzly.websockets.ProtocolError
dup
ldc "Closing frame payload, if present, must be a minimum of 2 bytes in length"
invokespecial org.glassfish.grizzly.websockets.ProtocolError.<init>:(Ljava/lang/String;)V
athrow
2: StackMap locals:
StackMap stack:
aload 1
arraylength
ifle 9
3: aload 0
aload 1
iconst_0
iconst_2
invokestatic org.glassfish.grizzly.websockets.Utils.toLong:([BII)J
l2i
putfield org.glassfish.grizzly.websockets.ClosingFrame.code:I
4: aload 0
getfield org.glassfish.grizzly.websockets.ClosingFrame.code:I
sipush 1000
if_icmplt 6
aload 0
getfield org.glassfish.grizzly.websockets.ClosingFrame.code:I
sipush 1004
if_icmpeq 6
aload 0
getfield org.glassfish.grizzly.websockets.ClosingFrame.code:I
sipush 1005
if_icmpeq 6
aload 0
getfield org.glassfish.grizzly.websockets.ClosingFrame.code:I
sipush 1006
if_icmpeq 6
aload 0
getfield org.glassfish.grizzly.websockets.ClosingFrame.code:I
sipush 1011
if_icmple 5
aload 0
getfield org.glassfish.grizzly.websockets.ClosingFrame.code:I
sipush 3000
if_icmplt 6
StackMap locals:
StackMap stack:
5: aload 0
getfield org.glassfish.grizzly.websockets.ClosingFrame.code:I
sipush 4999
if_icmple 7
6: StackMap locals:
StackMap stack:
new org.glassfish.grizzly.websockets.ProtocolError
dup
new java.lang.StringBuilder
dup
ldc "Illegal status code: "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 0
getfield org.glassfish.grizzly.websockets.ClosingFrame.code:I
invokevirtual java.lang.StringBuilder.append:(I)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokespecial org.glassfish.grizzly.websockets.ProtocolError.<init>:(Ljava/lang/String;)V
athrow
7: StackMap locals:
StackMap stack:
aload 1
arraylength
iconst_2
if_icmple 9
8: aload 0
aload 1
invokevirtual org.glassfish.grizzly.websockets.ClosingFrame.utf8Decode:([B)V
9: StackMap locals:
StackMap stack:
return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 10 0 this Lorg/glassfish/grizzly/websockets/ClosingFrame;
0 10 1 bytes [B
MethodParameters:
Name Flags
bytes
public byte[] getBytes();
descriptor: ()[B
flags: (0x0001) ACC_PUBLIC
Code:
stack=5, locals=4, args_size=1
start local 0 0: aload 0
getfield org.glassfish.grizzly.websockets.ClosingFrame.code:I
iconst_m1
if_icmpne 2
1: getstatic org.glassfish.grizzly.websockets.ClosingFrame.EMPTY_BYTES:[B
areturn
2: StackMap locals:
StackMap stack:
aload 0
getfield org.glassfish.grizzly.websockets.ClosingFrame.code:I
i2l
invokestatic org.glassfish.grizzly.websockets.Utils.toArray:(J)[B
astore 1
start local 1 3: aload 0
getfield org.glassfish.grizzly.websockets.ClosingFrame.reason:Ljava/lang/String;
ifnonnull 4
getstatic org.glassfish.grizzly.websockets.ClosingFrame.EMPTY_BYTES:[B
goto 5
StackMap locals: byte[]
StackMap stack:
4: aload 0
getfield org.glassfish.grizzly.websockets.ClosingFrame.reason:Ljava/lang/String;
getstatic org.glassfish.grizzly.utils.Charsets.UTF8_CHARSET:Ljava/nio/charset/Charset;
invokevirtual java.lang.String.getBytes:(Ljava/nio/charset/Charset;)[B
StackMap locals:
StackMap stack: byte[]
5: astore 2
start local 2 6: iconst_2
aload 2
arraylength
iadd
newarray 8
astore 3
start local 3 7: aload 1
aload 1
arraylength
iconst_2
isub
aload 3
iconst_0
iconst_2
invokestatic java.lang.System.arraycopy:(Ljava/lang/Object;ILjava/lang/Object;II)V
8: aload 2
iconst_0
aload 3
iconst_2
aload 2
arraylength
invokestatic java.lang.System.arraycopy:(Ljava/lang/Object;ILjava/lang/Object;II)V
9: aload 3
areturn
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 10 0 this Lorg/glassfish/grizzly/websockets/ClosingFrame;
3 10 1 bytes [B
6 10 2 reasonBytes [B
7 10 3 frameBytes [B
public java.lang.String toString();
descriptor: ()Ljava/lang/String;
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=2, args_size=1
start local 0 0: new java.lang.StringBuilder
dup
invokespecial java.lang.StringBuilder.<init>:()V
astore 1
start local 1 1: aload 1
ldc "ClosingFrame"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
pop
2: aload 1
ldc "{code="
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
aload 0
getfield org.glassfish.grizzly.websockets.ClosingFrame.code:I
invokevirtual java.lang.StringBuilder.append:(I)Ljava/lang/StringBuilder;
pop
3: aload 1
ldc ", reason="
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
aload 0
getfield org.glassfish.grizzly.websockets.ClosingFrame.reason:Ljava/lang/String;
ifnonnull 4
aconst_null
goto 5
StackMap locals: org.glassfish.grizzly.websockets.ClosingFrame java.lang.StringBuilder
StackMap stack: java.lang.StringBuilder
4: new java.lang.StringBuilder
dup
ldc "'"
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 0
getfield org.glassfish.grizzly.websockets.ClosingFrame.reason:Ljava/lang/String;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
ldc "'"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
StackMap locals: org.glassfish.grizzly.websockets.ClosingFrame java.lang.StringBuilder
StackMap stack: java.lang.StringBuilder java.lang.String
5: invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
pop
6: aload 1
bipush 125
invokevirtual java.lang.StringBuilder.append:(C)Ljava/lang/StringBuilder;
pop
7: aload 1
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 8 0 this Lorg/glassfish/grizzly/websockets/ClosingFrame;
1 8 1 sb Ljava/lang/StringBuilder;
private void utf8Decode(byte[]);
descriptor: ([B)V
flags: (0x0002) ACC_PRIVATE
Code:
stack=4, locals=9, args_size=2
start local 0 start local 1 0: aload 1
iconst_2
aload 1
arraylength
iconst_2
isub
invokestatic java.nio.ByteBuffer.wrap:([BII)Ljava/nio/ByteBuffer;
astore 2
start local 2 1: getstatic org.glassfish.grizzly.utils.Charsets.UTF8_CHARSET:Ljava/nio/charset/Charset;
astore 3
start local 3 2: aload 3
invokevirtual java.nio.charset.Charset.newDecoder:()Ljava/nio/charset/CharsetDecoder;
astore 4
start local 4 3: aload 2
invokevirtual java.nio.ByteBuffer.remaining:()I
i2f
aload 4
invokevirtual java.nio.charset.CharsetDecoder.averageCharsPerByte:()F
fmul
f2i
istore 5
start local 5 4: iload 5
invokestatic java.nio.CharBuffer.allocate:(I)Ljava/nio/CharBuffer;
astore 6
start local 6 5: StackMap locals: org.glassfish.grizzly.websockets.ClosingFrame byte[] java.nio.ByteBuffer java.nio.charset.Charset java.nio.charset.CharsetDecoder int java.nio.CharBuffer
StackMap stack:
aload 4
aload 2
aload 6
iconst_1
invokevirtual java.nio.charset.CharsetDecoder.decode:(Ljava/nio/ByteBuffer;Ljava/nio/CharBuffer;Z)Ljava/nio/charset/CoderResult;
astore 7
start local 7 6: aload 7
invokevirtual java.nio.charset.CoderResult.isUnderflow:()Z
ifeq 11
7: aload 4
aload 6
invokevirtual java.nio.charset.CharsetDecoder.flush:(Ljava/nio/CharBuffer;)Ljava/nio/charset/CoderResult;
pop
8: aload 6
invokevirtual java.nio.CharBuffer.flip:()Ljava/nio/Buffer;
pop
9: aload 0
aload 6
invokevirtual java.nio.CharBuffer.toString:()Ljava/lang/String;
putfield org.glassfish.grizzly.websockets.ClosingFrame.reason:Ljava/lang/String;
10: goto 19
11: StackMap locals: java.nio.charset.CoderResult
StackMap stack:
aload 7
invokevirtual java.nio.charset.CoderResult.isOverflow:()Z
ifeq 17
12: iconst_2
iload 5
imul
iconst_1
iadd
invokestatic java.nio.CharBuffer.allocate:(I)Ljava/nio/CharBuffer;
astore 8
start local 8 13: aload 6
invokevirtual java.nio.CharBuffer.flip:()Ljava/nio/Buffer;
pop
14: aload 8
aload 6
invokevirtual java.nio.CharBuffer.put:(Ljava/nio/CharBuffer;)Ljava/nio/CharBuffer;
pop
15: aload 8
astore 6
16: goto 5
end local 8 17: StackMap locals:
StackMap stack:
aload 7
invokevirtual java.nio.charset.CoderResult.isError:()Z
ifne 18
aload 7
invokevirtual java.nio.charset.CoderResult.isMalformed:()Z
ifeq 5
18: StackMap locals:
StackMap stack:
new org.glassfish.grizzly.websockets.Utf8DecodingError
dup
ldc "Illegal UTF-8 Sequence"
invokespecial org.glassfish.grizzly.websockets.Utf8DecodingError.<init>:(Ljava/lang/String;)V
athrow
end local 7 19: StackMap locals:
StackMap stack:
return
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 20 0 this Lorg/glassfish/grizzly/websockets/ClosingFrame;
0 20 1 data [B
1 20 2 b Ljava/nio/ByteBuffer;
2 20 3 charset Ljava/nio/charset/Charset;
3 20 4 decoder Ljava/nio/charset/CharsetDecoder;
4 20 5 n I
5 20 6 cb Ljava/nio/CharBuffer;
6 19 7 result Ljava/nio/charset/CoderResult;
13 17 8 tmp Ljava/nio/CharBuffer;
MethodParameters:
Name Flags
data
}
SourceFile: "ClosingFrame.java"