public final class com.google.common.io.Resources
minor version: 0
major version: 59
flags: flags: (0x0031) ACC_PUBLIC, ACC_FINAL, ACC_SUPER
this_class: com.google.common.io.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
return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lcom/google/common/io/Resources;
public static com.google.common.io.ByteSource asByteSource(java.net.URL);
descriptor: (Ljava/net/URL;)Lcom/google/common/io/ByteSource;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=3, locals=1, args_size=1
start local 0 0: new com.google.common.io.Resources$UrlByteSource
dup
aload 0
invokespecial com.google.common.io.Resources$UrlByteSource.<init>:(Ljava/net/URL;)V
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 url Ljava/net/URL;
MethodParameters:
Name Flags
url
public static com.google.common.io.CharSource asCharSource(java.net.URL, java.nio.charset.Charset);
descriptor: (Ljava/net/URL;Ljava/nio/charset/Charset;)Lcom/google/common/io/CharSource;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 0
invokestatic com.google.common.io.Resources.asByteSource:(Ljava/net/URL;)Lcom/google/common/io/ByteSource;
aload 1
invokevirtual com.google.common.io.ByteSource.asCharSource:(Ljava/nio/charset/Charset;)Lcom/google/common/io/CharSource;
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 url Ljava/net/URL;
0 1 1 charset Ljava/nio/charset/Charset;
MethodParameters:
Name Flags
url
charset
public static byte[] toByteArray(java.net.URL);
descriptor: (Ljava/net/URL;)[B
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
invokestatic com.google.common.io.Resources.asByteSource:(Ljava/net/URL;)Lcom/google/common/io/ByteSource;
invokevirtual com.google.common.io.ByteSource.read:()[B
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 url Ljava/net/URL;
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=2, locals=2, args_size=2
start local 0 start local 1 0: aload 0
aload 1
invokestatic com.google.common.io.Resources.asCharSource:(Ljava/net/URL;Ljava/nio/charset/Charset;)Lcom/google/common/io/CharSource;
invokevirtual com.google.common.io.CharSource.read:()Ljava/lang/String;
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 url Ljava/net/URL;
0 1 1 charset Ljava/nio/charset/Charset;
Exceptions:
throws java.io.IOException
MethodParameters:
Name Flags
url
charset
public static <T> T readLines(java.net.URL, java.nio.charset.Charset, com.google.common.io.LineProcessor<T>);
descriptor: (Ljava/net/URL;Ljava/nio/charset/Charset;Lcom/google/common/io/LineProcessor;)Ljava/lang/Object;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=2, locals=3, args_size=3
start local 0 start local 1 start local 2 0: aload 0
aload 1
invokestatic com.google.common.io.Resources.asCharSource:(Ljava/net/URL;Ljava/nio/charset/Charset;)Lcom/google/common/io/CharSource;
aload 2
invokevirtual com.google.common.io.CharSource.readLines:(Lcom/google/common/io/LineProcessor;)Ljava/lang/Object;
areturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 url Ljava/net/URL;
0 1 1 charset Ljava/nio/charset/Charset;
0 1 2 callback Lcom/google/common/io/LineProcessor<TT;>;
Exceptions:
throws java.io.IOException
Signature: <T:Ljava/lang/Object;>(Ljava/net/URL;Ljava/nio/charset/Charset;Lcom/google/common/io/LineProcessor<TT;>;)TT;
RuntimeInvisibleAnnotations:
com.google.errorprone.annotations.CanIgnoreReturnValue()
MethodParameters:
Name Flags
url
charset
callback
public static java.util.List<java.lang.String> readLines(java.net.URL, java.nio.charset.Charset);
descriptor: (Ljava/net/URL;Ljava/nio/charset/Charset;)Ljava/util/List;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=4, locals=2, args_size=2
start local 0 start local 1 0: aload 0
1: aload 1
2: new com.google.common.io.Resources$1
dup
invokespecial com.google.common.io.Resources$1.<init>:()V
3: invokestatic com.google.common.io.Resources.readLines:(Ljava/net/URL;Ljava/nio/charset/Charset;Lcom/google/common/io/LineProcessor;)Ljava/lang/Object;
checkcast java.util.List
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 url Ljava/net/URL;
0 4 1 charset Ljava/nio/charset/Charset;
Exceptions:
throws java.io.IOException
Signature: (Ljava/net/URL;Ljava/nio/charset/Charset;)Ljava/util/List<Ljava/lang/String;>;
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=2, args_size=2
start local 0 start local 1 0: aload 0
invokestatic com.google.common.io.Resources.asByteSource:(Ljava/net/URL;)Lcom/google/common/io/ByteSource;
aload 1
invokevirtual com.google.common.io.ByteSource.copyTo:(Ljava/io/OutputStream;)J
pop2
1: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 from Ljava/net/URL;
0 2 1 to Ljava/io/OutputStream;
Exceptions:
throws java.io.IOException
MethodParameters:
Name Flags
from
to
public static java.net.URL getResource(java.lang.String);
descriptor: (Ljava/lang/String;)Ljava/net/URL;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=3, locals=3, args_size=1
start local 0 0: invokestatic java.lang.Thread.currentThread:()Ljava/lang/Thread;
invokevirtual java.lang.Thread.getContextClassLoader:()Ljava/lang/ClassLoader;
ldc Lcom/google/common/io/Resources;
invokevirtual java.lang.Class.getClassLoader:()Ljava/lang/ClassLoader;
1: invokestatic com.google.common.base.MoreObjects.firstNonNull:(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
checkcast java.lang.ClassLoader
2: astore 1
start local 1 3: aload 1
aload 0
invokevirtual java.lang.ClassLoader.getResource:(Ljava/lang/String;)Ljava/net/URL;
astore 2
start local 2 4: aload 2
ifnull 5
iconst_1
goto 6
StackMap locals: java.lang.ClassLoader java.net.URL
StackMap stack:
5: iconst_0
StackMap locals:
StackMap stack: int
6: ldc "resource %s not found."
aload 0
invokestatic com.google.common.base.Preconditions.checkArgument:(ZLjava/lang/String;Ljava/lang/Object;)V
7: aload 2
areturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 8 0 resourceName Ljava/lang/String;
3 8 1 loader Ljava/lang/ClassLoader;
4 8 2 url Ljava/net/URL;
RuntimeInvisibleAnnotations:
com.google.errorprone.annotations.CanIgnoreReturnValue()
MethodParameters:
Name Flags
resourceName
public static java.net.URL getResource(java.lang.Class<?>, java.lang.String);
descriptor: (Ljava/lang/Class;Ljava/lang/String;)Ljava/net/URL;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=4, locals=3, args_size=2
start local 0 start local 1 0: aload 0
aload 1
invokevirtual java.lang.Class.getResource:(Ljava/lang/String;)Ljava/net/URL;
astore 2
start local 2 1: aload 2
ifnull 2
iconst_1
goto 3
StackMap locals: java.net.URL
StackMap stack:
2: iconst_0
StackMap locals:
StackMap stack: int
3: ldc "resource %s relative to %s not found."
aload 1
aload 0
invokevirtual java.lang.Class.getName:()Ljava/lang/String;
4: invokestatic com.google.common.base.Preconditions.checkArgument:(ZLjava/lang/String;Ljava/lang/Object;Ljava/lang/Object;)V
5: aload 2
areturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 6 0 contextClass Ljava/lang/Class<*>;
0 6 1 resourceName Ljava/lang/String;
1 6 2 url Ljava/net/URL;
Signature: (Ljava/lang/Class<*>;Ljava/lang/String;)Ljava/net/URL;
MethodParameters:
Name Flags
contextClass
resourceName
}
SourceFile: "Resources.java"
NestMembers:
com.google.common.io.Resources$1 com.google.common.io.Resources$UrlByteSource
InnerClasses:
com.google.common.io.Resources$1
private final UrlByteSource = com.google.common.io.Resources$UrlByteSource of com.google.common.io.Resources
RuntimeInvisibleAnnotations:
com.google.common.annotations.Beta()
com.google.common.annotations.GwtIncompatible()