final class jdk.internal.net.http.hpack.StringWriter
minor version: 0
major version: 59
flags: flags: (0x0030) ACC_FINAL, ACC_SUPER
this_class: jdk.internal.net.http.hpack.StringWriter
super_class: java.lang.Object
{
private static final int NEW;
descriptor: I
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
ConstantValue: 0
private static final int CONFIGURED;
descriptor: I
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
ConstantValue: 1
private static final int LENGTH_WRITTEN;
descriptor: I
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
ConstantValue: 2
private static final int DONE;
descriptor: I
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
ConstantValue: 4
private final jdk.internal.net.http.hpack.IntegerWriter intWriter;
descriptor: Ljdk/internal/net/http/hpack/IntegerWriter;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private final jdk.internal.net.http.hpack.Huffman$Writer huffmanWriter;
descriptor: Ljdk/internal/net/http/hpack/Huffman$Writer;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private final jdk.internal.net.http.hpack.ISO_8859_1$Writer plainWriter;
descriptor: Ljdk/internal/net/http/hpack/ISO_8859_1$Writer;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private int state;
descriptor: I
flags: (0x0002) ACC_PRIVATE
private boolean huffman;
descriptor: Z
flags: (0x0002) ACC_PRIVATE
void <init>();
descriptor: ()V
flags: (0x0000)
Code:
stack=3, locals=1, args_size=1
start local 0 0: aload 0
invokespecial java.lang.Object.<init>:()V
1: aload 0
new jdk.internal.net.http.hpack.IntegerWriter
dup
invokespecial jdk.internal.net.http.hpack.IntegerWriter.<init>:()V
putfield jdk.internal.net.http.hpack.StringWriter.intWriter:Ljdk/internal/net/http/hpack/IntegerWriter;
2: aload 0
new jdk.internal.net.http.hpack.QuickHuffman$Writer
dup
invokespecial jdk.internal.net.http.hpack.QuickHuffman$Writer.<init>:()V
putfield jdk.internal.net.http.hpack.StringWriter.huffmanWriter:Ljdk/internal/net/http/hpack/Huffman$Writer;
3: aload 0
new jdk.internal.net.http.hpack.ISO_8859_1$Writer
dup
invokespecial jdk.internal.net.http.hpack.ISO_8859_1$Writer.<init>:()V
putfield jdk.internal.net.http.hpack.StringWriter.plainWriter:Ljdk/internal/net/http/hpack/ISO_8859_1$Writer;
4: aload 0
iconst_0
putfield jdk.internal.net.http.hpack.StringWriter.state:I
5: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 6 0 this Ljdk/internal/net/http/hpack/StringWriter;
jdk.internal.net.http.hpack.StringWriter configure(java.lang.CharSequence, boolean);
descriptor: (Ljava/lang/CharSequence;Z)Ljdk/internal/net/http/hpack/StringWriter;
flags: (0x0000)
Code:
stack=5, locals=3, args_size=3
start local 0 start local 1 start local 2 0: aload 0
aload 1
iconst_0
aload 1
invokeinterface java.lang.CharSequence.length:()I
iload 2
invokevirtual jdk.internal.net.http.hpack.StringWriter.configure:(Ljava/lang/CharSequence;IIZ)Ljdk/internal/net/http/hpack/StringWriter;
areturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Ljdk/internal/net/http/hpack/StringWriter;
0 1 1 input Ljava/lang/CharSequence;
0 1 2 huffman Z
MethodParameters:
Name Flags
input
huffman
jdk.internal.net.http.hpack.StringWriter configure(java.lang.CharSequence, int, int, boolean);
descriptor: (Ljava/lang/CharSequence;IIZ)Ljdk/internal/net/http/hpack/StringWriter;
flags: (0x0000)
Code:
stack=7, locals=5, args_size=5
start local 0 start local 1 start local 2 start local 3 start local 4 0: iload 2
iflt 1
iload 3
iflt 1
iload 3
aload 1
invokeinterface java.lang.CharSequence.length:()I
if_icmpgt 1
iload 2
iload 3
if_icmple 6
1: StackMap locals:
StackMap stack:
new java.lang.IndexOutOfBoundsException
dup
2: ldc "input.length()=%s, start=%s, end=%s"
iconst_3
anewarray java.lang.Object
dup
iconst_0
3: aload 1
invokeinterface java.lang.CharSequence.length:()I
invokestatic java.lang.Integer.valueOf:(I)Ljava/lang/Integer;
aastore
dup
iconst_1
iload 2
invokestatic java.lang.Integer.valueOf:(I)Ljava/lang/Integer;
aastore
dup
iconst_2
iload 3
invokestatic java.lang.Integer.valueOf:(I)Ljava/lang/Integer;
aastore
4: invokestatic java.lang.String.format:(Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;
5: invokespecial java.lang.IndexOutOfBoundsException.<init>:(Ljava/lang/String;)V
athrow
6: StackMap locals:
StackMap stack:
iload 4
ifne 10
7: aload 0
getfield jdk.internal.net.http.hpack.StringWriter.plainWriter:Ljdk/internal/net/http/hpack/ISO_8859_1$Writer;
aload 1
iload 2
iload 3
invokevirtual jdk.internal.net.http.hpack.ISO_8859_1$Writer.configure:(Ljava/lang/CharSequence;II)Ljdk/internal/net/http/hpack/ISO_8859_1$Writer;
pop
8: aload 0
getfield jdk.internal.net.http.hpack.StringWriter.intWriter:Ljdk/internal/net/http/hpack/IntegerWriter;
iload 3
iload 2
isub
bipush 7
iconst_0
invokevirtual jdk.internal.net.http.hpack.IntegerWriter.configure:(III)Ljdk/internal/net/http/hpack/IntegerWriter;
pop
9: goto 14
10: StackMap locals:
StackMap stack:
aload 0
getfield jdk.internal.net.http.hpack.StringWriter.huffmanWriter:Ljdk/internal/net/http/hpack/Huffman$Writer;
aload 1
iload 2
iload 3
invokeinterface jdk.internal.net.http.hpack.Huffman$Writer.from:(Ljava/lang/CharSequence;II)Ljdk/internal/net/http/hpack/Huffman$Writer;
pop
11: aload 0
getfield jdk.internal.net.http.hpack.StringWriter.intWriter:Ljdk/internal/net/http/hpack/IntegerWriter;
aload 0
getfield jdk.internal.net.http.hpack.StringWriter.huffmanWriter:Ljdk/internal/net/http/hpack/Huffman$Writer;
aload 1
iload 2
iload 3
invokeinterface jdk.internal.net.http.hpack.Huffman$Writer.lengthOf:(Ljava/lang/CharSequence;II)I
12: bipush 7
sipush 128
13: invokevirtual jdk.internal.net.http.hpack.IntegerWriter.configure:(III)Ljdk/internal/net/http/hpack/IntegerWriter;
pop
14: StackMap locals:
StackMap stack:
aload 0
iload 4
putfield jdk.internal.net.http.hpack.StringWriter.huffman:Z
15: aload 0
iconst_1
putfield jdk.internal.net.http.hpack.StringWriter.state:I
16: aload 0
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 this Ljdk/internal/net/http/hpack/StringWriter;
0 17 1 input Ljava/lang/CharSequence;
0 17 2 start I
0 17 3 end I
0 17 4 huffman Z
MethodParameters:
Name Flags
input
start
end
huffman
boolean write(java.nio.ByteBuffer);
descriptor: (Ljava/nio/ByteBuffer;)Z
flags: (0x0000)
Code:
stack=6, locals=3, args_size=2
start local 0 start local 1 0: aload 0
getfield jdk.internal.net.http.hpack.StringWriter.state:I
iconst_4
if_icmpne 2
1: iconst_1
ireturn
2: StackMap locals:
StackMap stack:
aload 0
getfield jdk.internal.net.http.hpack.StringWriter.state:I
ifne 4
3: new java.lang.IllegalStateException
dup
ldc "Configure first"
invokespecial java.lang.IllegalStateException.<init>:(Ljava/lang/String;)V
athrow
4: StackMap locals:
StackMap stack:
aload 1
invokevirtual java.nio.ByteBuffer.hasRemaining:()Z
ifne 6
5: iconst_0
ireturn
6: StackMap locals:
StackMap stack:
aload 0
getfield jdk.internal.net.http.hpack.StringWriter.state:I
iconst_1
if_icmpne 11
7: aload 0
getfield jdk.internal.net.http.hpack.StringWriter.intWriter:Ljdk/internal/net/http/hpack/IntegerWriter;
aload 1
invokevirtual jdk.internal.net.http.hpack.IntegerWriter.write:(Ljava/nio/ByteBuffer;)Z
ifeq 10
8: aload 0
iconst_2
putfield jdk.internal.net.http.hpack.StringWriter.state:I
9: goto 11
10: StackMap locals:
StackMap stack:
iconst_0
ireturn
11: StackMap locals:
StackMap stack:
aload 0
getfield jdk.internal.net.http.hpack.StringWriter.state:I
iconst_2
if_icmpne 20
12: aload 0
getfield jdk.internal.net.http.hpack.StringWriter.huffman:Z
ifeq 14
13: aload 0
getfield jdk.internal.net.http.hpack.StringWriter.huffmanWriter:Ljdk/internal/net/http/hpack/Huffman$Writer;
aload 1
invokeinterface jdk.internal.net.http.hpack.Huffman$Writer.write:(Ljava/nio/ByteBuffer;)Z
goto 15
14: StackMap locals:
StackMap stack:
aload 0
getfield jdk.internal.net.http.hpack.StringWriter.plainWriter:Ljdk/internal/net/http/hpack/ISO_8859_1$Writer;
aload 1
invokevirtual jdk.internal.net.http.hpack.ISO_8859_1$Writer.write:(Ljava/nio/ByteBuffer;)Z
15: StackMap locals:
StackMap stack: int
istore 2
start local 2 16: iload 2
ifeq 19
17: aload 0
iconst_4
putfield jdk.internal.net.http.hpack.StringWriter.state:I
18: iconst_1
ireturn
19: StackMap locals: int
StackMap stack:
iconst_0
ireturn
end local 2 20: StackMap locals:
StackMap stack:
new java.lang.InternalError
dup
iconst_2
anewarray java.lang.Object
dup
iconst_0
aload 0
getfield jdk.internal.net.http.hpack.StringWriter.state:I
invokestatic java.lang.Integer.valueOf:(I)Ljava/lang/Integer;
aastore
dup
iconst_1
aload 0
getfield jdk.internal.net.http.hpack.StringWriter.huffman:Z
invokestatic java.lang.Boolean.valueOf:(Z)Ljava/lang/Boolean;
aastore
invokestatic java.util.Arrays.toString:([Ljava/lang/Object;)Ljava/lang/String;
invokespecial java.lang.InternalError.<init>:(Ljava/lang/String;)V
athrow
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 21 0 this Ljdk/internal/net/http/hpack/StringWriter;
0 21 1 output Ljava/nio/ByteBuffer;
16 20 2 written Z
MethodParameters:
Name Flags
output
void reset();
descriptor: ()V
flags: (0x0000)
Code:
stack=2, locals=1, args_size=1
start local 0 0: aload 0
getfield jdk.internal.net.http.hpack.StringWriter.intWriter:Ljdk/internal/net/http/hpack/IntegerWriter;
invokevirtual jdk.internal.net.http.hpack.IntegerWriter.reset:()Ljdk/internal/net/http/hpack/IntegerWriter;
pop
1: aload 0
getfield jdk.internal.net.http.hpack.StringWriter.huffman:Z
ifeq 4
2: aload 0
getfield jdk.internal.net.http.hpack.StringWriter.huffmanWriter:Ljdk/internal/net/http/hpack/Huffman$Writer;
invokeinterface jdk.internal.net.http.hpack.Huffman$Writer.reset:()Ljdk/internal/net/http/hpack/Huffman$Writer;
pop
3: goto 5
4: StackMap locals:
StackMap stack:
aload 0
getfield jdk.internal.net.http.hpack.StringWriter.plainWriter:Ljdk/internal/net/http/hpack/ISO_8859_1$Writer;
invokevirtual jdk.internal.net.http.hpack.ISO_8859_1$Writer.reset:()Ljdk/internal/net/http/hpack/ISO_8859_1$Writer;
pop
5: StackMap locals:
StackMap stack:
aload 0
iconst_0
putfield jdk.internal.net.http.hpack.StringWriter.state:I
6: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 7 0 this Ljdk/internal/net/http/hpack/StringWriter;
}
SourceFile: "StringWriter.java"
InnerClasses:
public abstract Writer = jdk.internal.net.http.hpack.Huffman$Writer of jdk.internal.net.http.hpack.Huffman
public final Writer = jdk.internal.net.http.hpack.ISO_8859_1$Writer of jdk.internal.net.http.hpack.ISO_8859_1
final Writer = jdk.internal.net.http.hpack.QuickHuffman$Writer of jdk.internal.net.http.hpack.QuickHuffman