public class javax.sound.midi.MidiSystem
minor version: 0
major version: 59
flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
this_class: javax.sound.midi.MidiSystem
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 Ljavax/sound/midi/MidiSystem;
public static javax.sound.midi.MidiDevice$Info[] getMidiDeviceInfo();
descriptor: ()[Ljavax/sound/midi/MidiDevice$Info;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=2, locals=3, args_size=0
0: new java.util.ArrayList
dup
invokespecial java.util.ArrayList.<init>:()V
astore 0
start local 0 1: invokestatic javax.sound.midi.MidiSystem.getMidiDeviceProviders:()Ljava/util/List;
invokeinterface java.util.List.iterator:()Ljava/util/Iterator;
astore 2
goto 4
StackMap locals: java.util.List top java.util.Iterator
StackMap stack:
2: aload 2
invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
checkcast javax.sound.midi.spi.MidiDeviceProvider
astore 1
start local 1 3: aload 0
aload 1
invokevirtual javax.sound.midi.spi.MidiDeviceProvider.getDeviceInfo:()[Ljavax/sound/midi/MidiDevice$Info;
invokestatic java.util.Collections.addAll:(Ljava/util/Collection;[Ljava/lang/Object;)Z
pop
end local 1 4: StackMap locals:
StackMap stack:
aload 2
invokeinterface java.util.Iterator.hasNext:()Z
ifne 2
5: aload 0
aload 0
invokeinterface java.util.List.size:()I
anewarray javax.sound.midi.MidiDevice$Info
invokeinterface java.util.List.toArray:([Ljava/lang/Object;)[Ljava/lang/Object;
checkcast javax.sound.midi.MidiDevice$Info[]
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
1 6 0 allInfos Ljava/util/List<Ljavax/sound/midi/MidiDevice$Info;>;
3 4 1 provider Ljavax/sound/midi/spi/MidiDeviceProvider;
public static javax.sound.midi.MidiDevice getMidiDevice(javax.sound.midi.MidiDevice$Info);
descriptor: (Ljavax/sound/midi/MidiDevice$Info;)Ljavax/sound/midi/MidiDevice;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=7, locals=3, args_size=1
start local 0 0: aload 0
invokestatic java.util.Objects.requireNonNull:(Ljava/lang/Object;)Ljava/lang/Object;
pop
1: invokestatic javax.sound.midi.MidiSystem.getMidiDeviceProviders:()Ljava/util/List;
invokeinterface java.util.List.iterator:()Ljava/util/Iterator;
astore 2
goto 5
StackMap locals: javax.sound.midi.MidiDevice$Info top java.util.Iterator
StackMap stack:
2: aload 2
invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
checkcast javax.sound.midi.spi.MidiDeviceProvider
astore 1
start local 1 3: aload 1
aload 0
invokevirtual javax.sound.midi.spi.MidiDeviceProvider.isDeviceSupported:(Ljavax/sound/midi/MidiDevice$Info;)Z
ifeq 5
4: aload 1
aload 0
invokevirtual javax.sound.midi.spi.MidiDeviceProvider.getDevice:(Ljavax/sound/midi/MidiDevice$Info;)Ljavax/sound/midi/MidiDevice;
areturn
end local 1 5: StackMap locals:
StackMap stack:
aload 2
invokeinterface java.util.Iterator.hasNext:()Z
ifne 2
6: new java.lang.IllegalArgumentException
dup
7: ldc "Requested device not installed: %s"
iconst_1
anewarray java.lang.Object
dup
iconst_0
aload 0
aastore
8: invokestatic java.lang.String.format:(Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;
invokespecial java.lang.IllegalArgumentException.<init>:(Ljava/lang/String;)V
athrow
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 9 0 info Ljavax/sound/midi/MidiDevice$Info;
3 5 1 provider Ljavax/sound/midi/spi/MidiDeviceProvider;
Exceptions:
throws javax.sound.midi.MidiUnavailableException
MethodParameters:
Name Flags
info final
public static javax.sound.midi.Receiver getReceiver();
descriptor: ()Ljavax/sound/midi/Receiver;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=4, locals=2, args_size=0
0: ldc Ljavax/sound/midi/Receiver;
invokestatic javax.sound.midi.MidiSystem.getDefaultDeviceWrapper:(Ljava/lang/Class;)Ljavax/sound/midi/MidiDevice;
astore 0
start local 0 1: aload 0
instanceof com.sun.media.sound.ReferenceCountingDevice
ifeq 4
2: aload 0
checkcast com.sun.media.sound.ReferenceCountingDevice
invokeinterface com.sun.media.sound.ReferenceCountingDevice.getReceiverReferenceCounting:()Ljavax/sound/midi/Receiver;
astore 1
start local 1 3: goto 5
end local 1 4: StackMap locals: javax.sound.midi.MidiDevice
StackMap stack:
aload 0
invokeinterface javax.sound.midi.MidiDevice.getReceiver:()Ljavax/sound/midi/Receiver;
astore 1
start local 1 5: StackMap locals: javax.sound.midi.Receiver
StackMap stack:
aload 1
instanceof javax.sound.midi.MidiDeviceReceiver
ifne 7
6: new com.sun.media.sound.MidiDeviceReceiverEnvelope
dup
aload 0
aload 1
invokespecial com.sun.media.sound.MidiDeviceReceiverEnvelope.<init>:(Ljavax/sound/midi/MidiDevice;Ljavax/sound/midi/Receiver;)V
astore 1
7: StackMap locals:
StackMap stack:
aload 1
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
1 8 0 device Ljavax/sound/midi/MidiDevice;
3 4 1 receiver Ljavax/sound/midi/Receiver;
5 8 1 receiver Ljavax/sound/midi/Receiver;
Exceptions:
throws javax.sound.midi.MidiUnavailableException
public static javax.sound.midi.Transmitter getTransmitter();
descriptor: ()Ljavax/sound/midi/Transmitter;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=4, locals=2, args_size=0
0: ldc Ljavax/sound/midi/Transmitter;
invokestatic javax.sound.midi.MidiSystem.getDefaultDeviceWrapper:(Ljava/lang/Class;)Ljavax/sound/midi/MidiDevice;
astore 0
start local 0 1: aload 0
instanceof com.sun.media.sound.ReferenceCountingDevice
ifeq 4
2: aload 0
checkcast com.sun.media.sound.ReferenceCountingDevice
invokeinterface com.sun.media.sound.ReferenceCountingDevice.getTransmitterReferenceCounting:()Ljavax/sound/midi/Transmitter;
astore 1
start local 1 3: goto 5
end local 1 4: StackMap locals: javax.sound.midi.MidiDevice
StackMap stack:
aload 0
invokeinterface javax.sound.midi.MidiDevice.getTransmitter:()Ljavax/sound/midi/Transmitter;
astore 1
start local 1 5: StackMap locals: javax.sound.midi.Transmitter
StackMap stack:
aload 1
instanceof javax.sound.midi.MidiDeviceTransmitter
ifne 7
6: new com.sun.media.sound.MidiDeviceTransmitterEnvelope
dup
aload 0
aload 1
invokespecial com.sun.media.sound.MidiDeviceTransmitterEnvelope.<init>:(Ljavax/sound/midi/MidiDevice;Ljavax/sound/midi/Transmitter;)V
astore 1
7: StackMap locals:
StackMap stack:
aload 1
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
1 8 0 device Ljavax/sound/midi/MidiDevice;
3 4 1 transmitter Ljavax/sound/midi/Transmitter;
5 8 1 transmitter Ljavax/sound/midi/Transmitter;
Exceptions:
throws javax.sound.midi.MidiUnavailableException
public static javax.sound.midi.Synthesizer getSynthesizer();
descriptor: ()Ljavax/sound/midi/Synthesizer;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=1, locals=0, args_size=0
0: ldc Ljavax/sound/midi/Synthesizer;
invokestatic javax.sound.midi.MidiSystem.getDefaultDeviceWrapper:(Ljava/lang/Class;)Ljavax/sound/midi/MidiDevice;
checkcast javax.sound.midi.Synthesizer
areturn
LocalVariableTable:
Start End Slot Name Signature
Exceptions:
throws javax.sound.midi.MidiUnavailableException
public static javax.sound.midi.Sequencer getSequencer();
descriptor: ()Ljavax/sound/midi/Sequencer;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=1, locals=0, args_size=0
0: iconst_1
invokestatic javax.sound.midi.MidiSystem.getSequencer:(Z)Ljavax/sound/midi/Sequencer;
areturn
LocalVariableTable:
Start End Slot Name Signature
Exceptions:
throws javax.sound.midi.MidiUnavailableException
public static javax.sound.midi.Sequencer getSequencer(boolean);
descriptor: (Z)Ljavax/sound/midi/Sequencer;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=3, locals=6, args_size=1
start local 0 0: ldc Ljavax/sound/midi/Sequencer;
invokestatic javax.sound.midi.MidiSystem.getDefaultDeviceWrapper:(Ljava/lang/Class;)Ljavax/sound/midi/MidiDevice;
checkcast javax.sound.midi.Sequencer
astore 1
start local 1 1: iload 0
ifeq 35
2: aconst_null
astore 2
start local 2 3: aconst_null
astore 3
start local 3 4: invokestatic javax.sound.midi.MidiSystem.getSynthesizer:()Ljavax/sound/midi/Synthesizer;
astore 4
start local 4 5: aload 4
instanceof com.sun.media.sound.ReferenceCountingDevice
ifeq 8
6: aload 4
checkcast com.sun.media.sound.ReferenceCountingDevice
invokeinterface com.sun.media.sound.ReferenceCountingDevice.getReceiverReferenceCounting:()Ljavax/sound/midi/Receiver;
astore 2
7: goto 21
8: StackMap locals: int javax.sound.midi.Sequencer javax.sound.midi.Receiver javax.sound.midi.MidiUnavailableException javax.sound.midi.Synthesizer
StackMap stack:
aload 4
invokeinterface javax.sound.midi.Synthesizer.open:()V
9: aload 4
invokeinterface javax.sound.midi.Synthesizer.getReceiver:()Ljavax/sound/midi/Receiver;
astore 2
10: goto 15
StackMap locals:
StackMap stack: java.lang.Throwable
11: astore 5
12: aload 2
ifnonnull 14
13: aload 4
invokeinterface javax.sound.midi.Synthesizer.close:()V
14: StackMap locals: java.lang.Throwable
StackMap stack:
aload 5
athrow
15: StackMap locals:
StackMap stack:
aload 2
ifnonnull 21
16: aload 4
invokeinterface javax.sound.midi.Synthesizer.close:()V
end local 4 17: goto 21
StackMap locals: int javax.sound.midi.Sequencer javax.sound.midi.Receiver javax.sound.midi.MidiUnavailableException
StackMap stack: javax.sound.midi.MidiUnavailableException
18: astore 4
start local 4 19: aload 4
instanceof javax.sound.midi.MidiUnavailableException
ifeq 21
20: aload 4
astore 3
end local 4 21: StackMap locals:
StackMap stack:
aload 2
ifnonnull 27
22: invokestatic javax.sound.midi.MidiSystem.getReceiver:()Ljavax/sound/midi/Receiver;
astore 2
23: goto 27
StackMap locals:
StackMap stack: java.lang.Exception
24: astore 4
start local 4 25: aload 4
instanceof javax.sound.midi.MidiUnavailableException
ifeq 27
26: aload 4
checkcast javax.sound.midi.MidiUnavailableException
astore 3
end local 4 27: StackMap locals:
StackMap stack:
aload 2
ifnull 32
28: aload 1
invokeinterface javax.sound.midi.Sequencer.getTransmitter:()Ljavax/sound/midi/Transmitter;
aload 2
invokeinterface javax.sound.midi.Transmitter.setReceiver:(Ljavax/sound/midi/Receiver;)V
29: aload 1
instanceof com.sun.media.sound.AutoConnectSequencer
ifeq 35
30: aload 1
checkcast com.sun.media.sound.AutoConnectSequencer
aload 2
invokeinterface com.sun.media.sound.AutoConnectSequencer.setAutoConnect:(Ljavax/sound/midi/Receiver;)V
31: goto 35
32: StackMap locals:
StackMap stack:
aload 3
ifnull 34
33: aload 3
athrow
34: StackMap locals:
StackMap stack:
new javax.sound.midi.MidiUnavailableException
dup
ldc "no receiver available"
invokespecial javax.sound.midi.MidiUnavailableException.<init>:(Ljava/lang/String;)V
athrow
end local 3 end local 2 35: StackMap locals:
StackMap stack:
aload 1
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 36 0 connected Z
1 36 1 seq Ljavax/sound/midi/Sequencer;
3 35 2 rec Ljavax/sound/midi/Receiver;
4 35 3 mue Ljavax/sound/midi/MidiUnavailableException;
5 17 4 synth Ljavax/sound/midi/Synthesizer;
19 21 4 e Ljavax/sound/midi/MidiUnavailableException;
25 27 4 e Ljava/lang/Exception;
Exception table:
from to target type
9 11 11 any
4 17 18 Class javax.sound.midi.MidiUnavailableException
22 23 24 Class java.lang.Exception
Exceptions:
throws javax.sound.midi.MidiUnavailableException
MethodParameters:
Name Flags
connected
public static javax.sound.midi.Soundbank getSoundbank(java.io.InputStream);
descriptor: (Ljava/io/InputStream;)Ljavax/sound/midi/Soundbank;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=3, locals=5, args_size=1
start local 0 0: aload 0
invokestatic java.util.Objects.requireNonNull:(Ljava/lang/Object;)Ljava/lang/Object;
pop
1: aconst_null
astore 1
start local 1 2: aconst_null
astore 2
start local 2 3: invokestatic javax.sound.midi.MidiSystem.getSoundbankReaders:()Ljava/util/List;
astore 3
start local 3 4: iconst_0
istore 4
start local 4 5: goto 11
6: StackMap locals: java.io.InputStream javax.sound.midi.spi.SoundbankReader javax.sound.midi.Soundbank java.util.List int
StackMap stack:
aload 3
iload 4
invokeinterface java.util.List.get:(I)Ljava/lang/Object;
checkcast javax.sound.midi.spi.SoundbankReader
astore 1
7: aload 1
aload 0
invokevirtual javax.sound.midi.spi.SoundbankReader.getSoundbank:(Ljava/io/InputStream;)Ljavax/sound/midi/Soundbank;
astore 2
8: aload 2
ifnull 10
9: aload 2
areturn
10: StackMap locals:
StackMap stack:
iinc 4 1
StackMap locals:
StackMap stack:
11: iload 4
aload 3
invokeinterface java.util.List.size:()I
if_icmplt 6
end local 4 12: new javax.sound.midi.InvalidMidiDataException
dup
ldc "cannot get soundbank from stream"
invokespecial javax.sound.midi.InvalidMidiDataException.<init>:(Ljava/lang/String;)V
athrow
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 13 0 stream Ljava/io/InputStream;
2 13 1 sp Ljavax/sound/midi/spi/SoundbankReader;
3 13 2 s Ljavax/sound/midi/Soundbank;
4 13 3 providers Ljava/util/List<Ljavax/sound/midi/spi/SoundbankReader;>;
5 12 4 i I
Exceptions:
throws javax.sound.midi.InvalidMidiDataException, java.io.IOException
MethodParameters:
Name Flags
stream final
public static javax.sound.midi.Soundbank getSoundbank(java.net.URL);
descriptor: (Ljava/net/URL;)Ljavax/sound/midi/Soundbank;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=3, locals=5, args_size=1
start local 0 0: aload 0
invokestatic java.util.Objects.requireNonNull:(Ljava/lang/Object;)Ljava/lang/Object;
pop
1: aconst_null
astore 1
start local 1 2: aconst_null
astore 2
start local 2 3: invokestatic javax.sound.midi.MidiSystem.getSoundbankReaders:()Ljava/util/List;
astore 3
start local 3 4: iconst_0
istore 4
start local 4 5: goto 11
6: StackMap locals: java.net.URL javax.sound.midi.spi.SoundbankReader javax.sound.midi.Soundbank java.util.List int
StackMap stack:
aload 3
iload 4
invokeinterface java.util.List.get:(I)Ljava/lang/Object;
checkcast javax.sound.midi.spi.SoundbankReader
astore 1
7: aload 1
aload 0
invokevirtual javax.sound.midi.spi.SoundbankReader.getSoundbank:(Ljava/net/URL;)Ljavax/sound/midi/Soundbank;
astore 2
8: aload 2
ifnull 10
9: aload 2
areturn
10: StackMap locals:
StackMap stack:
iinc 4 1
StackMap locals:
StackMap stack:
11: iload 4
aload 3
invokeinterface java.util.List.size:()I
if_icmplt 6
end local 4 12: new javax.sound.midi.InvalidMidiDataException
dup
ldc "cannot get soundbank from stream"
invokespecial javax.sound.midi.InvalidMidiDataException.<init>:(Ljava/lang/String;)V
athrow
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 13 0 url Ljava/net/URL;
2 13 1 sp Ljavax/sound/midi/spi/SoundbankReader;
3 13 2 s Ljavax/sound/midi/Soundbank;
4 13 3 providers Ljava/util/List<Ljavax/sound/midi/spi/SoundbankReader;>;
5 12 4 i I
Exceptions:
throws javax.sound.midi.InvalidMidiDataException, java.io.IOException
MethodParameters:
Name Flags
url final
public static javax.sound.midi.Soundbank getSoundbank(java.io.File);
descriptor: (Ljava/io/File;)Ljavax/sound/midi/Soundbank;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=3, locals=5, args_size=1
start local 0 0: aload 0
invokestatic java.util.Objects.requireNonNull:(Ljava/lang/Object;)Ljava/lang/Object;
pop
1: aconst_null
astore 1
start local 1 2: aconst_null
astore 2
start local 2 3: invokestatic javax.sound.midi.MidiSystem.getSoundbankReaders:()Ljava/util/List;
astore 3
start local 3 4: iconst_0
istore 4
start local 4 5: goto 11
6: StackMap locals: java.io.File javax.sound.midi.spi.SoundbankReader javax.sound.midi.Soundbank java.util.List int
StackMap stack:
aload 3
iload 4
invokeinterface java.util.List.get:(I)Ljava/lang/Object;
checkcast javax.sound.midi.spi.SoundbankReader
astore 1
7: aload 1
aload 0
invokevirtual javax.sound.midi.spi.SoundbankReader.getSoundbank:(Ljava/io/File;)Ljavax/sound/midi/Soundbank;
astore 2
8: aload 2
ifnull 10
9: aload 2
areturn
10: StackMap locals:
StackMap stack:
iinc 4 1
StackMap locals:
StackMap stack:
11: iload 4
aload 3
invokeinterface java.util.List.size:()I
if_icmplt 6
end local 4 12: new javax.sound.midi.InvalidMidiDataException
dup
ldc "cannot get soundbank from stream"
invokespecial javax.sound.midi.InvalidMidiDataException.<init>:(Ljava/lang/String;)V
athrow
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 13 0 file Ljava/io/File;
2 13 1 sp Ljavax/sound/midi/spi/SoundbankReader;
3 13 2 s Ljavax/sound/midi/Soundbank;
4 13 3 providers Ljava/util/List<Ljavax/sound/midi/spi/SoundbankReader;>;
5 12 4 i I
Exceptions:
throws javax.sound.midi.InvalidMidiDataException, java.io.IOException
MethodParameters:
Name Flags
file final
public static javax.sound.midi.MidiFileFormat getMidiFileFormat(java.io.InputStream);
descriptor: (Ljava/io/InputStream;)Ljavax/sound/midi/MidiFileFormat;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=3, locals=5, args_size=1
start local 0 0: aload 0
invokestatic java.util.Objects.requireNonNull:(Ljava/lang/Object;)Ljava/lang/Object;
pop
1: invokestatic javax.sound.midi.MidiSystem.getMidiFileReaders:()Ljava/util/List;
astore 1
start local 1 2: aconst_null
astore 2
start local 2 3: iconst_0
istore 3
start local 3 4: goto 10
5: StackMap locals: java.util.List javax.sound.midi.MidiFileFormat int
StackMap stack:
aload 1
iload 3
invokeinterface java.util.List.get:(I)Ljava/lang/Object;
checkcast javax.sound.midi.spi.MidiFileReader
astore 4
start local 4 6: aload 4
aload 0
invokevirtual javax.sound.midi.spi.MidiFileReader.getMidiFileFormat:(Ljava/io/InputStream;)Ljavax/sound/midi/MidiFileFormat;
astore 2
7: goto 11
8: StackMap locals: java.io.InputStream java.util.List javax.sound.midi.MidiFileFormat int javax.sound.midi.spi.MidiFileReader
StackMap stack: javax.sound.midi.InvalidMidiDataException
pop
end local 4 9: iinc 3 1
StackMap locals:
StackMap stack:
10: iload 3
aload 1
invokeinterface java.util.List.size:()I
if_icmplt 5
end local 3 11: StackMap locals:
StackMap stack:
aload 2
ifnonnull 13
12: new javax.sound.midi.InvalidMidiDataException
dup
ldc "input stream is not a supported file type"
invokespecial javax.sound.midi.InvalidMidiDataException.<init>:(Ljava/lang/String;)V
athrow
13: StackMap locals:
StackMap stack:
aload 2
areturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 14 0 stream Ljava/io/InputStream;
2 14 1 providers Ljava/util/List<Ljavax/sound/midi/spi/MidiFileReader;>;
3 14 2 format Ljavax/sound/midi/MidiFileFormat;
4 11 3 i I
6 9 4 reader Ljavax/sound/midi/spi/MidiFileReader;
Exception table:
from to target type
6 7 8 Class javax.sound.midi.InvalidMidiDataException
Exceptions:
throws javax.sound.midi.InvalidMidiDataException, java.io.IOException
MethodParameters:
Name Flags
stream final
public static javax.sound.midi.MidiFileFormat getMidiFileFormat(java.net.URL);
descriptor: (Ljava/net/URL;)Ljavax/sound/midi/MidiFileFormat;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=3, locals=5, args_size=1
start local 0 0: aload 0
invokestatic java.util.Objects.requireNonNull:(Ljava/lang/Object;)Ljava/lang/Object;
pop
1: invokestatic javax.sound.midi.MidiSystem.getMidiFileReaders:()Ljava/util/List;
astore 1
start local 1 2: aconst_null
astore 2
start local 2 3: iconst_0
istore 3
start local 3 4: goto 10
5: StackMap locals: java.util.List javax.sound.midi.MidiFileFormat int
StackMap stack:
aload 1
iload 3
invokeinterface java.util.List.get:(I)Ljava/lang/Object;
checkcast javax.sound.midi.spi.MidiFileReader
astore 4
start local 4 6: aload 4
aload 0
invokevirtual javax.sound.midi.spi.MidiFileReader.getMidiFileFormat:(Ljava/net/URL;)Ljavax/sound/midi/MidiFileFormat;
astore 2
7: goto 11
8: StackMap locals: java.net.URL java.util.List javax.sound.midi.MidiFileFormat int javax.sound.midi.spi.MidiFileReader
StackMap stack: javax.sound.midi.InvalidMidiDataException
pop
end local 4 9: iinc 3 1
StackMap locals:
StackMap stack:
10: iload 3
aload 1
invokeinterface java.util.List.size:()I
if_icmplt 5
end local 3 11: StackMap locals:
StackMap stack:
aload 2
ifnonnull 13
12: new javax.sound.midi.InvalidMidiDataException
dup
ldc "url is not a supported file type"
invokespecial javax.sound.midi.InvalidMidiDataException.<init>:(Ljava/lang/String;)V
athrow
13: StackMap locals:
StackMap stack:
aload 2
areturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 14 0 url Ljava/net/URL;
2 14 1 providers Ljava/util/List<Ljavax/sound/midi/spi/MidiFileReader;>;
3 14 2 format Ljavax/sound/midi/MidiFileFormat;
4 11 3 i I
6 9 4 reader Ljavax/sound/midi/spi/MidiFileReader;
Exception table:
from to target type
6 7 8 Class javax.sound.midi.InvalidMidiDataException
Exceptions:
throws javax.sound.midi.InvalidMidiDataException, java.io.IOException
MethodParameters:
Name Flags
url final
public static javax.sound.midi.MidiFileFormat getMidiFileFormat(java.io.File);
descriptor: (Ljava/io/File;)Ljavax/sound/midi/MidiFileFormat;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=3, locals=5, args_size=1
start local 0 0: aload 0
invokestatic java.util.Objects.requireNonNull:(Ljava/lang/Object;)Ljava/lang/Object;
pop
1: invokestatic javax.sound.midi.MidiSystem.getMidiFileReaders:()Ljava/util/List;
astore 1
start local 1 2: aconst_null
astore 2
start local 2 3: iconst_0
istore 3
start local 3 4: goto 10
5: StackMap locals: java.util.List javax.sound.midi.MidiFileFormat int
StackMap stack:
aload 1
iload 3
invokeinterface java.util.List.get:(I)Ljava/lang/Object;
checkcast javax.sound.midi.spi.MidiFileReader
astore 4
start local 4 6: aload 4
aload 0
invokevirtual javax.sound.midi.spi.MidiFileReader.getMidiFileFormat:(Ljava/io/File;)Ljavax/sound/midi/MidiFileFormat;
astore 2
7: goto 11
8: StackMap locals: java.io.File java.util.List javax.sound.midi.MidiFileFormat int javax.sound.midi.spi.MidiFileReader
StackMap stack: javax.sound.midi.InvalidMidiDataException
pop
end local 4 9: iinc 3 1
StackMap locals:
StackMap stack:
10: iload 3
aload 1
invokeinterface java.util.List.size:()I
if_icmplt 5
end local 3 11: StackMap locals:
StackMap stack:
aload 2
ifnonnull 13
12: new javax.sound.midi.InvalidMidiDataException
dup
ldc "file is not a supported file type"
invokespecial javax.sound.midi.InvalidMidiDataException.<init>:(Ljava/lang/String;)V
athrow
13: StackMap locals:
StackMap stack:
aload 2
areturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 14 0 file Ljava/io/File;
2 14 1 providers Ljava/util/List<Ljavax/sound/midi/spi/MidiFileReader;>;
3 14 2 format Ljavax/sound/midi/MidiFileFormat;
4 11 3 i I
6 9 4 reader Ljavax/sound/midi/spi/MidiFileReader;
Exception table:
from to target type
6 7 8 Class javax.sound.midi.InvalidMidiDataException
Exceptions:
throws javax.sound.midi.InvalidMidiDataException, java.io.IOException
MethodParameters:
Name Flags
file final
public static javax.sound.midi.Sequence getSequence(java.io.InputStream);
descriptor: (Ljava/io/InputStream;)Ljavax/sound/midi/Sequence;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=3, locals=5, args_size=1
start local 0 0: aload 0
invokestatic java.util.Objects.requireNonNull:(Ljava/lang/Object;)Ljava/lang/Object;
pop
1: invokestatic javax.sound.midi.MidiSystem.getMidiFileReaders:()Ljava/util/List;
astore 1
start local 1 2: aconst_null
astore 2
start local 2 3: iconst_0
istore 3
start local 3 4: goto 10
5: StackMap locals: java.util.List javax.sound.midi.Sequence int
StackMap stack:
aload 1
iload 3
invokeinterface java.util.List.get:(I)Ljava/lang/Object;
checkcast javax.sound.midi.spi.MidiFileReader
astore 4
start local 4 6: aload 4
aload 0
invokevirtual javax.sound.midi.spi.MidiFileReader.getSequence:(Ljava/io/InputStream;)Ljavax/sound/midi/Sequence;
astore 2
7: goto 11
8: StackMap locals: java.io.InputStream java.util.List javax.sound.midi.Sequence int javax.sound.midi.spi.MidiFileReader
StackMap stack: javax.sound.midi.InvalidMidiDataException
pop
end local 4 9: iinc 3 1
StackMap locals:
StackMap stack:
10: iload 3
aload 1
invokeinterface java.util.List.size:()I
if_icmplt 5
end local 3 11: StackMap locals:
StackMap stack:
aload 2
ifnonnull 13
12: new javax.sound.midi.InvalidMidiDataException
dup
ldc "could not get sequence from input stream"
invokespecial javax.sound.midi.InvalidMidiDataException.<init>:(Ljava/lang/String;)V
athrow
13: StackMap locals:
StackMap stack:
aload 2
areturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 14 0 stream Ljava/io/InputStream;
2 14 1 providers Ljava/util/List<Ljavax/sound/midi/spi/MidiFileReader;>;
3 14 2 sequence Ljavax/sound/midi/Sequence;
4 11 3 i I
6 9 4 reader Ljavax/sound/midi/spi/MidiFileReader;
Exception table:
from to target type
6 7 8 Class javax.sound.midi.InvalidMidiDataException
Exceptions:
throws javax.sound.midi.InvalidMidiDataException, java.io.IOException
MethodParameters:
Name Flags
stream final
public static javax.sound.midi.Sequence getSequence(java.net.URL);
descriptor: (Ljava/net/URL;)Ljavax/sound/midi/Sequence;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=3, locals=5, args_size=1
start local 0 0: aload 0
invokestatic java.util.Objects.requireNonNull:(Ljava/lang/Object;)Ljava/lang/Object;
pop
1: invokestatic javax.sound.midi.MidiSystem.getMidiFileReaders:()Ljava/util/List;
astore 1
start local 1 2: aconst_null
astore 2
start local 2 3: iconst_0
istore 3
start local 3 4: goto 10
5: StackMap locals: java.util.List javax.sound.midi.Sequence int
StackMap stack:
aload 1
iload 3
invokeinterface java.util.List.get:(I)Ljava/lang/Object;
checkcast javax.sound.midi.spi.MidiFileReader
astore 4
start local 4 6: aload 4
aload 0
invokevirtual javax.sound.midi.spi.MidiFileReader.getSequence:(Ljava/net/URL;)Ljavax/sound/midi/Sequence;
astore 2
7: goto 11
8: StackMap locals: java.net.URL java.util.List javax.sound.midi.Sequence int javax.sound.midi.spi.MidiFileReader
StackMap stack: javax.sound.midi.InvalidMidiDataException
pop
end local 4 9: iinc 3 1
StackMap locals:
StackMap stack:
10: iload 3
aload 1
invokeinterface java.util.List.size:()I
if_icmplt 5
end local 3 11: StackMap locals:
StackMap stack:
aload 2
ifnonnull 13
12: new javax.sound.midi.InvalidMidiDataException
dup
ldc "could not get sequence from URL"
invokespecial javax.sound.midi.InvalidMidiDataException.<init>:(Ljava/lang/String;)V
athrow
13: StackMap locals:
StackMap stack:
aload 2
areturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 14 0 url Ljava/net/URL;
2 14 1 providers Ljava/util/List<Ljavax/sound/midi/spi/MidiFileReader;>;
3 14 2 sequence Ljavax/sound/midi/Sequence;
4 11 3 i I
6 9 4 reader Ljavax/sound/midi/spi/MidiFileReader;
Exception table:
from to target type
6 7 8 Class javax.sound.midi.InvalidMidiDataException
Exceptions:
throws javax.sound.midi.InvalidMidiDataException, java.io.IOException
MethodParameters:
Name Flags
url final
public static javax.sound.midi.Sequence getSequence(java.io.File);
descriptor: (Ljava/io/File;)Ljavax/sound/midi/Sequence;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=3, locals=5, args_size=1
start local 0 0: aload 0
invokestatic java.util.Objects.requireNonNull:(Ljava/lang/Object;)Ljava/lang/Object;
pop
1: invokestatic javax.sound.midi.MidiSystem.getMidiFileReaders:()Ljava/util/List;
astore 1
start local 1 2: aconst_null
astore 2
start local 2 3: iconst_0
istore 3
start local 3 4: goto 10
5: StackMap locals: java.util.List javax.sound.midi.Sequence int
StackMap stack:
aload 1
iload 3
invokeinterface java.util.List.get:(I)Ljava/lang/Object;
checkcast javax.sound.midi.spi.MidiFileReader
astore 4
start local 4 6: aload 4
aload 0
invokevirtual javax.sound.midi.spi.MidiFileReader.getSequence:(Ljava/io/File;)Ljavax/sound/midi/Sequence;
astore 2
7: goto 11
8: StackMap locals: java.io.File java.util.List javax.sound.midi.Sequence int javax.sound.midi.spi.MidiFileReader
StackMap stack: javax.sound.midi.InvalidMidiDataException
pop
end local 4 9: iinc 3 1
StackMap locals:
StackMap stack:
10: iload 3
aload 1
invokeinterface java.util.List.size:()I
if_icmplt 5
end local 3 11: StackMap locals:
StackMap stack:
aload 2
ifnonnull 13
12: new javax.sound.midi.InvalidMidiDataException
dup
ldc "could not get sequence from file"
invokespecial javax.sound.midi.InvalidMidiDataException.<init>:(Ljava/lang/String;)V
athrow
13: StackMap locals:
StackMap stack:
aload 2
areturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 14 0 file Ljava/io/File;
2 14 1 providers Ljava/util/List<Ljavax/sound/midi/spi/MidiFileReader;>;
3 14 2 sequence Ljavax/sound/midi/Sequence;
4 11 3 i I
6 9 4 reader Ljavax/sound/midi/spi/MidiFileReader;
Exception table:
from to target type
6 7 8 Class javax.sound.midi.InvalidMidiDataException
Exceptions:
throws javax.sound.midi.InvalidMidiDataException, java.io.IOException
MethodParameters:
Name Flags
file final
public static int[] getMidiFileTypes();
descriptor: ()[I
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=3, locals=6, args_size=0
0: invokestatic javax.sound.midi.MidiSystem.getMidiFileWriters:()Ljava/util/List;
astore 0
start local 0 1: new java.util.HashSet
dup
invokespecial java.util.HashSet.<init>:()V
astore 1
start local 1 2: iconst_0
istore 2
start local 2 3: goto 12
4: StackMap locals: java.util.List java.util.Set int
StackMap stack:
aload 0
iload 2
invokeinterface java.util.List.get:(I)Ljava/lang/Object;
checkcast javax.sound.midi.spi.MidiFileWriter
astore 3
start local 3 5: aload 3
invokevirtual javax.sound.midi.spi.MidiFileWriter.getMidiFileTypes:()[I
astore 4
start local 4 6: iconst_0
istore 5
start local 5 7: goto 10
8: StackMap locals: javax.sound.midi.spi.MidiFileWriter int[] int
StackMap stack:
aload 1
aload 4
iload 5
iaload
invokestatic java.lang.Integer.valueOf:(I)Ljava/lang/Integer;
invokeinterface java.util.Set.add:(Ljava/lang/Object;)Z
pop
9: iinc 5 1
StackMap locals:
StackMap stack:
10: iload 5
aload 4
arraylength
if_icmplt 8
end local 5 end local 4 end local 3 11: iinc 2 1
StackMap locals:
StackMap stack:
12: iload 2
aload 0
invokeinterface java.util.List.size:()I
if_icmplt 4
end local 2 13: aload 1
invokeinterface java.util.Set.size:()I
newarray 10
astore 2
start local 2 14: iconst_0
istore 3
start local 3 15: aload 1
invokeinterface java.util.Set.iterator:()Ljava/util/Iterator;
astore 5
goto 18
StackMap locals: java.util.List java.util.Set int[] int top java.util.Iterator
StackMap stack:
16: aload 5
invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
checkcast java.lang.Integer
astore 4
start local 4 17: aload 2
iload 3
iinc 3 1
aload 4
invokevirtual java.lang.Integer.intValue:()I
iastore
end local 4 18: StackMap locals:
StackMap stack:
aload 5
invokeinterface java.util.Iterator.hasNext:()Z
ifne 16
19: aload 2
areturn
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
1 20 0 providers Ljava/util/List<Ljavax/sound/midi/spi/MidiFileWriter;>;
2 20 1 allTypes Ljava/util/Set<Ljava/lang/Integer;>;
3 13 2 i I
5 11 3 writer Ljavax/sound/midi/spi/MidiFileWriter;
6 11 4 types [I
7 11 5 j I
14 20 2 resultTypes [I
15 20 3 index I
17 18 4 integer Ljava/lang/Integer;
public static boolean isFileTypeSupported(int);
descriptor: (I)Z
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=2, locals=4, args_size=1
start local 0 0: invokestatic javax.sound.midi.MidiSystem.getMidiFileWriters:()Ljava/util/List;
astore 1
start local 1 1: iconst_0
istore 2
start local 2 2: goto 7
3: StackMap locals: java.util.List int
StackMap stack:
aload 1
iload 2
invokeinterface java.util.List.get:(I)Ljava/lang/Object;
checkcast javax.sound.midi.spi.MidiFileWriter
astore 3
start local 3 4: aload 3
iload 0
invokevirtual javax.sound.midi.spi.MidiFileWriter.isFileTypeSupported:(I)Z
ifeq 6
5: iconst_1
ireturn
end local 3 6: StackMap locals:
StackMap stack:
iinc 2 1
StackMap locals:
StackMap stack:
7: iload 2
aload 1
invokeinterface java.util.List.size:()I
if_icmplt 3
end local 2 8: iconst_0
ireturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 9 0 fileType I
1 9 1 providers Ljava/util/List<Ljavax/sound/midi/spi/MidiFileWriter;>;
2 8 2 i I
4 6 3 writer Ljavax/sound/midi/spi/MidiFileWriter;
MethodParameters:
Name Flags
fileType
public static int[] getMidiFileTypes(javax.sound.midi.Sequence);
descriptor: (Ljavax/sound/midi/Sequence;)[I
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=3, locals=7, args_size=1
start local 0 0: aload 0
invokestatic java.util.Objects.requireNonNull:(Ljava/lang/Object;)Ljava/lang/Object;
pop
1: invokestatic javax.sound.midi.MidiSystem.getMidiFileWriters:()Ljava/util/List;
astore 1
start local 1 2: new java.util.HashSet
dup
invokespecial java.util.HashSet.<init>:()V
astore 2
start local 2 3: iconst_0
istore 3
start local 3 4: goto 13
5: StackMap locals: java.util.List java.util.Set int
StackMap stack:
aload 1
iload 3
invokeinterface java.util.List.get:(I)Ljava/lang/Object;
checkcast javax.sound.midi.spi.MidiFileWriter
astore 4
start local 4 6: aload 4
aload 0
invokevirtual javax.sound.midi.spi.MidiFileWriter.getMidiFileTypes:(Ljavax/sound/midi/Sequence;)[I
astore 5
start local 5 7: iconst_0
istore 6
start local 6 8: goto 11
9: StackMap locals: javax.sound.midi.spi.MidiFileWriter int[] int
StackMap stack:
aload 2
aload 5
iload 6
iaload
invokestatic java.lang.Integer.valueOf:(I)Ljava/lang/Integer;
invokeinterface java.util.Set.add:(Ljava/lang/Object;)Z
pop
10: iinc 6 1
StackMap locals:
StackMap stack:
11: iload 6
aload 5
arraylength
if_icmplt 9
end local 6 end local 5 end local 4 12: iinc 3 1
StackMap locals:
StackMap stack:
13: iload 3
aload 1
invokeinterface java.util.List.size:()I
if_icmplt 5
end local 3 14: aload 2
invokeinterface java.util.Set.size:()I
newarray 10
astore 3
start local 3 15: iconst_0
istore 4
start local 4 16: aload 2
invokeinterface java.util.Set.iterator:()Ljava/util/Iterator;
astore 6
goto 19
StackMap locals: javax.sound.midi.Sequence java.util.List java.util.Set int[] int top java.util.Iterator
StackMap stack:
17: aload 6
invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
checkcast java.lang.Integer
astore 5
start local 5 18: aload 3
iload 4
iinc 4 1
aload 5
invokevirtual java.lang.Integer.intValue:()I
iastore
end local 5 19: StackMap locals:
StackMap stack:
aload 6
invokeinterface java.util.Iterator.hasNext:()Z
ifne 17
20: aload 3
areturn
end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 21 0 sequence Ljavax/sound/midi/Sequence;
2 21 1 providers Ljava/util/List<Ljavax/sound/midi/spi/MidiFileWriter;>;
3 21 2 allTypes Ljava/util/Set<Ljava/lang/Integer;>;
4 14 3 i I
6 12 4 writer Ljavax/sound/midi/spi/MidiFileWriter;
7 12 5 types [I
8 12 6 j I
15 21 3 resultTypes [I
16 21 4 index I
18 19 5 integer Ljava/lang/Integer;
MethodParameters:
Name Flags
sequence final
public static boolean isFileTypeSupported(int, javax.sound.midi.Sequence);
descriptor: (ILjavax/sound/midi/Sequence;)Z
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=3, locals=5, 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: invokestatic javax.sound.midi.MidiSystem.getMidiFileWriters:()Ljava/util/List;
astore 2
start local 2 2: iconst_0
istore 3
start local 3 3: goto 8
4: StackMap locals: java.util.List int
StackMap stack:
aload 2
iload 3
invokeinterface java.util.List.get:(I)Ljava/lang/Object;
checkcast javax.sound.midi.spi.MidiFileWriter
astore 4
start local 4 5: aload 4
iload 0
aload 1
invokevirtual javax.sound.midi.spi.MidiFileWriter.isFileTypeSupported:(ILjavax/sound/midi/Sequence;)Z
ifeq 7
6: iconst_1
ireturn
end local 4 7: StackMap locals:
StackMap stack:
iinc 3 1
StackMap locals:
StackMap stack:
8: iload 3
aload 2
invokeinterface java.util.List.size:()I
if_icmplt 4
end local 3 9: iconst_0
ireturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 10 0 fileType I
0 10 1 sequence Ljavax/sound/midi/Sequence;
2 10 2 providers Ljava/util/List<Ljavax/sound/midi/spi/MidiFileWriter;>;
3 9 3 i I
5 7 4 writer Ljavax/sound/midi/spi/MidiFileWriter;
MethodParameters:
Name Flags
fileType final
sequence final
public static int write(javax.sound.midi.Sequence, int, java.io.OutputStream);
descriptor: (Ljavax/sound/midi/Sequence;ILjava/io/OutputStream;)I
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=4, locals=7, args_size=3
start local 0 start local 1 start local 2 0: aload 0
invokestatic java.util.Objects.requireNonNull:(Ljava/lang/Object;)Ljava/lang/Object;
pop
1: aload 2
invokestatic java.util.Objects.requireNonNull:(Ljava/lang/Object;)Ljava/lang/Object;
pop
2: invokestatic javax.sound.midi.MidiSystem.getMidiFileWriters:()Ljava/util/List;
astore 3
start local 3 3: bipush -2
istore 4
start local 4 4: iconst_0
istore 5
start local 5 5: goto 11
6: StackMap locals: java.util.List int int
StackMap stack:
aload 3
iload 5
invokeinterface java.util.List.get:(I)Ljava/lang/Object;
checkcast javax.sound.midi.spi.MidiFileWriter
astore 6
start local 6 7: aload 6
iload 1
aload 0
invokevirtual javax.sound.midi.spi.MidiFileWriter.isFileTypeSupported:(ILjavax/sound/midi/Sequence;)Z
ifeq 10
8: aload 6
aload 0
iload 1
aload 2
invokevirtual javax.sound.midi.spi.MidiFileWriter.write:(Ljavax/sound/midi/Sequence;ILjava/io/OutputStream;)I
istore 4
9: goto 12
end local 6 10: StackMap locals:
StackMap stack:
iinc 5 1
StackMap locals:
StackMap stack:
11: iload 5
aload 3
invokeinterface java.util.List.size:()I
if_icmplt 6
end local 5 12: StackMap locals:
StackMap stack:
iload 4
bipush -2
if_icmpne 14
13: new java.lang.IllegalArgumentException
dup
ldc "MIDI file type is not supported"
invokespecial java.lang.IllegalArgumentException.<init>:(Ljava/lang/String;)V
athrow
14: StackMap locals:
StackMap stack:
iload 4
ireturn
end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 15 0 in Ljavax/sound/midi/Sequence;
0 15 1 fileType I
0 15 2 out Ljava/io/OutputStream;
3 15 3 providers Ljava/util/List<Ljavax/sound/midi/spi/MidiFileWriter;>;
4 15 4 bytesWritten I
5 12 5 i I
7 10 6 writer Ljavax/sound/midi/spi/MidiFileWriter;
Exceptions:
throws java.io.IOException
MethodParameters:
Name Flags
in final
fileType final
out final
public static int write(javax.sound.midi.Sequence, int, java.io.File);
descriptor: (Ljavax/sound/midi/Sequence;ILjava/io/File;)I
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=4, locals=7, args_size=3
start local 0 start local 1 start local 2 0: aload 0
invokestatic java.util.Objects.requireNonNull:(Ljava/lang/Object;)Ljava/lang/Object;
pop
1: aload 2
invokestatic java.util.Objects.requireNonNull:(Ljava/lang/Object;)Ljava/lang/Object;
pop
2: invokestatic javax.sound.midi.MidiSystem.getMidiFileWriters:()Ljava/util/List;
astore 3
start local 3 3: bipush -2
istore 4
start local 4 4: iconst_0
istore 5
start local 5 5: goto 11
6: StackMap locals: java.util.List int int
StackMap stack:
aload 3
iload 5
invokeinterface java.util.List.get:(I)Ljava/lang/Object;
checkcast javax.sound.midi.spi.MidiFileWriter
astore 6
start local 6 7: aload 6
iload 1
aload 0
invokevirtual javax.sound.midi.spi.MidiFileWriter.isFileTypeSupported:(ILjavax/sound/midi/Sequence;)Z
ifeq 10
8: aload 6
aload 0
iload 1
aload 2
invokevirtual javax.sound.midi.spi.MidiFileWriter.write:(Ljavax/sound/midi/Sequence;ILjava/io/File;)I
istore 4
9: goto 12
end local 6 10: StackMap locals:
StackMap stack:
iinc 5 1
StackMap locals:
StackMap stack:
11: iload 5
aload 3
invokeinterface java.util.List.size:()I
if_icmplt 6
end local 5 12: StackMap locals:
StackMap stack:
iload 4
bipush -2
if_icmpne 14
13: new java.lang.IllegalArgumentException
dup
ldc "MIDI file type is not supported"
invokespecial java.lang.IllegalArgumentException.<init>:(Ljava/lang/String;)V
athrow
14: StackMap locals:
StackMap stack:
iload 4
ireturn
end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 15 0 in Ljavax/sound/midi/Sequence;
0 15 1 type I
0 15 2 out Ljava/io/File;
3 15 3 providers Ljava/util/List<Ljavax/sound/midi/spi/MidiFileWriter;>;
4 15 4 bytesWritten I
5 12 5 i I
7 10 6 writer Ljavax/sound/midi/spi/MidiFileWriter;
Exceptions:
throws java.io.IOException
MethodParameters:
Name Flags
in final
type final
out final
private static java.util.List<javax.sound.midi.spi.MidiDeviceProvider> getMidiDeviceProviders();
descriptor: ()Ljava/util/List;
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=1, locals=0, args_size=0
0: ldc Ljavax/sound/midi/spi/MidiDeviceProvider;
invokestatic javax.sound.midi.MidiSystem.getProviders:(Ljava/lang/Class;)Ljava/util/List;
areturn
LocalVariableTable:
Start End Slot Name Signature
Signature: ()Ljava/util/List<Ljavax/sound/midi/spi/MidiDeviceProvider;>;
private static java.util.List<javax.sound.midi.spi.SoundbankReader> getSoundbankReaders();
descriptor: ()Ljava/util/List;
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=1, locals=0, args_size=0
0: ldc Ljavax/sound/midi/spi/SoundbankReader;
invokestatic javax.sound.midi.MidiSystem.getProviders:(Ljava/lang/Class;)Ljava/util/List;
areturn
LocalVariableTable:
Start End Slot Name Signature
Signature: ()Ljava/util/List<Ljavax/sound/midi/spi/SoundbankReader;>;
private static java.util.List<javax.sound.midi.spi.MidiFileWriter> getMidiFileWriters();
descriptor: ()Ljava/util/List;
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=1, locals=0, args_size=0
0: ldc Ljavax/sound/midi/spi/MidiFileWriter;
invokestatic javax.sound.midi.MidiSystem.getProviders:(Ljava/lang/Class;)Ljava/util/List;
areturn
LocalVariableTable:
Start End Slot Name Signature
Signature: ()Ljava/util/List<Ljavax/sound/midi/spi/MidiFileWriter;>;
private static java.util.List<javax.sound.midi.spi.MidiFileReader> getMidiFileReaders();
descriptor: ()Ljava/util/List;
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=1, locals=0, args_size=0
0: ldc Ljavax/sound/midi/spi/MidiFileReader;
invokestatic javax.sound.midi.MidiSystem.getProviders:(Ljava/lang/Class;)Ljava/util/List;
areturn
LocalVariableTable:
Start End Slot Name Signature
Signature: ()Ljava/util/List<Ljavax/sound/midi/spi/MidiFileReader;>;
private static javax.sound.midi.MidiDevice getDefaultDeviceWrapper(java.lang.Class<?>);
descriptor: (Ljava/lang/Class;)Ljavax/sound/midi/MidiDevice;
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=2, locals=3, args_size=1
start local 0 0: aload 0
invokestatic javax.sound.midi.MidiSystem.getDefaultDevice:(Ljava/lang/Class;)Ljavax/sound/midi/MidiDevice;
1: areturn
2: StackMap locals:
StackMap stack: java.lang.IllegalArgumentException
astore 1
start local 1 3: new javax.sound.midi.MidiUnavailableException
dup
invokespecial javax.sound.midi.MidiUnavailableException.<init>:()V
astore 2
start local 2 4: aload 2
aload 1
invokevirtual javax.sound.midi.MidiUnavailableException.initCause:(Ljava/lang/Throwable;)Ljava/lang/Throwable;
pop
5: aload 2
athrow
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 6 0 deviceClass Ljava/lang/Class<*>;
3 6 1 iae Ljava/lang/IllegalArgumentException;
4 6 2 mae Ljavax/sound/midi/MidiUnavailableException;
Exception table:
from to target type
0 1 2 Class java.lang.IllegalArgumentException
Exceptions:
throws javax.sound.midi.MidiUnavailableException
Signature: (Ljava/lang/Class<*>;)Ljavax/sound/midi/MidiDevice;
MethodParameters:
Name Flags
deviceClass
private static javax.sound.midi.MidiDevice getDefaultDevice(java.lang.Class<?>);
descriptor: (Ljava/lang/Class;)Ljavax/sound/midi/MidiDevice;
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=3, locals=6, args_size=1
start local 0 0: invokestatic javax.sound.midi.MidiSystem.getMidiDeviceProviders:()Ljava/util/List;
astore 1
start local 1 1: aload 0
invokestatic com.sun.media.sound.JDK13Services.getDefaultProviderClassName:(Ljava/lang/Class;)Ljava/lang/String;
astore 2
start local 2 2: aload 0
invokestatic com.sun.media.sound.JDK13Services.getDefaultInstanceName:(Ljava/lang/Class;)Ljava/lang/String;
astore 3
start local 3 3: aload 2
ifnull 13
4: aload 2
aload 1
invokestatic javax.sound.midi.MidiSystem.getNamedProvider:(Ljava/lang/String;Ljava/util/List;)Ljavax/sound/midi/spi/MidiDeviceProvider;
astore 5
start local 5 5: aload 5
ifnull 13
6: aload 3
ifnull 10
7: aload 3
aload 5
aload 0
invokestatic javax.sound.midi.MidiSystem.getNamedDevice:(Ljava/lang/String;Ljavax/sound/midi/spi/MidiDeviceProvider;Ljava/lang/Class;)Ljavax/sound/midi/MidiDevice;
astore 4
start local 4 8: aload 4
ifnull 10
9: aload 4
areturn
end local 4 10: StackMap locals: java.lang.Class java.util.List java.lang.String java.lang.String top javax.sound.midi.spi.MidiDeviceProvider
StackMap stack:
aload 5
aload 0
invokestatic javax.sound.midi.MidiSystem.getFirstDevice:(Ljavax/sound/midi/spi/MidiDeviceProvider;Ljava/lang/Class;)Ljavax/sound/midi/MidiDevice;
astore 4
start local 4 11: aload 4
ifnull 13
12: aload 4
areturn
end local 5 end local 4 13: StackMap locals: java.lang.Class java.util.List java.lang.String java.lang.String
StackMap stack:
aload 3
ifnull 17
14: aload 3
aload 1
aload 0
invokestatic javax.sound.midi.MidiSystem.getNamedDevice:(Ljava/lang/String;Ljava/util/List;Ljava/lang/Class;)Ljavax/sound/midi/MidiDevice;
astore 4
start local 4 15: aload 4
ifnull 17
16: aload 4
areturn
end local 4 17: StackMap locals:
StackMap stack:
aload 1
aload 0
invokestatic javax.sound.midi.MidiSystem.getFirstDevice:(Ljava/util/List;Ljava/lang/Class;)Ljavax/sound/midi/MidiDevice;
astore 4
start local 4 18: aload 4
ifnull 20
19: aload 4
areturn
20: StackMap locals: javax.sound.midi.MidiDevice
StackMap stack:
new java.lang.IllegalArgumentException
dup
ldc "Requested device not installed"
invokespecial java.lang.IllegalArgumentException.<init>:(Ljava/lang/String;)V
athrow
end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 21 0 deviceClass Ljava/lang/Class<*>;
1 21 1 providers Ljava/util/List<Ljavax/sound/midi/spi/MidiDeviceProvider;>;
2 21 2 providerClassName Ljava/lang/String;
3 21 3 instanceName Ljava/lang/String;
8 10 4 device Ljavax/sound/midi/MidiDevice;
11 13 4 device Ljavax/sound/midi/MidiDevice;
15 17 4 device Ljavax/sound/midi/MidiDevice;
18 21 4 device Ljavax/sound/midi/MidiDevice;
5 13 5 defaultProvider Ljavax/sound/midi/spi/MidiDeviceProvider;
Signature: (Ljava/lang/Class<*>;)Ljavax/sound/midi/MidiDevice;
MethodParameters:
Name Flags
deviceClass
private static javax.sound.midi.spi.MidiDeviceProvider getNamedProvider(java.lang.String, java.util.List<javax.sound.midi.spi.MidiDeviceProvider>);
descriptor: (Ljava/lang/String;Ljava/util/List;)Ljavax/sound/midi/spi/MidiDeviceProvider;
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=2, locals=4, args_size=2
start local 0 start local 1 0: iconst_0
istore 2
start local 2 1: goto 6
2: StackMap locals: int
StackMap stack:
aload 1
iload 2
invokeinterface java.util.List.get:(I)Ljava/lang/Object;
checkcast javax.sound.midi.spi.MidiDeviceProvider
astore 3
start local 3 3: aload 3
invokevirtual java.lang.Object.getClass:()Ljava/lang/Class;
invokevirtual java.lang.Class.getName:()Ljava/lang/String;
aload 0
invokevirtual java.lang.String.equals:(Ljava/lang/Object;)Z
ifeq 5
4: aload 3
areturn
end local 3 5: StackMap locals:
StackMap stack:
iinc 2 1
StackMap locals:
StackMap stack:
6: iload 2
aload 1
invokeinterface java.util.List.size:()I
if_icmplt 2
end local 2 7: aconst_null
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 8 0 providerClassName Ljava/lang/String;
0 8 1 providers Ljava/util/List<Ljavax/sound/midi/spi/MidiDeviceProvider;>;
1 7 2 i I
3 5 3 provider Ljavax/sound/midi/spi/MidiDeviceProvider;
Signature: (Ljava/lang/String;Ljava/util/List<Ljavax/sound/midi/spi/MidiDeviceProvider;>;)Ljavax/sound/midi/spi/MidiDeviceProvider;
MethodParameters:
Name Flags
providerClassName
providers
private static javax.sound.midi.MidiDevice getNamedDevice(java.lang.String, javax.sound.midi.spi.MidiDeviceProvider, java.lang.Class<?>);
descriptor: (Ljava/lang/String;Ljavax/sound/midi/spi/MidiDeviceProvider;Ljava/lang/Class;)Ljavax/sound/midi/MidiDevice;
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=5, locals=4, args_size=3
start local 0 start local 1 start local 2 0: aload 0
aload 1
aload 2
1: iconst_0
iconst_0
2: invokestatic javax.sound.midi.MidiSystem.getNamedDevice:(Ljava/lang/String;Ljavax/sound/midi/spi/MidiDeviceProvider;Ljava/lang/Class;ZZ)Ljavax/sound/midi/MidiDevice;
astore 3
start local 3 3: aload 3
ifnull 5
4: aload 3
areturn
5: StackMap locals: javax.sound.midi.MidiDevice
StackMap stack:
aload 2
ldc Ljavax/sound/midi/Receiver;
if_acmpne 11
6: aload 0
aload 1
aload 2
7: iconst_1
iconst_0
8: invokestatic javax.sound.midi.MidiSystem.getNamedDevice:(Ljava/lang/String;Ljavax/sound/midi/spi/MidiDeviceProvider;Ljava/lang/Class;ZZ)Ljavax/sound/midi/MidiDevice;
astore 3
9: aload 3
ifnull 11
10: aload 3
areturn
11: StackMap locals:
StackMap stack:
aconst_null
areturn
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 12 0 deviceName Ljava/lang/String;
0 12 1 provider Ljavax/sound/midi/spi/MidiDeviceProvider;
0 12 2 deviceClass Ljava/lang/Class<*>;
3 12 3 device Ljavax/sound/midi/MidiDevice;
Signature: (Ljava/lang/String;Ljavax/sound/midi/spi/MidiDeviceProvider;Ljava/lang/Class<*>;)Ljavax/sound/midi/MidiDevice;
MethodParameters:
Name Flags
deviceName
provider
deviceClass
private static javax.sound.midi.MidiDevice getNamedDevice(java.lang.String, javax.sound.midi.spi.MidiDeviceProvider, java.lang.Class<?>, boolean, boolean);
descriptor: (Ljava/lang/String;Ljavax/sound/midi/spi/MidiDeviceProvider;Ljava/lang/Class;ZZ)Ljavax/sound/midi/MidiDevice;
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=4, locals=8, args_size=5
start local 0 start local 1 start local 2 start local 3 start local 4 0: aload 1
invokevirtual javax.sound.midi.spi.MidiDeviceProvider.getDeviceInfo:()[Ljavax/sound/midi/MidiDevice$Info;
astore 5
start local 5 1: iconst_0
istore 6
start local 6 2: goto 11
3: StackMap locals: javax.sound.midi.MidiDevice$Info[] int
StackMap stack:
aload 5
iload 6
aaload
invokevirtual javax.sound.midi.MidiDevice$Info.getName:()Ljava/lang/String;
aload 0
invokevirtual java.lang.String.equals:(Ljava/lang/Object;)Z
ifeq 10
4: aload 1
aload 5
iload 6
aaload
invokevirtual javax.sound.midi.spi.MidiDeviceProvider.getDevice:(Ljavax/sound/midi/MidiDevice$Info;)Ljavax/sound/midi/MidiDevice;
astore 7
start local 7 5: aload 7
aload 2
6: iload 3
iload 4
7: invokestatic javax.sound.midi.MidiSystem.isAppropriateDevice:(Ljavax/sound/midi/MidiDevice;Ljava/lang/Class;ZZ)Z
8: ifeq 10
9: aload 7
areturn
end local 7 10: StackMap locals:
StackMap stack:
iinc 6 1
StackMap locals:
StackMap stack:
11: iload 6
aload 5
arraylength
if_icmplt 3
end local 6 12: aconst_null
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 13 0 deviceName Ljava/lang/String;
0 13 1 provider Ljavax/sound/midi/spi/MidiDeviceProvider;
0 13 2 deviceClass Ljava/lang/Class<*>;
0 13 3 allowSynthesizer Z
0 13 4 allowSequencer Z
1 13 5 infos [Ljavax/sound/midi/MidiDevice$Info;
2 12 6 i I
5 10 7 device Ljavax/sound/midi/MidiDevice;
Signature: (Ljava/lang/String;Ljavax/sound/midi/spi/MidiDeviceProvider;Ljava/lang/Class<*>;ZZ)Ljavax/sound/midi/MidiDevice;
MethodParameters:
Name Flags
deviceName
provider
deviceClass
allowSynthesizer
allowSequencer
private static javax.sound.midi.MidiDevice getNamedDevice(java.lang.String, java.util.List<javax.sound.midi.spi.MidiDeviceProvider>, java.lang.Class<?>);
descriptor: (Ljava/lang/String;Ljava/util/List;Ljava/lang/Class;)Ljavax/sound/midi/MidiDevice;
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=5, locals=4, args_size=3
start local 0 start local 1 start local 2 0: aload 0
aload 1
aload 2
1: iconst_0
iconst_0
2: invokestatic javax.sound.midi.MidiSystem.getNamedDevice:(Ljava/lang/String;Ljava/util/List;Ljava/lang/Class;ZZ)Ljavax/sound/midi/MidiDevice;
astore 3
start local 3 3: aload 3
ifnull 5
4: aload 3
areturn
5: StackMap locals: javax.sound.midi.MidiDevice
StackMap stack:
aload 2
ldc Ljavax/sound/midi/Receiver;
if_acmpne 11
6: aload 0
aload 1
aload 2
7: iconst_1
iconst_0
8: invokestatic javax.sound.midi.MidiSystem.getNamedDevice:(Ljava/lang/String;Ljava/util/List;Ljava/lang/Class;ZZ)Ljavax/sound/midi/MidiDevice;
astore 3
9: aload 3
ifnull 11
10: aload 3
areturn
11: StackMap locals:
StackMap stack:
aconst_null
areturn
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 12 0 deviceName Ljava/lang/String;
0 12 1 providers Ljava/util/List<Ljavax/sound/midi/spi/MidiDeviceProvider;>;
0 12 2 deviceClass Ljava/lang/Class<*>;
3 12 3 device Ljavax/sound/midi/MidiDevice;
Signature: (Ljava/lang/String;Ljava/util/List<Ljavax/sound/midi/spi/MidiDeviceProvider;>;Ljava/lang/Class<*>;)Ljavax/sound/midi/MidiDevice;
MethodParameters:
Name Flags
deviceName
providers
deviceClass
private static javax.sound.midi.MidiDevice getNamedDevice(java.lang.String, java.util.List<javax.sound.midi.spi.MidiDeviceProvider>, java.lang.Class<?>, boolean, boolean);
descriptor: (Ljava/lang/String;Ljava/util/List;Ljava/lang/Class;ZZ)Ljavax/sound/midi/MidiDevice;
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=5, locals=8, args_size=5
start local 0 start local 1 start local 2 start local 3 start local 4 0: iconst_0
istore 5
start local 5 1: goto 11
2: StackMap locals: int
StackMap stack:
aload 1
iload 5
invokeinterface java.util.List.get:(I)Ljava/lang/Object;
checkcast javax.sound.midi.spi.MidiDeviceProvider
astore 6
start local 6 3: aload 0
aload 6
4: aload 2
5: iload 3
6: iload 4
7: invokestatic javax.sound.midi.MidiSystem.getNamedDevice:(Ljava/lang/String;Ljavax/sound/midi/spi/MidiDeviceProvider;Ljava/lang/Class;ZZ)Ljavax/sound/midi/MidiDevice;
astore 7
start local 7 8: aload 7
ifnull 10
9: aload 7
areturn
end local 7 end local 6 10: StackMap locals:
StackMap stack:
iinc 5 1
StackMap locals:
StackMap stack:
11: iload 5
aload 1
invokeinterface java.util.List.size:()I
if_icmplt 2
end local 5 12: aconst_null
areturn
end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 13 0 deviceName Ljava/lang/String;
0 13 1 providers Ljava/util/List<Ljavax/sound/midi/spi/MidiDeviceProvider;>;
0 13 2 deviceClass Ljava/lang/Class<*>;
0 13 3 allowSynthesizer Z
0 13 4 allowSequencer Z
1 12 5 i I
3 10 6 provider Ljavax/sound/midi/spi/MidiDeviceProvider;
8 10 7 device Ljavax/sound/midi/MidiDevice;
Signature: (Ljava/lang/String;Ljava/util/List<Ljavax/sound/midi/spi/MidiDeviceProvider;>;Ljava/lang/Class<*>;ZZ)Ljavax/sound/midi/MidiDevice;
MethodParameters:
Name Flags
deviceName
providers
deviceClass
allowSynthesizer
allowSequencer
private static javax.sound.midi.MidiDevice getFirstDevice(javax.sound.midi.spi.MidiDeviceProvider, java.lang.Class<?>);
descriptor: (Ljavax/sound/midi/spi/MidiDeviceProvider;Ljava/lang/Class;)Ljavax/sound/midi/MidiDevice;
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=4, locals=3, args_size=2
start local 0 start local 1 0: aload 0
aload 1
1: iconst_0
iconst_0
2: invokestatic javax.sound.midi.MidiSystem.getFirstDevice:(Ljavax/sound/midi/spi/MidiDeviceProvider;Ljava/lang/Class;ZZ)Ljavax/sound/midi/MidiDevice;
astore 2
start local 2 3: aload 2
ifnull 5
4: aload 2
areturn
5: StackMap locals: javax.sound.midi.MidiDevice
StackMap stack:
aload 1
ldc Ljavax/sound/midi/Receiver;
if_acmpne 11
6: aload 0
aload 1
7: iconst_1
iconst_0
8: invokestatic javax.sound.midi.MidiSystem.getFirstDevice:(Ljavax/sound/midi/spi/MidiDeviceProvider;Ljava/lang/Class;ZZ)Ljavax/sound/midi/MidiDevice;
astore 2
9: aload 2
ifnull 11
10: aload 2
areturn
11: StackMap locals:
StackMap stack:
aconst_null
areturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 12 0 provider Ljavax/sound/midi/spi/MidiDeviceProvider;
0 12 1 deviceClass Ljava/lang/Class<*>;
3 12 2 device Ljavax/sound/midi/MidiDevice;
Signature: (Ljavax/sound/midi/spi/MidiDeviceProvider;Ljava/lang/Class<*>;)Ljavax/sound/midi/MidiDevice;
MethodParameters:
Name Flags
provider
deviceClass
private static javax.sound.midi.MidiDevice getFirstDevice(javax.sound.midi.spi.MidiDeviceProvider, java.lang.Class<?>, boolean, boolean);
descriptor: (Ljavax/sound/midi/spi/MidiDeviceProvider;Ljava/lang/Class;ZZ)Ljavax/sound/midi/MidiDevice;
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=4, locals=7, args_size=4
start local 0 start local 1 start local 2 start local 3 0: aload 0
invokevirtual javax.sound.midi.spi.MidiDeviceProvider.getDeviceInfo:()[Ljavax/sound/midi/MidiDevice$Info;
astore 4
start local 4 1: iconst_0
istore 5
start local 5 2: goto 10
3: StackMap locals: javax.sound.midi.MidiDevice$Info[] int
StackMap stack:
aload 0
aload 4
iload 5
aaload
invokevirtual javax.sound.midi.spi.MidiDeviceProvider.getDevice:(Ljavax/sound/midi/MidiDevice$Info;)Ljavax/sound/midi/MidiDevice;
astore 6
start local 6 4: aload 6
aload 1
5: iload 2
iload 3
6: invokestatic javax.sound.midi.MidiSystem.isAppropriateDevice:(Ljavax/sound/midi/MidiDevice;Ljava/lang/Class;ZZ)Z
7: ifeq 9
8: aload 6
areturn
end local 6 9: StackMap locals:
StackMap stack:
iinc 5 1
StackMap locals:
StackMap stack:
10: iload 5
aload 4
arraylength
if_icmplt 3
end local 5 11: aconst_null
areturn
end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 12 0 provider Ljavax/sound/midi/spi/MidiDeviceProvider;
0 12 1 deviceClass Ljava/lang/Class<*>;
0 12 2 allowSynthesizer Z
0 12 3 allowSequencer Z
1 12 4 infos [Ljavax/sound/midi/MidiDevice$Info;
2 11 5 j I
4 9 6 device Ljavax/sound/midi/MidiDevice;
Signature: (Ljavax/sound/midi/spi/MidiDeviceProvider;Ljava/lang/Class<*>;ZZ)Ljavax/sound/midi/MidiDevice;
MethodParameters:
Name Flags
provider
deviceClass
allowSynthesizer
allowSequencer
private static javax.sound.midi.MidiDevice getFirstDevice(java.util.List<javax.sound.midi.spi.MidiDeviceProvider>, java.lang.Class<?>);
descriptor: (Ljava/util/List;Ljava/lang/Class;)Ljavax/sound/midi/MidiDevice;
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=4, locals=3, args_size=2
start local 0 start local 1 0: aload 0
aload 1
1: iconst_0
iconst_0
2: invokestatic javax.sound.midi.MidiSystem.getFirstDevice:(Ljava/util/List;Ljava/lang/Class;ZZ)Ljavax/sound/midi/MidiDevice;
astore 2
start local 2 3: aload 2
ifnull 5
4: aload 2
areturn
5: StackMap locals: javax.sound.midi.MidiDevice
StackMap stack:
aload 1
ldc Ljavax/sound/midi/Receiver;
if_acmpne 11
6: aload 0
aload 1
7: iconst_1
iconst_0
8: invokestatic javax.sound.midi.MidiSystem.getFirstDevice:(Ljava/util/List;Ljava/lang/Class;ZZ)Ljavax/sound/midi/MidiDevice;
astore 2
9: aload 2
ifnull 11
10: aload 2
areturn
11: StackMap locals:
StackMap stack:
aconst_null
areturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 12 0 providers Ljava/util/List<Ljavax/sound/midi/spi/MidiDeviceProvider;>;
0 12 1 deviceClass Ljava/lang/Class<*>;
3 12 2 device Ljavax/sound/midi/MidiDevice;
Signature: (Ljava/util/List<Ljavax/sound/midi/spi/MidiDeviceProvider;>;Ljava/lang/Class<*>;)Ljavax/sound/midi/MidiDevice;
MethodParameters:
Name Flags
providers
deviceClass
private static javax.sound.midi.MidiDevice getFirstDevice(java.util.List<javax.sound.midi.spi.MidiDeviceProvider>, java.lang.Class<?>, boolean, boolean);
descriptor: (Ljava/util/List;Ljava/lang/Class;ZZ)Ljavax/sound/midi/MidiDevice;
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=4, locals=7, args_size=4
start local 0 start local 1 start local 2 start local 3 0: iconst_0
istore 4
start local 4 1: goto 10
2: StackMap locals: int
StackMap stack:
aload 0
iload 4
invokeinterface java.util.List.get:(I)Ljava/lang/Object;
checkcast javax.sound.midi.spi.MidiDeviceProvider
astore 5
start local 5 3: aload 5
aload 1
4: iload 2
5: iload 3
6: invokestatic javax.sound.midi.MidiSystem.getFirstDevice:(Ljavax/sound/midi/spi/MidiDeviceProvider;Ljava/lang/Class;ZZ)Ljavax/sound/midi/MidiDevice;
astore 6
start local 6 7: aload 6
ifnull 9
8: aload 6
areturn
end local 6 end local 5 9: StackMap locals:
StackMap stack:
iinc 4 1
StackMap locals:
StackMap stack:
10: iload 4
aload 0
invokeinterface java.util.List.size:()I
if_icmplt 2
end local 4 11: aconst_null
areturn
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 12 0 providers Ljava/util/List<Ljavax/sound/midi/spi/MidiDeviceProvider;>;
0 12 1 deviceClass Ljava/lang/Class<*>;
0 12 2 allowSynthesizer Z
0 12 3 allowSequencer Z
1 11 4 i I
3 9 5 provider Ljavax/sound/midi/spi/MidiDeviceProvider;
7 9 6 device Ljavax/sound/midi/MidiDevice;
Signature: (Ljava/util/List<Ljavax/sound/midi/spi/MidiDeviceProvider;>;Ljava/lang/Class<*>;ZZ)Ljavax/sound/midi/MidiDevice;
MethodParameters:
Name Flags
providers
deviceClass
allowSynthesizer
allowSequencer
private static boolean isAppropriateDevice(javax.sound.midi.MidiDevice, java.lang.Class<?>, boolean, );
descriptor: (Ljavax/sound/midi/MidiDevice;Ljava/lang/Class;ZZ)Z
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=2, locals=4, args_size=4
start local 0 start local 1 start local 2 start local 3 0: aload 1
aload 0
invokevirtual java.lang.Class.isInstance:(Ljava/lang/Object;)Z
ifeq 2
1: iconst_1
ireturn
2: StackMap locals:
StackMap stack:
aload 0
instanceof javax.sound.midi.Sequencer
ifne 4
3: aload 0
instanceof javax.sound.midi.Synthesizer
ifeq 6
4: StackMap locals:
StackMap stack:
aload 0
instanceof javax.sound.midi.Sequencer
ifeq 5
iload 3
ifne 6
5: StackMap locals:
StackMap stack:
aload 0
instanceof javax.sound.midi.Synthesizer
ifeq 11
iload 2
ifeq 11
6: StackMap locals:
StackMap stack:
aload 1
ldc Ljavax/sound/midi/Receiver;
if_acmpne 8
7: aload 0
invokeinterface javax.sound.midi.MidiDevice.getMaxReceivers:()I
ifne 10
8: StackMap locals:
StackMap stack:
aload 1
ldc Ljavax/sound/midi/Transmitter;
if_acmpne 11
9: aload 0
invokeinterface javax.sound.midi.MidiDevice.getMaxTransmitters:()I
ifeq 11
10: StackMap locals:
StackMap stack:
iconst_1
ireturn
11: StackMap locals:
StackMap stack:
iconst_0
ireturn
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 12 0 device Ljavax/sound/midi/MidiDevice;
0 12 1 deviceClass Ljava/lang/Class<*>;
0 12 2 allowSynthesizer Z
0 12 3 allowSequencer Z
Signature: (Ljavax/sound/midi/MidiDevice;Ljava/lang/Class<*>;ZZ)Z
MethodParameters:
Name Flags
device
deviceClass
allowSynthesizer
allowSequencer
private static java.util.List<?> getProviders(java.lang.Class<?>);
descriptor: (Ljava/lang/Class;)Ljava/util/List;
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
invokestatic com.sun.media.sound.JDK13Services.getProviders:(Ljava/lang/Class;)Ljava/util/List;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 providerClass Ljava/lang/Class<*>;
Signature: (Ljava/lang/Class<*>;)Ljava/util/List<*>;
MethodParameters:
Name Flags
providerClass
}
SourceFile: "MidiSystem.java"
InnerClasses:
public Info = javax.sound.midi.MidiDevice$Info of javax.sound.midi.MidiDevice