final class jdk.incubator.http.internal.hpack.StringWriter
minor version: 0
major version: 59
flags: flags: (0x0030) ACC_FINAL, ACC_SUPER
this_class: jdk.incubator.http.internal.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.incubator.http.internal.hpack.IntegerWriter intWriter;
descriptor: Ljdk/incubator/http/internal/hpack/IntegerWriter;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private final jdk.incubator.http.internal.hpack.Huffman$Writer huffmanWriter;
descriptor: Ljdk/incubator/http/internal/hpack/Huffman$Writer;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private final jdk.incubator.http.internal.hpack.ISO_8859_1$Writer plainWriter;
descriptor: Ljdk/incubator/http/internal/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.incubator.http.internal.hpack.IntegerWriter
dup
invokespecial jdk.incubator.http.internal.hpack.IntegerWriter.<init>:()V
putfield jdk.incubator.http.internal.hpack.StringWriter.intWriter:Ljdk/incubator/http/internal/hpack/IntegerWriter;
2: aload 0
new jdk.incubator.http.internal.hpack.Huffman$Writer
dup
invokespecial jdk.incubator.http.internal.hpack.Huffman$Writer.<init>:()V
putfield jdk.incubator.http.internal.hpack.StringWriter.huffmanWriter:Ljdk/incubator/http/internal/hpack/Huffman$Writer;
3: aload 0
new jdk.incubator.http.internal.hpack.ISO_8859_1$Writer
dup
invokespecial jdk.incubator.http.internal.hpack.ISO_8859_1$Writer.<init>:()V
putfield jdk.incubator.http.internal.hpack.StringWriter.plainWriter:Ljdk/incubator/http/internal/hpack/ISO_8859_1$Writer;
4: aload 0
iconst_0
putfield jdk.incubator.http.internal.hpack.StringWriter.state:I
5: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 6 0 this Ljdk/incubator/http/internal/hpack/StringWriter;
jdk.incubator.http.internal.hpack.StringWriter configure(java.lang.CharSequence, boolean);
descriptor: (Ljava/lang/CharSequence;Z)Ljdk/incubator/http/internal/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.incubator.http.internal.hpack.StringWriter.configure:(Ljava/lang/CharSequence;IIZ)Ljdk/incubator/http/internal/hpack/StringWriter;
areturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Ljdk/incubator/http/internal/hpack/StringWriter;
0 1 1 input Ljava/lang/CharSequence;
0 1 2 huffman Z
MethodParameters:
Name Flags
input
huffman
jdk.incubator.http.internal.hpack.StringWriter configure(java.lang.CharSequence, int, int, boolean);
descriptor: (Ljava/lang/CharSequence;IIZ)Ljdk/incubator/http/internal/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.incubator.http.internal.hpack.StringWriter.plainWriter:Ljdk/incubator/http/internal/hpack/ISO_8859_1$Writer;
aload 1
iload 2
iload 3
invokevirtual jdk.incubator.http.internal.hpack.ISO_8859_1$Writer.configure:(Ljava/lang/CharSequence;II)Ljdk/incubator/http/internal/hpack/ISO_8859_1$Writer;
pop
8: aload 0
getfield jdk.incubator.http.internal.hpack.StringWriter.intWriter:Ljdk/incubator/http/internal/hpack/IntegerWriter;
iload 3
iload 2
isub
bipush 7
iconst_0
invokevirtual jdk.incubator.http.internal.hpack.IntegerWriter.configure:(III)Ljdk/incubator/http/internal/hpack/IntegerWriter;
pop
9: goto 14
10: StackMap locals:
StackMap stack:
aload 0
getfield jdk.incubator.http.internal.hpack.StringWriter.huffmanWriter:Ljdk/incubator/http/internal/hpack/Huffman$Writer;
aload 1
iload 2
iload 3
invokevirtual jdk.incubator.http.internal.hpack.Huffman$Writer.from:(Ljava/lang/CharSequence;II)Ljdk/incubator/http/internal/hpack/Huffman$Writer;
pop
11: aload 0
getfield jdk.incubator.http.internal.hpack.StringWriter.intWriter:Ljdk/incubator/http/internal/hpack/IntegerWriter;
getstatic jdk.incubator.http.internal.hpack.Huffman.INSTANCE:Ljdk/incubator/http/internal/hpack/Huffman;
aload 1
iload 2
iload 3
invokevirtual jdk.incubator.http.internal.hpack.Huffman.lengthOf:(Ljava/lang/CharSequence;II)I
12: bipush 7
sipush 128
13: invokevirtual jdk.incubator.http.internal.hpack.IntegerWriter.configure:(III)Ljdk/incubator/http/internal/hpack/IntegerWriter;
pop
14: StackMap locals:
StackMap stack:
aload 0
iload 4
putfield jdk.incubator.http.internal.hpack.StringWriter.huffman:Z
15: aload 0
iconst_1
putfield jdk.incubator.http.internal.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/incubator/http/internal/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.incubator.http.internal.hpack.StringWriter.state:I
iconst_4
if_icmpne 2
1: iconst_1
ireturn
2: StackMap locals:
StackMap stack:
aload 0
getfield jdk.incubator.http.internal.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.incubator.http.internal.hpack.StringWriter.state:I
iconst_1
if_icmpne 11
7: aload 0
getfield jdk.incubator.http.internal.hpack.StringWriter.intWriter:Ljdk/incubator/http/internal/hpack/IntegerWriter;
aload 1
invokevirtual jdk.incubator.http.internal.hpack.IntegerWriter.write:(Ljava/nio/ByteBuffer;)Z
ifeq 10
8: aload 0
iconst_2
putfield jdk.incubator.http.internal.hpack.StringWriter.state:I
9: goto 11
10: StackMap locals:
StackMap stack:
iconst_0
ireturn
11: StackMap locals:
StackMap stack:
aload 0
getfield jdk.incubator.http.internal.hpack.StringWriter.state:I
iconst_2
if_icmpne 20
12: aload 0
getfield jdk.incubator.http.internal.hpack.StringWriter.huffman:Z
ifeq 14
13: aload 0
getfield jdk.incubator.http.internal.hpack.StringWriter.huffmanWriter:Ljdk/incubator/http/internal/hpack/Huffman$Writer;
aload 1
invokevirtual jdk.incubator.http.internal.hpack.Huffman$Writer.write:(Ljava/nio/ByteBuffer;)Z
goto 15
14: StackMap locals:
StackMap stack:
aload 0
getfield jdk.incubator.http.internal.hpack.StringWriter.plainWriter:Ljdk/incubator/http/internal/hpack/ISO_8859_1$Writer;
aload 1
invokevirtual jdk.incubator.http.internal.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.incubator.http.internal.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.incubator.http.internal.hpack.StringWriter.state:I
invokestatic java.lang.Integer.valueOf:(I)Ljava/lang/Integer;
aastore
dup
iconst_1
aload 0
getfield jdk.incubator.http.internal.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/incubator/http/internal/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.incubator.http.internal.hpack.StringWriter.intWriter:Ljdk/incubator/http/internal/hpack/IntegerWriter;
invokevirtual jdk.incubator.http.internal.hpack.IntegerWriter.reset:()Ljdk/incubator/http/internal/hpack/IntegerWriter;
pop
1: aload 0
getfield jdk.incubator.http.internal.hpack.StringWriter.huffman:Z
ifeq 4
2: aload 0
getfield jdk.incubator.http.internal.hpack.StringWriter.huffmanWriter:Ljdk/incubator/http/internal/hpack/Huffman$Writer;
invokevirtual jdk.incubator.http.internal.hpack.Huffman$Writer.reset:()Ljdk/incubator/http/internal/hpack/Huffman$Writer;
pop
3: goto 5
4: StackMap locals:
StackMap stack:
aload 0
getfield jdk.incubator.http.internal.hpack.StringWriter.plainWriter:Ljdk/incubator/http/internal/hpack/ISO_8859_1$Writer;
invokevirtual jdk.incubator.http.internal.hpack.ISO_8859_1$Writer.reset:()Ljdk/incubator/http/internal/hpack/ISO_8859_1$Writer;
pop
5: StackMap locals:
StackMap stack:
aload 0
iconst_0
putfield jdk.incubator.http.internal.hpack.StringWriter.state:I
6: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 7 0 this Ljdk/incubator/http/internal/hpack/StringWriter;
}
SourceFile: "StringWriter.java"
InnerClasses:
final Writer = jdk.incubator.http.internal.hpack.Huffman$Writer of jdk.incubator.http.internal.hpack.Huffman
public final Writer = jdk.incubator.http.internal.hpack.ISO_8859_1$Writer of jdk.incubator.http.internal.hpack.ISO_8859_1