public final class com.sun.media.sound.WaveFileReader extends com.sun.media.sound.SunFileReader
minor version: 0
major version: 59
flags: flags: (0x0031) ACC_PUBLIC, ACC_FINAL, ACC_SUPER
this_class: com.sun.media.sound.WaveFileReader
super_class: com.sun.media.sound.SunFileReader
{
public void <init>();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
invokespecial com.sun.media.sound.SunFileReader.<init>:()V
return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lcom/sun/media/sound/WaveFileReader;
com.sun.media.sound.StandardFileFormat getAudioFileFormatImpl(java.io.InputStream);
descriptor: (Ljava/io/InputStream;)Lcom/sun/media/sound/StandardFileFormat;
flags: (0x0000)
Code:
stack=9, locals=25, args_size=2
start local 0 start local 1 0: iconst_0
istore 2
start local 2 1: iconst_0
istore 4
start local 4 2: iconst_0
istore 5
start local 5 3: aconst_null
astore 10
start local 10 4: new java.io.DataInputStream
dup
aload 1
invokespecial java.io.DataInputStream.<init>:(Ljava/io/InputStream;)V
astore 11
start local 11 5: aload 11
invokevirtual java.io.DataInputStream.readInt:()I
istore 12
start local 12 6: aload 0
aload 11
invokevirtual com.sun.media.sound.WaveFileReader.rllong:(Ljava/io/DataInputStream;)I
i2l
ldc 4294967295
land
lstore 13
start local 13 7: aload 11
invokevirtual java.io.DataInputStream.readInt:()I
istore 15
start local 15 8: lload 13
lconst_0
lcmp
ifgt 12
9: ldc -1
lstore 13
10: ldc -1
lstore 16
start local 16 11: goto 13
end local 16 12: StackMap locals: com.sun.media.sound.WaveFileReader java.io.InputStream int top int int top top top top javax.sound.sampled.AudioFormat$Encoding java.io.DataInputStream int long int
StackMap stack:
lload 13
ldc 8
ladd
lstore 16
start local 16 13: StackMap locals: long
StackMap stack:
iload 12
ldc 1380533830
if_icmpne 14
iload 15
ldc 1463899717
if_icmpeq 15
14: StackMap locals:
StackMap stack:
new javax.sound.sampled.UnsupportedAudioFileException
dup
ldc "not a WAVE file"
invokespecial javax.sound.sampled.UnsupportedAudioFileException.<init>:(Ljava/lang/String;)V
athrow
15: StackMap locals:
StackMap stack:
aload 11
invokevirtual java.io.DataInputStream.readInt:()I
istore 3
start local 3 16: iinc 2 4
17: iload 3
ldc 1718449184
if_icmpne 19
18: goto 26
19: StackMap locals: com.sun.media.sound.WaveFileReader java.io.InputStream int int int int top top top top javax.sound.sampled.AudioFormat$Encoding java.io.DataInputStream int long int long
StackMap stack:
aload 0
aload 11
invokevirtual com.sun.media.sound.WaveFileReader.rllong:(Ljava/io/DataInputStream;)I
istore 4
20: iinc 2 4
21: iload 4
iconst_2
irem
ifle 22
iinc 4 1
22: StackMap locals:
StackMap stack:
iload 2
aload 11
iload 4
invokevirtual java.io.DataInputStream.skipBytes:(I)I
iadd
istore 2
23: goto 15
end local 3 StackMap locals: com.sun.media.sound.WaveFileReader java.io.InputStream int top int int top top top top javax.sound.sampled.AudioFormat$Encoding java.io.DataInputStream int long int long
StackMap stack: java.io.EOFException
24: pop
25: new javax.sound.sampled.UnsupportedAudioFileException
dup
ldc "Not a valid WAV file"
invokespecial javax.sound.sampled.UnsupportedAudioFileException.<init>:(Ljava/lang/String;)V
athrow
start local 3 26: StackMap locals: com.sun.media.sound.WaveFileReader java.io.InputStream int int int int top top top top javax.sound.sampled.AudioFormat$Encoding java.io.DataInputStream int long int long
StackMap stack:
aload 0
aload 11
invokevirtual com.sun.media.sound.WaveFileReader.rllong:(Ljava/io/DataInputStream;)I
istore 4
27: iinc 2 4
28: iload 2
iload 4
iadd
istore 18
start local 18 29: aload 0
aload 11
invokevirtual com.sun.media.sound.WaveFileReader.rlshort:(Ljava/io/DataInputStream;)S
istore 5
iinc 2 2
30: iload 5
iconst_1
if_icmpne 32
31: getstatic javax.sound.sampled.AudioFormat$Encoding.PCM_SIGNED:Ljavax/sound/sampled/AudioFormat$Encoding;
astore 10
goto 37
32: StackMap locals: int
StackMap stack:
iload 5
bipush 6
if_icmpne 34
33: getstatic javax.sound.sampled.AudioFormat$Encoding.ALAW:Ljavax/sound/sampled/AudioFormat$Encoding;
astore 10
goto 37
34: StackMap locals:
StackMap stack:
iload 5
bipush 7
if_icmpne 36
35: getstatic javax.sound.sampled.AudioFormat$Encoding.ULAW:Ljavax/sound/sampled/AudioFormat$Encoding;
astore 10
goto 37
36: StackMap locals:
StackMap stack:
new javax.sound.sampled.UnsupportedAudioFileException
dup
ldc "Not a supported WAV file"
invokespecial javax.sound.sampled.UnsupportedAudioFileException.<init>:(Ljava/lang/String;)V
athrow
37: StackMap locals:
StackMap stack:
aload 0
aload 11
invokevirtual com.sun.media.sound.WaveFileReader.rlshort:(Ljava/io/DataInputStream;)S
istore 6
start local 6 38: iinc 2 2
39: iload 6
ifgt 41
40: new javax.sound.sampled.UnsupportedAudioFileException
dup
ldc "Invalid number of channels"
invokespecial javax.sound.sampled.UnsupportedAudioFileException.<init>:(Ljava/lang/String;)V
athrow
41: StackMap locals: com.sun.media.sound.WaveFileReader java.io.InputStream int int int int int top top top javax.sound.sampled.AudioFormat$Encoding java.io.DataInputStream int long int long int
StackMap stack:
aload 0
aload 11
invokevirtual com.sun.media.sound.WaveFileReader.rllong:(Ljava/io/DataInputStream;)I
i2l
lstore 7
start local 7 42: iinc 2 4
43: aload 0
aload 11
invokevirtual com.sun.media.sound.WaveFileReader.rllong:(Ljava/io/DataInputStream;)I
i2l
pop2
iinc 2 4
44: aload 0
aload 11
invokevirtual com.sun.media.sound.WaveFileReader.rlshort:(Ljava/io/DataInputStream;)S
pop
iinc 2 2
45: aload 0
aload 11
invokevirtual com.sun.media.sound.WaveFileReader.rlshort:(Ljava/io/DataInputStream;)S
istore 9
start local 9 46: iinc 2 2
47: iload 9
ifgt 49
48: new javax.sound.sampled.UnsupportedAudioFileException
dup
ldc "Invalid bitsPerSample"
invokespecial javax.sound.sampled.UnsupportedAudioFileException.<init>:(Ljava/lang/String;)V
athrow
49: StackMap locals: com.sun.media.sound.WaveFileReader java.io.InputStream int int int int int long int javax.sound.sampled.AudioFormat$Encoding java.io.DataInputStream int long int long int
StackMap stack:
iload 9
bipush 8
if_icmpne 51
aload 10
getstatic javax.sound.sampled.AudioFormat$Encoding.PCM_SIGNED:Ljavax/sound/sampled/AudioFormat$Encoding;
invokevirtual javax.sound.sampled.AudioFormat$Encoding.equals:(Ljava/lang/Object;)Z
ifeq 51
50: getstatic javax.sound.sampled.AudioFormat$Encoding.PCM_UNSIGNED:Ljavax/sound/sampled/AudioFormat$Encoding;
astore 10
51: StackMap locals:
StackMap stack:
iload 4
iconst_2
irem
ifeq 52
iinc 4 1
52: StackMap locals:
StackMap stack:
iload 18
iload 2
if_icmple 54
53: iload 2
aload 11
iload 18
iload 2
isub
invokevirtual java.io.DataInputStream.skipBytes:(I)I
iadd
istore 2
54: StackMap locals:
StackMap stack:
iconst_0
istore 2
55: StackMap locals:
StackMap stack:
aload 11
invokevirtual java.io.DataInputStream.readInt:()I
istore 19
start local 19 56: iinc 2 4
57: iload 19
ldc 1684108385
if_icmpne 59
58: goto 66
59: StackMap locals: int
StackMap stack:
aload 0
aload 11
invokevirtual com.sun.media.sound.WaveFileReader.rllong:(Ljava/io/DataInputStream;)I
istore 20
start local 20 60: iinc 2 4
61: iload 20
iconst_2
irem
ifle 62
iinc 20 1
62: StackMap locals: int
StackMap stack:
iload 2
aload 11
iload 20
invokevirtual java.io.DataInputStream.skipBytes:(I)I
iadd
istore 2
end local 20 end local 19 63: goto 55
StackMap locals: com.sun.media.sound.WaveFileReader java.io.InputStream int int int int int long int javax.sound.sampled.AudioFormat$Encoding java.io.DataInputStream int long int long int
StackMap stack: java.io.EOFException
64: pop
65: new javax.sound.sampled.UnsupportedAudioFileException
dup
ldc "Not a valid WAV file"
invokespecial javax.sound.sampled.UnsupportedAudioFileException.<init>:(Ljava/lang/String;)V
athrow
66: StackMap locals:
StackMap stack:
aload 0
aload 11
invokevirtual com.sun.media.sound.WaveFileReader.rllong:(Ljava/io/DataInputStream;)I
i2l
ldc 4294967295
land
lstore 19
start local 19 67: iinc 2 4
68: iload 9
iload 6
invokestatic com.sun.media.sound.WaveFileReader.calculatePCMFrameSize:(II)I
istore 21
start local 21 69: new javax.sound.sampled.AudioFormat
dup
aload 10
70: lload 7
l2f
71: iload 9
iload 6
72: iload 21
73: lload 7
l2f
iconst_0
74: invokespecial javax.sound.sampled.AudioFormat.<init>:(Ljavax/sound/sampled/AudioFormat$Encoding;FIIIFZ)V
astore 22
start local 22 75: lload 19
aload 22
invokevirtual javax.sound.sampled.AudioFormat.getFrameSize:()I
i2l
ldiv
lstore 23
start local 23 76: new com.sun.media.sound.WaveFileFormat
dup
getstatic javax.sound.sampled.AudioFileFormat$Type.WAVE:Ljavax/sound/sampled/AudioFileFormat$Type;
lload 16
77: aload 22
lload 23
78: invokespecial com.sun.media.sound.WaveFileFormat.<init>:(Ljavax/sound/sampled/AudioFileFormat$Type;JLjavax/sound/sampled/AudioFormat;J)V
areturn
end local 23 end local 22 end local 21 end local 19 end local 18 end local 16 end local 15 end local 13 end local 12 end local 11 end local 10 end local 9 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 79 0 this Lcom/sun/media/sound/WaveFileReader;
0 79 1 stream Ljava/io/InputStream;
1 79 2 nread I
16 24 3 fmt I
26 79 3 fmt I
2 79 4 length I
3 79 5 wav_type I
38 79 6 channels S
42 79 7 sampleRate J
46 79 9 sampleSizeInBits I
4 79 10 encoding Ljavax/sound/sampled/AudioFormat$Encoding;
5 79 11 dis Ljava/io/DataInputStream;
6 79 12 magic I
7 79 13 fileLength J
8 79 15 waveMagic I
11 12 16 totallength J
13 79 16 totallength J
29 79 18 endLength I
56 63 19 datahdr I
60 63 20 thisLength I
67 79 19 dataLength J
69 79 21 frameSize I
75 79 22 format Ljavax/sound/sampled/AudioFormat;
76 79 23 frameLength J
Exception table:
from to target type
15 18 24 Class java.io.EOFException
19 23 24 Class java.io.EOFException
55 58 64 Class java.io.EOFException
59 63 64 Class java.io.EOFException
Exceptions:
throws javax.sound.sampled.UnsupportedAudioFileException, java.io.IOException
MethodParameters:
Name Flags
stream final
public javax.sound.sampled.AudioInputStream getAudioInputStream(java.io.InputStream);
descriptor: (Ljava/io/InputStream;)Ljavax/sound/sampled/AudioInputStream;
flags: (0x1041) ACC_PUBLIC, ACC_BRIDGE, ACC_SYNTHETIC
Code:
stack=2, locals=2, args_size=2
0: aload 0
aload 1
invokespecial com.sun.media.sound.SunFileReader.getAudioInputStream:(Ljava/io/InputStream;)Ljavax/sound/sampled/AudioInputStream;
areturn
LocalVariableTable:
Start End Slot Name Signature
Exceptions:
throws javax.sound.sampled.UnsupportedAudioFileException, java.io.IOException
}
SourceFile: "WaveFileReader.java"
InnerClasses:
public Type = javax.sound.sampled.AudioFileFormat$Type of javax.sound.sampled.AudioFileFormat
public Encoding = javax.sound.sampled.AudioFormat$Encoding of javax.sound.sampled.AudioFormat