public class org.jboss.resteasy.util.ReadFromStream
minor version: 0
major version: 59
flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
this_class: org.jboss.resteasy.util.ReadFromStream
super_class: java.lang.Object
{
public void <init>();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
invokespecial java.lang.Object.<init>:()V
return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/jboss/resteasy/util/ReadFromStream;
public static byte[] readFromStream(int, java.io.InputStream);
descriptor: (ILjava/io/InputStream;)[B
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=4, locals=5, args_size=2
start local 0 start local 1 0: new java.io.ByteArrayOutputStream
dup
invokespecial java.io.ByteArrayOutputStream.<init>:()V
astore 2
start local 2 1: iload 0
newarray 8
astore 3
start local 3 2: iconst_0
istore 4
start local 4 3: StackMap locals: java.io.ByteArrayOutputStream byte[] int
StackMap stack:
aload 1
aload 3
invokevirtual java.io.InputStream.read:([B)I
istore 4
4: iload 4
ifle 6
5: aload 2
aload 3
iconst_0
iload 4
invokevirtual java.io.ByteArrayOutputStream.write:([BII)V
6: StackMap locals:
StackMap stack:
iload 4
iconst_m1
7: if_icmpgt 3
8: aload 2
invokevirtual java.io.ByteArrayOutputStream.toByteArray:()[B
areturn
end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 9 0 bufferSize I
0 9 1 entityStream Ljava/io/InputStream;
1 9 2 baos Ljava/io/ByteArrayOutputStream;
2 9 3 buffer [B
3 9 4 wasRead I
Exceptions:
throws java.io.IOException
MethodParameters:
Name Flags
bufferSize
entityStream
}
SourceFile: "ReadFromStream.java"