public final class com.sun.media.sound.JARSoundbankReader extends javax.sound.midi.spi.SoundbankReader
minor version: 0
major version: 59
flags: flags: (0x0031) ACC_PUBLIC, ACC_FINAL, ACC_SUPER
this_class: com.sun.media.sound.JARSoundbankReader
super_class: javax.sound.midi.spi.SoundbankReader
{
public void <init>();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
invokespecial javax.sound.midi.spi.SoundbankReader.<init>:()V
return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lcom/sun/media/sound/JARSoundbankReader;
private static boolean isZIP(java.net.URL);
descriptor: (Ljava/net/URL;)Z
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=2, locals=5, args_size=1
start local 0 0: iconst_0
istore 1
start local 1 1: aload 0
invokevirtual java.net.URL.openStream:()Ljava/io/InputStream;
astore 2
start local 2 2: iconst_4
newarray 8
astore 3
start local 3 3: aload 2
aload 3
invokevirtual java.io.InputStream.read:([B)I
iconst_4
if_icmpne 4
iconst_1
goto 5
StackMap locals: int java.io.InputStream byte[]
StackMap stack:
4: iconst_0
StackMap locals:
StackMap stack: int
5: istore 1
6: iload 1
ifeq 18
7: aload 3
iconst_0
baload
bipush 80
if_icmpne 12
8: aload 3
iconst_1
baload
bipush 75
if_icmpne 12
9: aload 3
iconst_2
baload
iconst_3
if_icmpne 12
10: aload 3
iconst_3
baload
iconst_4
if_icmpne 12
11: iconst_1
goto 13
StackMap locals:
StackMap stack:
12: iconst_0
StackMap locals:
StackMap stack: int
13: istore 1
end local 3 14: goto 18
StackMap locals: java.net.URL int java.io.InputStream
StackMap stack: java.lang.Throwable
15: astore 4
16: aload 2
invokevirtual java.io.InputStream.close:()V
17: aload 4
athrow
18: StackMap locals:
StackMap stack:
aload 2
invokevirtual java.io.InputStream.close:()V
end local 2 19: goto 21
StackMap locals: java.net.URL int
StackMap stack: java.io.IOException
20: pop
21: StackMap locals:
StackMap stack:
iload 1
ireturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 22 0 url Ljava/net/URL;
1 22 1 ok Z
2 19 2 stream Ljava/io/InputStream;
3 14 3 buff [B
Exception table:
from to target type
2 15 15 any
1 19 20 Class java.io.IOException
MethodParameters:
Name Flags
url
public javax.sound.midi.Soundbank getSoundbank(java.net.URL);
descriptor: (Ljava/net/URL;)Ljavax/sound/midi/Soundbank;
flags: (0x0001) ACC_PUBLIC
Code:
stack=5, locals=10, args_size=2
start local 0 start local 1 0: aload 1
invokestatic com.sun.media.sound.JARSoundbankReader.isZIP:(Ljava/net/URL;)Z
ifne 2
1: aconst_null
areturn
2: StackMap locals:
StackMap stack:
new java.util.ArrayList
dup
invokespecial java.util.ArrayList.<init>:()V
astore 2
start local 2 3: iconst_1
anewarray java.net.URL
dup
iconst_0
aload 1
aastore
invokestatic java.net.URLClassLoader.newInstance:([Ljava/net/URL;)Ljava/net/URLClassLoader;
astore 3
start local 3 4: aload 3
5: ldc "META-INF/services/javax.sound.midi.Soundbank"
6: invokevirtual java.net.URLClassLoader.getResourceAsStream:(Ljava/lang/String;)Ljava/io/InputStream;
astore 4
start local 4 7: aload 4
ifnonnull 9
8: aconst_null
areturn
9: StackMap locals: java.util.ArrayList java.net.URLClassLoader java.io.InputStream
StackMap stack:
new java.io.BufferedReader
dup
new java.io.InputStreamReader
dup
aload 4
invokespecial java.io.InputStreamReader.<init>:(Ljava/io/InputStream;)V
invokespecial java.io.BufferedReader.<init>:(Ljava/io/Reader;)V
astore 5
start local 5 10: aload 5
invokevirtual java.io.BufferedReader.readLine:()Ljava/lang/String;
astore 6
start local 6 11: goto 21
12: StackMap locals: java.io.BufferedReader java.lang.String
StackMap stack:
aload 6
ldc "#"
invokevirtual java.lang.String.startsWith:(Ljava/lang/String;)Z
ifne 20
13: aload 6
invokevirtual java.lang.String.trim:()Ljava/lang/String;
iconst_0
aload 3
invokestatic java.lang.Class.forName:(Ljava/lang/String;ZLjava/lang/ClassLoader;)Ljava/lang/Class;
astore 7
start local 7 14: ldc Ljavax/sound/midi/Soundbank;
aload 7
invokevirtual java.lang.Class.isAssignableFrom:(Ljava/lang/Class;)Z
ifeq 20
15: aload 7
invokestatic sun.reflect.misc.ReflectUtil.checkPackageAccess:(Ljava/lang/Class;)V
16: aload 7
invokevirtual java.lang.Class.newInstance:()Ljava/lang/Object;
astore 8
start local 8 17: aload 2
aload 8
checkcast javax.sound.midi.Soundbank
invokevirtual java.util.ArrayList.add:(Ljava/lang/Object;)Z
pop
end local 8 end local 7 18: goto 20
StackMap locals:
StackMap stack: java.lang.ReflectiveOperationException
19: pop
20: StackMap locals:
StackMap stack:
aload 5
invokevirtual java.io.BufferedReader.readLine:()Ljava/lang/String;
astore 6
21: StackMap locals:
StackMap stack:
aload 6
ifnonnull 12
end local 6 end local 5 22: goto 26
23: StackMap locals: com.sun.media.sound.JARSoundbankReader java.net.URL java.util.ArrayList java.net.URLClassLoader java.io.InputStream
StackMap stack: java.lang.Throwable
astore 9
24: aload 4
invokevirtual java.io.InputStream.close:()V
25: aload 9
athrow
26: StackMap locals:
StackMap stack:
aload 4
invokevirtual java.io.InputStream.close:()V
27: aload 2
invokevirtual java.util.ArrayList.size:()I
ifne 29
28: aconst_null
areturn
29: StackMap locals:
StackMap stack:
aload 2
invokevirtual java.util.ArrayList.size:()I
iconst_1
if_icmpne 31
30: aload 2
iconst_0
invokevirtual java.util.ArrayList.get:(I)Ljava/lang/Object;
checkcast javax.sound.midi.Soundbank
areturn
31: StackMap locals:
StackMap stack:
new com.sun.media.sound.SimpleSoundbank
dup
invokespecial com.sun.media.sound.SimpleSoundbank.<init>:()V
astore 5
start local 5 32: aload 2
invokevirtual java.util.ArrayList.iterator:()Ljava/util/Iterator;
astore 7
goto 35
StackMap locals: com.sun.media.sound.JARSoundbankReader java.net.URL java.util.ArrayList java.net.URLClassLoader java.io.InputStream com.sun.media.sound.SimpleSoundbank top java.util.Iterator
StackMap stack:
33: aload 7
invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
checkcast javax.sound.midi.Soundbank
astore 6
start local 6 34: aload 5
aload 6
invokevirtual com.sun.media.sound.SimpleSoundbank.addAllInstruments:(Ljavax/sound/midi/Soundbank;)V
end local 6 35: StackMap locals:
StackMap stack:
aload 7
invokeinterface java.util.Iterator.hasNext:()Z
ifne 33
36: aload 5
areturn
end local 5 end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 37 0 this Lcom/sun/media/sound/JARSoundbankReader;
0 37 1 url Ljava/net/URL;
3 37 2 soundbanks Ljava/util/ArrayList<Ljavax/sound/midi/Soundbank;>;
4 37 3 ucl Ljava/net/URLClassLoader;
7 37 4 stream Ljava/io/InputStream;
10 22 5 r Ljava/io/BufferedReader;
11 22 6 line Ljava/lang/String;
14 18 7 c Ljava/lang/Class<*>;
17 18 8 o Ljava/lang/Object;
32 37 5 sbk Lcom/sun/media/sound/SimpleSoundbank;
34 35 6 soundbank Ljavax/sound/midi/Soundbank;
Exception table:
from to target type
13 18 19 Class java.lang.ReflectiveOperationException
9 23 23 any
Exceptions:
throws javax.sound.midi.InvalidMidiDataException, java.io.IOException
MethodParameters:
Name Flags
url
public javax.sound.midi.Soundbank getSoundbank(java.io.InputStream);
descriptor: (Ljava/io/InputStream;)Ljavax/sound/midi/Soundbank;
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=2, args_size=2
start local 0 start local 1 0: aload 1
invokestatic java.util.Objects.requireNonNull:(Ljava/lang/Object;)Ljava/lang/Object;
pop
1: aconst_null
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lcom/sun/media/sound/JARSoundbankReader;
0 2 1 stream Ljava/io/InputStream;
Exceptions:
throws javax.sound.midi.InvalidMidiDataException, java.io.IOException
MethodParameters:
Name Flags
stream
public javax.sound.midi.Soundbank getSoundbank(java.io.File);
descriptor: (Ljava/io/File;)Ljavax/sound/midi/Soundbank;
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 0
aload 1
invokevirtual java.io.File.toURI:()Ljava/net/URI;
invokevirtual java.net.URI.toURL:()Ljava/net/URL;
invokevirtual com.sun.media.sound.JARSoundbankReader.getSoundbank:(Ljava/net/URL;)Ljavax/sound/midi/Soundbank;
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lcom/sun/media/sound/JARSoundbankReader;
0 1 1 file Ljava/io/File;
Exceptions:
throws javax.sound.midi.InvalidMidiDataException, java.io.IOException
MethodParameters:
Name Flags
file
}
SourceFile: "JARSoundbankReader.java"