public final class io.dropwizard.util.CharStreams
minor version: 0
major version: 59
flags: flags: (0x0031) ACC_PUBLIC, ACC_FINAL, ACC_SUPER
this_class: io.dropwizard.util.CharStreams
super_class: java.lang.Object
{
private void <init>();
descriptor: ()V
flags: (0x0002) ACC_PRIVATE
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
invokespecial java.lang.Object.<init>:()V
1: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lio/dropwizard/util/CharStreams;
public static java.lang.String toString(java.io.Reader);
descriptor: (Ljava/io/Reader;)Ljava/lang/String;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=4, locals=4, args_size=1
start local 0 0: new java.lang.StringBuilder
dup
invokespecial java.lang.StringBuilder.<init>:()V
astore 1
start local 1 1: sipush 4096
newarray 5
astore 2
start local 2 2: goto 4
start local 3 3: StackMap locals: java.lang.StringBuilder char[] int
StackMap stack:
aload 1
aload 2
iconst_0
iload 3
invokevirtual java.lang.StringBuilder.append:([CII)Ljava/lang/StringBuilder;
pop
end local 3 4: StackMap locals:
StackMap stack:
aload 0
aload 2
invokevirtual java.io.Reader.read:([C)I
dup
istore 3
start local 3 5: iconst_m1
if_icmpne 3
6: aload 1
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
areturn
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 7 0 reader Ljava/io/Reader;
1 7 1 builder Ljava/lang/StringBuilder;
2 7 2 buffer [C
3 4 3 length I
5 7 3 length I
Exceptions:
throws java.io.IOException
MethodParameters:
Name Flags
reader
}
SourceFile: "CharStreams.java"