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 // org.jboss.resteasy.util.ReadFromStream this
         0: .line 11
            aload 0 /* this */
            invokespecial java.lang.Object.<init>:()V
            return
        end local 0 // org.jboss.resteasy.util.ReadFromStream this
      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 // int bufferSize
        start local 1 // java.io.InputStream entityStream
         0: .line 24
            new java.io.ByteArrayOutputStream
            dup
            invokespecial java.io.ByteArrayOutputStream.<init>:()V
            astore 2 /* baos */
        start local 2 // java.io.ByteArrayOutputStream baos
         1: .line 26
            iload 0 /* bufferSize */
            newarray 8
            astore 3 /* buffer */
        start local 3 // byte[] buffer
         2: .line 27
            iconst_0
            istore 4 /* wasRead */
        start local 4 // int wasRead
         3: .line 30
      StackMap locals: java.io.ByteArrayOutputStream byte[] int
      StackMap stack:
            aload 1 /* entityStream */
            aload 3 /* buffer */
            invokevirtual java.io.InputStream.read:([B)I
            istore 4 /* wasRead */
         4: .line 31
            iload 4 /* wasRead */
            ifle 6
         5: .line 33
            aload 2 /* baos */
            aload 3 /* buffer */
            iconst_0
            iload 4 /* wasRead */
            invokevirtual java.io.ByteArrayOutputStream.write:([BII)V
         6: .line 35
      StackMap locals:
      StackMap stack:
            iload 4 /* wasRead */
            iconst_m1
         7: .line 28
            if_icmpgt 3
         8: .line 36
            aload 2 /* baos */
            invokevirtual java.io.ByteArrayOutputStream.toByteArray:()[B
            areturn
        end local 4 // int wasRead
        end local 3 // byte[] buffer
        end local 2 // java.io.ByteArrayOutputStream baos
        end local 1 // java.io.InputStream entityStream
        end local 0 // int bufferSize
      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"