public final class com.sun.media.sound.StandardMidiFileReader extends javax.sound.midi.spi.MidiFileReader
minor version: 0
major version: 59
flags: flags: (0x0031) ACC_PUBLIC, ACC_FINAL, ACC_SUPER
this_class: com.sun.media.sound.StandardMidiFileReader
super_class: javax.sound.midi.spi.MidiFileReader
{
private static final int MThd_MAGIC;
descriptor: I
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
ConstantValue: 1297377380
private static final int bisBufferSize;
descriptor: I
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
ConstantValue: 1024
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.MidiFileReader.<init>:()V
return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lcom/sun/media/sound/StandardMidiFileReader;
public javax.sound.midi.MidiFileFormat getMidiFileFormat(java.io.InputStream);
descriptor: (Ljava/io/InputStream;)Ljavax/sound/midi/MidiFileFormat;
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=2, args_size=2
start local 0 start local 1 0: aload 0
aload 1
iconst_m1
aconst_null
invokevirtual com.sun.media.sound.StandardMidiFileReader.getMidiFileFormatFromStream:(Ljava/io/InputStream;ILcom/sun/media/sound/SMFParser;)Ljavax/sound/midi/MidiFileFormat;
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lcom/sun/media/sound/StandardMidiFileReader;
0 1 1 stream Ljava/io/InputStream;
Exceptions:
throws javax.sound.midi.InvalidMidiDataException, java.io.IOException
MethodParameters:
Name Flags
stream
private javax.sound.midi.MidiFileFormat getMidiFileFormatFromStream(java.io.InputStream, int, com.sun.media.sound.SMFParser);
descriptor: (Ljava/io/InputStream;ILcom/sun/media/sound/SMFParser;)Ljavax/sound/midi/MidiFileFormat;
flags: (0x0002) ACC_PRIVATE
Code:
stack=8, locals=16, args_size=4
start local 0 start local 1 start local 2 start local 3 0: bipush 16
istore 4
start local 4 1: iconst_m1
istore 5
start local 5 2: aload 1
instanceof java.io.DataInputStream
ifeq 5
3: aload 1
checkcast java.io.DataInputStream
astore 6
start local 6 4: goto 6
end local 6 5: StackMap locals: int int
StackMap stack:
new java.io.DataInputStream
dup
aload 1
invokespecial java.io.DataInputStream.<init>:(Ljava/io/InputStream;)V
astore 6
start local 6 6: StackMap locals: java.io.DataInputStream
StackMap stack:
aload 3
ifnonnull 9
7: aload 6
iload 4
invokevirtual java.io.DataInputStream.mark:(I)V
8: goto 10
9: StackMap locals:
StackMap stack:
aload 3
aload 6
putfield com.sun.media.sound.SMFParser.stream:Ljava/io/DataInputStream;
10: StackMap locals:
StackMap stack:
aload 6
invokevirtual java.io.DataInputStream.readInt:()I
istore 11
start local 11 11: iload 11
ldc 1297377380
if_icmpeq 13
12: new javax.sound.midi.InvalidMidiDataException
dup
ldc "not a valid MIDI file"
invokespecial javax.sound.midi.InvalidMidiDataException.<init>:(Ljava/lang/String;)V
athrow
13: StackMap locals: com.sun.media.sound.StandardMidiFileReader java.io.InputStream int com.sun.media.sound.SMFParser int int java.io.DataInputStream top top top top int
StackMap stack:
aload 6
invokevirtual java.io.DataInputStream.readInt:()I
bipush 6
isub
istore 12
start local 12 14: aload 6
invokevirtual java.io.DataInputStream.readShort:()S
istore 7
start local 7 15: aload 6
invokevirtual java.io.DataInputStream.readShort:()S
istore 8
start local 8 16: aload 6
invokevirtual java.io.DataInputStream.readShort:()S
istore 13
start local 13 17: iload 13
ifle 21
18: fconst_0
fstore 9
start local 9 19: iload 13
istore 10
start local 10 20: goto 33
end local 10 end local 9 21: StackMap locals: com.sun.media.sound.StandardMidiFileReader java.io.InputStream int com.sun.media.sound.SMFParser int int java.io.DataInputStream int int top top int int int
StackMap stack:
iconst_m1
iload 13
imul
bipush 8
ishr
istore 14
start local 14 22: iload 14
tableswitch { // 24 - 30
24: 23
25: 25
26: 31
27: 31
28: 31
29: 27
30: 29
default: 31
}
23: StackMap locals: int
StackMap stack:
ldc 24.0
fstore 9
start local 9 24: goto 32
end local 9 25: StackMap locals:
StackMap stack:
ldc 25.0
fstore 9
start local 9 26: goto 32
end local 9 27: StackMap locals:
StackMap stack:
ldc 29.97
fstore 9
start local 9 28: goto 32
end local 9 29: StackMap locals:
StackMap stack:
ldc 30.0
fstore 9
start local 9 30: goto 32
end local 9 31: StackMap locals:
StackMap stack:
new javax.sound.midi.InvalidMidiDataException
dup
new java.lang.StringBuilder
dup
ldc "Unknown frame code: "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
iload 14
invokevirtual java.lang.StringBuilder.append:(I)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokespecial javax.sound.midi.InvalidMidiDataException.<init>:(Ljava/lang/String;)V
athrow
start local 9 32: StackMap locals: com.sun.media.sound.StandardMidiFileReader java.io.InputStream int com.sun.media.sound.SMFParser int int java.io.DataInputStream int int float top int int int int
StackMap stack:
iload 13
sipush 255
iand
istore 10
end local 14 start local 10 33: StackMap locals: com.sun.media.sound.StandardMidiFileReader java.io.InputStream int com.sun.media.sound.SMFParser int int java.io.DataInputStream int int float int int int int
StackMap stack:
aload 3
ifnull 41
34: aload 6
iload 12
i2l
invokevirtual java.io.DataInputStream.skip:(J)J
pop2
35: aload 3
iload 8
putfield com.sun.media.sound.SMFParser.tracks:I
end local 13 end local 12 end local 11 36: goto 41
end local 10 end local 9 end local 8 end local 7 StackMap locals: com.sun.media.sound.StandardMidiFileReader java.io.InputStream int com.sun.media.sound.SMFParser int int java.io.DataInputStream
StackMap stack: java.lang.Throwable
37: astore 15
38: aload 3
ifnonnull 40
39: aload 6
invokevirtual java.io.DataInputStream.reset:()V
40: StackMap locals: com.sun.media.sound.StandardMidiFileReader java.io.InputStream int com.sun.media.sound.SMFParser int int java.io.DataInputStream top top top top top top top top java.lang.Throwable
StackMap stack:
aload 15
athrow
start local 7 start local 8 start local 9 start local 10 41: StackMap locals: com.sun.media.sound.StandardMidiFileReader java.io.InputStream int com.sun.media.sound.SMFParser int int java.io.DataInputStream int int float int
StackMap stack:
aload 3
ifnonnull 43
42: aload 6
invokevirtual java.io.DataInputStream.reset:()V
43: StackMap locals:
StackMap stack:
new javax.sound.midi.MidiFileFormat
dup
iload 7
fload 9
iload 10
iload 2
iload 5
i2l
invokespecial javax.sound.midi.MidiFileFormat.<init>:(IFIIJ)V
astore 11
start local 11 44: aload 11
areturn
end local 11 end local 10 end local 9 end local 8 end local 7 end local 6 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 45 0 this Lcom/sun/media/sound/StandardMidiFileReader;
0 45 1 stream Ljava/io/InputStream;
0 45 2 fileLength I
0 45 3 smfParser Lcom/sun/media/sound/SMFParser;
1 45 4 maxReadLength I
2 45 5 duration I
4 5 6 dis Ljava/io/DataInputStream;
6 45 6 dis Ljava/io/DataInputStream;
15 37 7 type I
41 45 7 type I
16 37 8 numtracks I
41 45 8 numtracks I
19 21 9 divisionType F
24 25 9 divisionType F
26 27 9 divisionType F
28 29 9 divisionType F
30 31 9 divisionType F
32 37 9 divisionType F
41 45 9 divisionType F
20 21 10 resolution I
33 37 10 resolution I
41 45 10 resolution I
11 36 11 magic I
14 36 12 bytesRemaining I
17 36 13 timing I
22 33 14 frameCode I
44 45 11 format Ljavax/sound/midi/MidiFileFormat;
Exception table:
from to target type
10 37 37 any
Exceptions:
throws javax.sound.midi.InvalidMidiDataException, java.io.IOException
MethodParameters:
Name Flags
stream
fileLength
smfParser
public javax.sound.midi.MidiFileFormat getMidiFileFormat(java.net.URL);
descriptor: (Ljava/net/URL;)Ljavax/sound/midi/MidiFileFormat;
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=6, args_size=2
start local 0 start local 1 0: aload 1
invokevirtual java.net.URL.openStream:()Ljava/io/InputStream;
astore 2
start local 2 1: new java.io.BufferedInputStream
dup
aload 2
sipush 1024
invokespecial java.io.BufferedInputStream.<init>:(Ljava/io/InputStream;I)V
astore 3
start local 3 2: aconst_null
astore 4
start local 4 3: aload 0
aload 3
invokevirtual com.sun.media.sound.StandardMidiFileReader.getMidiFileFormat:(Ljava/io/InputStream;)Ljavax/sound/midi/MidiFileFormat;
astore 4
4: goto 8
StackMap locals: com.sun.media.sound.StandardMidiFileReader java.net.URL java.io.InputStream java.io.BufferedInputStream javax.sound.midi.MidiFileFormat
StackMap stack: java.lang.Throwable
5: astore 5
6: aload 3
invokevirtual java.io.BufferedInputStream.close:()V
7: aload 5
athrow
8: StackMap locals:
StackMap stack:
aload 3
invokevirtual java.io.BufferedInputStream.close:()V
9: aload 4
areturn
end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 10 0 this Lcom/sun/media/sound/StandardMidiFileReader;
0 10 1 url Ljava/net/URL;
1 10 2 urlStream Ljava/io/InputStream;
2 10 3 bis Ljava/io/BufferedInputStream;
3 10 4 fileFormat Ljavax/sound/midi/MidiFileFormat;
Exception table:
from to target type
3 5 5 any
Exceptions:
throws javax.sound.midi.InvalidMidiDataException, java.io.IOException
MethodParameters:
Name Flags
url
public javax.sound.midi.MidiFileFormat getMidiFileFormat(java.io.File);
descriptor: (Ljava/io/File;)Ljavax/sound/midi/MidiFileFormat;
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=8, args_size=2
start local 0 start local 1 0: new java.io.FileInputStream
dup
aload 1
invokespecial java.io.FileInputStream.<init>:(Ljava/io/File;)V
astore 2
start local 2 1: new java.io.BufferedInputStream
dup
aload 2
sipush 1024
invokespecial java.io.BufferedInputStream.<init>:(Ljava/io/InputStream;I)V
astore 3
start local 3 2: aload 1
invokevirtual java.io.File.length:()J
lstore 4
start local 4 3: lload 4
ldc 2147483647
lcmp
ifle 5
4: ldc -1
lstore 4
5: StackMap locals: java.io.FileInputStream java.io.BufferedInputStream long
StackMap stack:
aconst_null
astore 6
start local 6 6: aload 0
aload 3
lload 4
l2i
aconst_null
invokevirtual com.sun.media.sound.StandardMidiFileReader.getMidiFileFormatFromStream:(Ljava/io/InputStream;ILcom/sun/media/sound/SMFParser;)Ljavax/sound/midi/MidiFileFormat;
astore 6
7: goto 11
StackMap locals: com.sun.media.sound.StandardMidiFileReader java.io.File java.io.FileInputStream java.io.BufferedInputStream long javax.sound.midi.MidiFileFormat
StackMap stack: java.lang.Throwable
8: astore 7
9: aload 3
invokevirtual java.io.BufferedInputStream.close:()V
10: aload 7
athrow
11: StackMap locals:
StackMap stack:
aload 3
invokevirtual java.io.BufferedInputStream.close:()V
12: aload 6
areturn
end local 6 end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 13 0 this Lcom/sun/media/sound/StandardMidiFileReader;
0 13 1 file Ljava/io/File;
1 13 2 fis Ljava/io/FileInputStream;
2 13 3 bis Ljava/io/BufferedInputStream;
3 13 4 length J
6 13 6 fileFormat Ljavax/sound/midi/MidiFileFormat;
Exception table:
from to target type
6 8 8 any
Exceptions:
throws javax.sound.midi.InvalidMidiDataException, java.io.IOException
MethodParameters:
Name Flags
file
public javax.sound.midi.Sequence getSequence(java.io.InputStream);
descriptor: (Ljava/io/InputStream;)Ljavax/sound/midi/Sequence;
flags: (0x0001) ACC_PUBLIC
Code:
stack=5, locals=6, args_size=2
start local 0 start local 1 0: new com.sun.media.sound.SMFParser
dup
invokespecial com.sun.media.sound.SMFParser.<init>:()V
astore 2
start local 2 1: aload 0
aload 1
2: iconst_m1
3: aload 2
4: invokevirtual com.sun.media.sound.StandardMidiFileReader.getMidiFileFormatFromStream:(Ljava/io/InputStream;ILcom/sun/media/sound/SMFParser;)Ljavax/sound/midi/MidiFileFormat;
astore 3
start local 3 5: aload 3
invokevirtual javax.sound.midi.MidiFileFormat.getType:()I
ifeq 7
aload 3
invokevirtual javax.sound.midi.MidiFileFormat.getType:()I
iconst_1
if_icmpeq 7
6: new javax.sound.midi.InvalidMidiDataException
dup
new java.lang.StringBuilder
dup
ldc "Invalid or unsupported file type: "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 3
invokevirtual javax.sound.midi.MidiFileFormat.getType:()I
invokevirtual java.lang.StringBuilder.append:(I)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokespecial javax.sound.midi.InvalidMidiDataException.<init>:(Ljava/lang/String;)V
athrow
7: StackMap locals: com.sun.media.sound.SMFParser javax.sound.midi.MidiFileFormat
StackMap stack:
new javax.sound.midi.Sequence
dup
aload 3
invokevirtual javax.sound.midi.MidiFileFormat.getDivisionType:()F
aload 3
invokevirtual javax.sound.midi.MidiFileFormat.getResolution:()I
invokespecial javax.sound.midi.Sequence.<init>:(FI)V
astore 4
start local 4 8: iconst_0
istore 5
start local 5 9: goto 13
10: StackMap locals: javax.sound.midi.Sequence int
StackMap stack:
aload 2
invokevirtual com.sun.media.sound.SMFParser.nextTrack:()Z
ifeq 14
11: aload 2
aload 4
invokevirtual javax.sound.midi.Sequence.createTrack:()Ljavax/sound/midi/Track;
invokevirtual com.sun.media.sound.SMFParser.readTrack:(Ljavax/sound/midi/Track;)V
12: iinc 5 1
StackMap locals:
StackMap stack:
13: iload 5
aload 2
getfield com.sun.media.sound.SMFParser.tracks:I
if_icmplt 10
end local 5 14: StackMap locals:
StackMap stack:
aload 4
areturn
end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 15 0 this Lcom/sun/media/sound/StandardMidiFileReader;
0 15 1 stream Ljava/io/InputStream;
1 15 2 smfParser Lcom/sun/media/sound/SMFParser;
5 15 3 format Ljavax/sound/midi/MidiFileFormat;
8 15 4 sequence Ljavax/sound/midi/Sequence;
9 14 5 i I
Exceptions:
throws javax.sound.midi.InvalidMidiDataException, java.io.IOException
MethodParameters:
Name Flags
stream
public javax.sound.midi.Sequence getSequence(java.net.URL);
descriptor: (Ljava/net/URL;)Ljavax/sound/midi/Sequence;
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=5, args_size=2
start local 0 start local 1 0: aload 1
invokevirtual java.net.URL.openStream:()Ljava/io/InputStream;
astore 2
start local 2 1: new java.io.BufferedInputStream
dup
aload 2
sipush 1024
invokespecial java.io.BufferedInputStream.<init>:(Ljava/io/InputStream;I)V
astore 2
2: aconst_null
astore 3
start local 3 3: aload 0
aload 2
invokevirtual com.sun.media.sound.StandardMidiFileReader.getSequence:(Ljava/io/InputStream;)Ljavax/sound/midi/Sequence;
astore 3
4: goto 8
StackMap locals: com.sun.media.sound.StandardMidiFileReader java.net.URL java.io.InputStream javax.sound.midi.Sequence
StackMap stack: java.lang.Throwable
5: astore 4
6: aload 2
invokevirtual java.io.InputStream.close:()V
7: aload 4
athrow
8: StackMap locals:
StackMap stack:
aload 2
invokevirtual java.io.InputStream.close:()V
9: aload 3
areturn
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 10 0 this Lcom/sun/media/sound/StandardMidiFileReader;
0 10 1 url Ljava/net/URL;
1 10 2 is Ljava/io/InputStream;
3 10 3 seq Ljavax/sound/midi/Sequence;
Exception table:
from to target type
3 5 5 any
Exceptions:
throws javax.sound.midi.InvalidMidiDataException, java.io.IOException
MethodParameters:
Name Flags
url
public javax.sound.midi.Sequence getSequence(java.io.File);
descriptor: (Ljava/io/File;)Ljavax/sound/midi/Sequence;
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=5, args_size=2
start local 0 start local 1 0: new java.io.FileInputStream
dup
aload 1
invokespecial java.io.FileInputStream.<init>:(Ljava/io/File;)V
astore 2
start local 2 1: new java.io.BufferedInputStream
dup
aload 2
sipush 1024
invokespecial java.io.BufferedInputStream.<init>:(Ljava/io/InputStream;I)V
astore 2
2: aconst_null
astore 3
start local 3 3: aload 0
aload 2
invokevirtual com.sun.media.sound.StandardMidiFileReader.getSequence:(Ljava/io/InputStream;)Ljavax/sound/midi/Sequence;
astore 3
4: goto 8
StackMap locals: com.sun.media.sound.StandardMidiFileReader java.io.File java.io.InputStream javax.sound.midi.Sequence
StackMap stack: java.lang.Throwable
5: astore 4
6: aload 2
invokevirtual java.io.InputStream.close:()V
7: aload 4
athrow
8: StackMap locals:
StackMap stack:
aload 2
invokevirtual java.io.InputStream.close:()V
9: aload 3
areturn
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 10 0 this Lcom/sun/media/sound/StandardMidiFileReader;
0 10 1 file Ljava/io/File;
1 10 2 is Ljava/io/InputStream;
3 10 3 seq Ljavax/sound/midi/Sequence;
Exception table:
from to target type
3 5 5 any
Exceptions:
throws javax.sound.midi.InvalidMidiDataException, java.io.IOException
MethodParameters:
Name Flags
file
}
SourceFile: "StandardMidiFileReader.java"