public final class io.dropwizard.util.Resources
minor version: 0
major version: 59
flags: flags: (0x0031) ACC_PUBLIC, ACC_FINAL, ACC_SUPER
this_class: io.dropwizard.util.Resources
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/Resources;
public static java.net.URL getResource(java.lang.String);
descriptor: (Ljava/lang/String;)Ljava/net/URL;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=5, locals=4, args_size=1
start local 0 0: invokestatic java.lang.Thread.currentThread:()Ljava/lang/Thread;
invokevirtual java.lang.Thread.getContextClassLoader:()Ljava/lang/ClassLoader;
astore 1
start local 1 1: aload 1
ifnonnull 2
ldc Lio/dropwizard/util/Resources;
invokevirtual java.lang.Class.getClassLoader:()Ljava/lang/ClassLoader;
goto 3
StackMap locals: java.lang.ClassLoader
StackMap stack:
2: aload 1
StackMap locals:
StackMap stack: java.lang.ClassLoader
3: astore 2
start local 2 4: aload 2
aload 0
invokevirtual java.lang.ClassLoader.getResource:(Ljava/lang/String;)Ljava/net/URL;
astore 3
start local 3 5: aload 3
ifnonnull 7
6: new java.lang.IllegalArgumentException
dup
new java.lang.StringBuilder
dup
ldc "resource "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 0
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
ldc " not found."
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokespecial java.lang.IllegalArgumentException.<init>:(Ljava/lang/String;)V
athrow
7: StackMap locals: java.lang.ClassLoader java.net.URL
StackMap stack:
aload 3
areturn
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 8 0 resourceName Ljava/lang/String;
1 8 1 contextClassLoader Ljava/lang/ClassLoader;
4 8 2 loader Ljava/lang/ClassLoader;
5 8 3 url Ljava/net/URL;
MethodParameters:
Name Flags
resourceName
public static byte[] toByteArray(java.net.URL);
descriptor: (Ljava/net/URL;)[B
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=2, locals=4, args_size=1
start local 0 0: aconst_null
astore 1
aconst_null
astore 2
1: aload 0
invokevirtual java.net.URL.openStream:()Ljava/io/InputStream;
astore 3
start local 3 2: aload 3
invokestatic io.dropwizard.util.ByteStreams.toByteArray:(Ljava/io/InputStream;)[B
3: aload 3
ifnull 4
aload 3
invokevirtual java.io.InputStream.close:()V
4: StackMap locals: java.net.URL java.lang.Throwable java.lang.Throwable java.io.InputStream
StackMap stack: byte[]
areturn
StackMap locals:
StackMap stack: java.lang.Throwable
5: astore 1
6: aload 3
ifnull 7
aload 3
invokevirtual java.io.InputStream.close:()V
end local 3 StackMap locals:
StackMap stack:
7: aload 1
athrow
StackMap locals:
StackMap stack: java.lang.Throwable
8: astore 2
aload 1
ifnonnull 9
aload 2
astore 1
goto 10
StackMap locals:
StackMap stack:
9: aload 1
aload 2
if_acmpeq 10
aload 1
aload 2
invokevirtual java.lang.Throwable.addSuppressed:(Ljava/lang/Throwable;)V
StackMap locals:
StackMap stack:
10: aload 1
athrow
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 11 0 url Ljava/net/URL;
2 7 3 inputStream Ljava/io/InputStream;
Exception table:
from to target type
2 3 5 any
1 4 8 any
5 8 8 any
Exceptions:
throws java.io.IOException
MethodParameters:
Name Flags
url
public static java.lang.String toString(java.net.URL, java.nio.charset.Charset);
descriptor: (Ljava/net/URL;Ljava/nio/charset/Charset;)Ljava/lang/String;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=4, locals=5, args_size=2
start local 0 start local 1 0: aconst_null
astore 2
aconst_null
astore 3
1: aload 0
invokevirtual java.net.URL.openStream:()Ljava/io/InputStream;
astore 4
start local 4 2: new java.io.InputStreamReader
dup
aload 4
aload 1
invokespecial java.io.InputStreamReader.<init>:(Ljava/io/InputStream;Ljava/nio/charset/Charset;)V
invokestatic io.dropwizard.util.CharStreams.toString:(Ljava/io/Reader;)Ljava/lang/String;
3: aload 4
ifnull 4
aload 4
invokevirtual java.io.InputStream.close:()V
4: StackMap locals: java.net.URL java.nio.charset.Charset java.lang.Throwable java.lang.Throwable java.io.InputStream
StackMap stack: java.lang.String
areturn
StackMap locals:
StackMap stack: java.lang.Throwable
5: astore 2
6: aload 4
ifnull 7
aload 4
invokevirtual java.io.InputStream.close:()V
end local 4 StackMap locals:
StackMap stack:
7: aload 2
athrow
StackMap locals:
StackMap stack: java.lang.Throwable
8: astore 3
aload 2
ifnonnull 9
aload 3
astore 2
goto 10
StackMap locals:
StackMap stack:
9: aload 2
aload 3
if_acmpeq 10
aload 2
aload 3
invokevirtual java.lang.Throwable.addSuppressed:(Ljava/lang/Throwable;)V
StackMap locals:
StackMap stack:
10: aload 2
athrow
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 11 0 url Ljava/net/URL;
0 11 1 charset Ljava/nio/charset/Charset;
2 7 4 inputStream Ljava/io/InputStream;
Exception table:
from to target type
2 3 5 any
1 4 8 any
5 8 8 any
Exceptions:
throws java.io.IOException
MethodParameters:
Name Flags
url
charset
public static void copy(java.net.URL, java.io.OutputStream);
descriptor: (Ljava/net/URL;Ljava/io/OutputStream;)V
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=2, locals=5, args_size=2
start local 0 start local 1 0: aconst_null
astore 2
aconst_null
astore 3
1: aload 0
invokevirtual java.net.URL.openStream:()Ljava/io/InputStream;
astore 4
start local 4 2: aload 4
aload 1
invokestatic io.dropwizard.util.ByteStreams.copy:(Ljava/io/InputStream;Ljava/io/OutputStream;)V
3: aload 4
ifnull 9
aload 4
invokevirtual java.io.InputStream.close:()V
goto 9
StackMap locals: java.net.URL java.io.OutputStream java.lang.Throwable java.lang.Throwable java.io.InputStream
StackMap stack: java.lang.Throwable
4: astore 2
aload 4
ifnull 5
aload 4
invokevirtual java.io.InputStream.close:()V
end local 4 StackMap locals:
StackMap stack:
5: aload 2
athrow
StackMap locals:
StackMap stack: java.lang.Throwable
6: astore 3
aload 2
ifnonnull 7
aload 3
astore 2
goto 8
StackMap locals:
StackMap stack:
7: aload 2
aload 3
if_acmpeq 8
aload 2
aload 3
invokevirtual java.lang.Throwable.addSuppressed:(Ljava/lang/Throwable;)V
StackMap locals:
StackMap stack:
8: aload 2
athrow
9: StackMap locals:
StackMap stack:
return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 10 0 from Ljava/net/URL;
0 10 1 to Ljava/io/OutputStream;
2 5 4 inputStream Ljava/io/InputStream;
Exception table:
from to target type
2 3 4 any
1 6 6 any
Exceptions:
throws java.io.IOException
MethodParameters:
Name Flags
from
to
}
SourceFile: "Resources.java"