public final class io.dropwizard.util.ByteStreams
  minor version: 0
  major version: 59
  flags: flags: (0x0031) ACC_PUBLIC, ACC_FINAL, ACC_SUPER
  this_class: io.dropwizard.util.ByteStreams
  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 // io.dropwizard.util.ByteStreams this
         0: .line 13
            aload 0 /* this */
            invokespecial java.lang.Object.<init>:()V
         1: .line 14
            return
        end local 0 // io.dropwizard.util.ByteStreams this
      LocalVariableTable:
        Start  End  Slot  Name  Signature
            0    2     0  this  Lio/dropwizard/util/ByteStreams;

  public static byte[] toByteArray(java.io.InputStream);
    descriptor: (Ljava/io/InputStream;)[B
    flags: (0x0009) ACC_PUBLIC, ACC_STATIC
    Code:
      stack=2, locals=2, args_size=1
        start local 0 // java.io.InputStream in
         0: .line 17
            new java.io.ByteArrayOutputStream
            dup
            invokespecial java.io.ByteArrayOutputStream.<init>:()V
            astore 1 /* to */
        start local 1 // java.io.ByteArrayOutputStream to
         1: .line 18
            aload 0 /* in */
            aload 1 /* to */
            invokestatic io.dropwizard.util.ByteStreams.copy:(Ljava/io/InputStream;Ljava/io/OutputStream;)V
         2: .line 19
            aload 1 /* to */
            invokevirtual java.io.ByteArrayOutputStream.toByteArray:()[B
            areturn
        end local 1 // java.io.ByteArrayOutputStream to
        end local 0 // java.io.InputStream in
      LocalVariableTable:
        Start  End  Slot  Name  Signature
            0    3     0    in  Ljava/io/InputStream;
            1    3     1    to  Ljava/io/ByteArrayOutputStream;
    Exceptions:
      throws java.io.IOException
    MethodParameters:
      Name  Flags
      in    

  public static void copy(java.io.InputStream, java.io.OutputStream);
    descriptor: (Ljava/io/InputStream;Ljava/io/OutputStream;)V
    flags: (0x0009) ACC_PUBLIC, ACC_STATIC
    Code:
      stack=4, locals=4, args_size=2
        start local 0 // java.io.InputStream in
        start local 1 // java.io.OutputStream to
         0: .line 23
            sipush 4096
            newarray 8
            astore 2 /* buffer */
        start local 2 // byte[] buffer
         1: .line 25
            goto 3
        start local 3 // int length
         2: .line 26
      StackMap locals: byte[] int
      StackMap stack:
            aload 1 /* to */
            aload 2 /* buffer */
            iconst_0
            iload 3 /* length */
            invokevirtual java.io.OutputStream.write:([BII)V
        end local 3 // int length
         3: .line 25
      StackMap locals:
      StackMap stack:
            aload 0 /* in */
            aload 2 /* buffer */
            invokevirtual java.io.InputStream.read:([B)I
            dup
            istore 3 /* length */
        start local 3 // int length
         4: iconst_m1
            if_icmpne 2
         5: .line 28
            return
        end local 3 // int length
        end local 2 // byte[] buffer
        end local 1 // java.io.OutputStream to
        end local 0 // java.io.InputStream in
      LocalVariableTable:
        Start  End  Slot    Name  Signature
            0    6     0      in  Ljava/io/InputStream;
            0    6     1      to  Ljava/io/OutputStream;
            1    6     2  buffer  [B
            2    3     3  length  I
            4    6     3  length  I
    Exceptions:
      throws java.io.IOException
    MethodParameters:
      Name  Flags
      in    
      to    
}
SourceFile: "ByteStreams.java"