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 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/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 0: new java.io.ByteArrayOutputStream
dup
invokespecial java.io.ByteArrayOutputStream.<init>:()V
astore 1
start local 1 1: aload 0
aload 1
invokestatic io.dropwizard.util.ByteStreams.copy:(Ljava/io/InputStream;Ljava/io/OutputStream;)V
2: aload 1
invokevirtual java.io.ByteArrayOutputStream.toByteArray:()[B
areturn
end local 1 end local 0 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 start local 1 0: sipush 4096
newarray 8
astore 2
start local 2 1: goto 3
start local 3 2: StackMap locals: byte[] int
StackMap stack:
aload 1
aload 2
iconst_0
iload 3
invokevirtual java.io.OutputStream.write:([BII)V
end local 3 3: StackMap locals:
StackMap stack:
aload 0
aload 2
invokevirtual java.io.InputStream.read:([B)I
dup
istore 3
start local 3 4: iconst_m1
if_icmpne 2
5: return
end local 3 end local 2 end local 1 end local 0 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"