public final class com.sun.media.sound.WaveFloatFileWriter extends javax.sound.sampled.spi.AudioFileWriter
minor version: 0
major version: 59
flags: flags: (0x0031) ACC_PUBLIC, ACC_FINAL, ACC_SUPER
this_class: com.sun.media.sound.WaveFloatFileWriter
super_class: javax.sound.sampled.spi.AudioFileWriter
{
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.sampled.spi.AudioFileWriter.<init>:()V
return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lcom/sun/media/sound/WaveFloatFileWriter;
public javax.sound.sampled.AudioFileFormat$Type[] getAudioFileTypes();
descriptor: ()[Ljavax/sound/sampled/AudioFileFormat$Type;
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=1, args_size=1
start local 0 0: iconst_1
anewarray javax.sound.sampled.AudioFileFormat$Type
dup
iconst_0
getstatic javax.sound.sampled.AudioFileFormat$Type.WAVE:Ljavax/sound/sampled/AudioFileFormat$Type;
aastore
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lcom/sun/media/sound/WaveFloatFileWriter;
public javax.sound.sampled.AudioFileFormat$Type[] getAudioFileTypes(javax.sound.sampled.AudioInputStream);
descriptor: (Ljavax/sound/sampled/AudioInputStream;)[Ljavax/sound/sampled/AudioFileFormat$Type;
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=2, args_size=2
start local 0 start local 1 0: aload 1
invokevirtual javax.sound.sampled.AudioInputStream.getFormat:()Ljavax/sound/sampled/AudioFormat;
invokevirtual javax.sound.sampled.AudioFormat.getEncoding:()Ljavax/sound/sampled/AudioFormat$Encoding;
1: getstatic com.sun.media.sound.AudioFloatConverter.PCM_FLOAT:Ljavax/sound/sampled/AudioFormat$Encoding;
2: invokevirtual javax.sound.sampled.AudioFormat$Encoding.equals:(Ljava/lang/Object;)Z
3: ifne 5
4: iconst_0
anewarray javax.sound.sampled.AudioFileFormat$Type
areturn
5: StackMap locals:
StackMap stack:
iconst_1
anewarray javax.sound.sampled.AudioFileFormat$Type
dup
iconst_0
getstatic javax.sound.sampled.AudioFileFormat$Type.WAVE:Ljavax/sound/sampled/AudioFileFormat$Type;
aastore
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 6 0 this Lcom/sun/media/sound/WaveFloatFileWriter;
0 6 1 stream Ljavax/sound/sampled/AudioInputStream;
MethodParameters:
Name Flags
stream
private void checkFormat(javax.sound.sampled.AudioFileFormat$Type, javax.sound.sampled.AudioInputStream);
descriptor: (Ljavax/sound/sampled/AudioFileFormat$Type;Ljavax/sound/sampled/AudioInputStream;)V
flags: (0x0002) ACC_PRIVATE
Code:
stack=5, locals=3, args_size=3
start local 0 start local 1 start local 2 0: getstatic javax.sound.sampled.AudioFileFormat$Type.WAVE:Ljavax/sound/sampled/AudioFileFormat$Type;
aload 1
invokevirtual javax.sound.sampled.AudioFileFormat$Type.equals:(Ljava/lang/Object;)Z
ifne 4
1: new java.lang.IllegalArgumentException
dup
new java.lang.StringBuilder
dup
ldc "File type "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 1
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/Object;)Ljava/lang/StringBuilder;
2: ldc " not supported."
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
3: invokespecial java.lang.IllegalArgumentException.<init>:(Ljava/lang/String;)V
athrow
4: StackMap locals:
StackMap stack:
aload 2
invokevirtual javax.sound.sampled.AudioInputStream.getFormat:()Ljavax/sound/sampled/AudioFormat;
invokevirtual javax.sound.sampled.AudioFormat.getEncoding:()Ljavax/sound/sampled/AudioFormat$Encoding;
5: getstatic com.sun.media.sound.AudioFloatConverter.PCM_FLOAT:Ljavax/sound/sampled/AudioFormat$Encoding;
6: invokevirtual javax.sound.sampled.AudioFormat$Encoding.equals:(Ljava/lang/Object;)Z
7: ifne 11
8: new java.lang.IllegalArgumentException
dup
new java.lang.StringBuilder
dup
ldc "File format "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
9: aload 2
invokevirtual javax.sound.sampled.AudioInputStream.getFormat:()Ljavax/sound/sampled/AudioFormat;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/Object;)Ljava/lang/StringBuilder;
ldc " not supported."
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
10: invokespecial java.lang.IllegalArgumentException.<init>:(Ljava/lang/String;)V
athrow
11: StackMap locals:
StackMap stack:
return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 12 0 this Lcom/sun/media/sound/WaveFloatFileWriter;
0 12 1 type Ljavax/sound/sampled/AudioFileFormat$Type;
0 12 2 stream Ljavax/sound/sampled/AudioInputStream;
MethodParameters:
Name Flags
type
stream
public void write(javax.sound.sampled.AudioInputStream, com.sun.media.sound.RIFFWriter);
descriptor: (Ljavax/sound/sampled/AudioInputStream;Lcom/sun/media/sound/RIFFWriter;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=8, args_size=3
start local 0 start local 1 start local 2 0: aload 2
ldc "fmt "
invokevirtual com.sun.media.sound.RIFFWriter.writeChunk:(Ljava/lang/String;)Lcom/sun/media/sound/RIFFWriter;
astore 3
start local 3 1: aload 1
invokevirtual javax.sound.sampled.AudioInputStream.getFormat:()Ljavax/sound/sampled/AudioFormat;
astore 4
start local 4 2: aload 3
iconst_3
invokevirtual com.sun.media.sound.RIFFWriter.writeUnsignedShort:(I)V
3: aload 3
aload 4
invokevirtual javax.sound.sampled.AudioFormat.getChannels:()I
invokevirtual com.sun.media.sound.RIFFWriter.writeUnsignedShort:(I)V
4: aload 3
aload 4
invokevirtual javax.sound.sampled.AudioFormat.getSampleRate:()F
f2i
i2l
invokevirtual com.sun.media.sound.RIFFWriter.writeUnsignedInt:(J)V
5: aload 3
aload 4
invokevirtual javax.sound.sampled.AudioFormat.getFrameRate:()F
f2i
6: aload 4
invokevirtual javax.sound.sampled.AudioFormat.getFrameSize:()I
imul
i2l
7: invokevirtual com.sun.media.sound.RIFFWriter.writeUnsignedInt:(J)V
8: aload 3
aload 4
invokevirtual javax.sound.sampled.AudioFormat.getFrameSize:()I
invokevirtual com.sun.media.sound.RIFFWriter.writeUnsignedShort:(I)V
9: aload 3
aload 4
invokevirtual javax.sound.sampled.AudioFormat.getSampleSizeInBits:()I
invokevirtual com.sun.media.sound.RIFFWriter.writeUnsignedShort:(I)V
10: aload 3
invokevirtual com.sun.media.sound.RIFFWriter.close:()V
11: aload 2
ldc "data"
invokevirtual com.sun.media.sound.RIFFWriter.writeChunk:(Ljava/lang/String;)Lcom/sun/media/sound/RIFFWriter;
astore 5
start local 5 12: sipush 1024
newarray 8
astore 6
start local 6 13: goto 15
start local 7 14: StackMap locals: com.sun.media.sound.WaveFloatFileWriter javax.sound.sampled.AudioInputStream com.sun.media.sound.RIFFWriter com.sun.media.sound.RIFFWriter javax.sound.sampled.AudioFormat com.sun.media.sound.RIFFWriter byte[] int
StackMap stack:
aload 5
aload 6
iconst_0
iload 7
invokevirtual com.sun.media.sound.RIFFWriter.write:([BII)V
end local 7 15: StackMap locals:
StackMap stack:
aload 1
aload 6
iconst_0
aload 6
arraylength
invokevirtual javax.sound.sampled.AudioInputStream.read:([BII)I
dup
istore 7
start local 7 16: iconst_m1
if_icmpne 14
17: aload 5
invokevirtual com.sun.media.sound.RIFFWriter.close:()V
18: return
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 19 0 this Lcom/sun/media/sound/WaveFloatFileWriter;
0 19 1 stream Ljavax/sound/sampled/AudioInputStream;
0 19 2 writer Lcom/sun/media/sound/RIFFWriter;
1 19 3 fmt_chunk Lcom/sun/media/sound/RIFFWriter;
2 19 4 format Ljavax/sound/sampled/AudioFormat;
12 19 5 data_chunk Lcom/sun/media/sound/RIFFWriter;
13 19 6 buff [B
14 15 7 len I
16 19 7 len I
Exceptions:
throws java.io.IOException
MethodParameters:
Name Flags
stream
writer
private javax.sound.sampled.AudioInputStream toLittleEndian(javax.sound.sampled.AudioInputStream);
descriptor: (Ljavax/sound/sampled/AudioInputStream;)Ljavax/sound/sampled/AudioInputStream;
flags: (0x0002) ACC_PRIVATE
Code:
stack=9, locals=4, args_size=2
start local 0 start local 1 0: aload 1
invokevirtual javax.sound.sampled.AudioInputStream.getFormat:()Ljavax/sound/sampled/AudioFormat;
astore 2
start local 2 1: new javax.sound.sampled.AudioFormat
dup
aload 2
invokevirtual javax.sound.sampled.AudioFormat.getEncoding:()Ljavax/sound/sampled/AudioFormat$Encoding;
aload 2
2: invokevirtual javax.sound.sampled.AudioFormat.getSampleRate:()F
aload 2
invokevirtual javax.sound.sampled.AudioFormat.getSampleSizeInBits:()I
aload 2
3: invokevirtual javax.sound.sampled.AudioFormat.getChannels:()I
aload 2
invokevirtual javax.sound.sampled.AudioFormat.getFrameSize:()I
aload 2
invokevirtual javax.sound.sampled.AudioFormat.getFrameRate:()F
4: iconst_0
5: invokespecial javax.sound.sampled.AudioFormat.<init>:(Ljavax/sound/sampled/AudioFormat$Encoding;FIIIFZ)V
astore 3
start local 3 6: aload 3
aload 1
invokestatic javax.sound.sampled.AudioSystem.getAudioInputStream:(Ljavax/sound/sampled/AudioFormat;Ljavax/sound/sampled/AudioInputStream;)Ljavax/sound/sampled/AudioInputStream;
areturn
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 7 0 this Lcom/sun/media/sound/WaveFloatFileWriter;
0 7 1 ais Ljavax/sound/sampled/AudioInputStream;
1 7 2 format Ljavax/sound/sampled/AudioFormat;
6 7 3 targetFormat Ljavax/sound/sampled/AudioFormat;
MethodParameters:
Name Flags
ais
public int write(javax.sound.sampled.AudioInputStream, javax.sound.sampled.AudioFileFormat$Type, java.io.OutputStream);
descriptor: (Ljavax/sound/sampled/AudioInputStream;Ljavax/sound/sampled/AudioFileFormat$Type;Ljava/io/OutputStream;)I
flags: (0x0001) ACC_PUBLIC
Code:
stack=5, locals=6, args_size=4
start local 0 start local 1 start local 2 start local 3 0: aload 0
aload 2
aload 1
invokevirtual com.sun.media.sound.WaveFloatFileWriter.checkFormat:(Ljavax/sound/sampled/AudioFileFormat$Type;Ljavax/sound/sampled/AudioInputStream;)V
1: aload 1
invokevirtual javax.sound.sampled.AudioInputStream.getFormat:()Ljavax/sound/sampled/AudioFormat;
invokevirtual javax.sound.sampled.AudioFormat.isBigEndian:()Z
ifeq 3
2: aload 0
aload 1
invokevirtual com.sun.media.sound.WaveFloatFileWriter.toLittleEndian:(Ljavax/sound/sampled/AudioInputStream;)Ljavax/sound/sampled/AudioInputStream;
astore 1
3: StackMap locals:
StackMap stack:
new com.sun.media.sound.RIFFWriter
dup
new com.sun.media.sound.WaveFloatFileWriter$NoCloseOutputStream
dup
aload 3
invokespecial com.sun.media.sound.WaveFloatFileWriter$NoCloseOutputStream.<init>:(Ljava/io/OutputStream;)V
ldc "WAVE"
invokespecial com.sun.media.sound.RIFFWriter.<init>:(Ljava/io/OutputStream;Ljava/lang/String;)V
astore 4
start local 4 4: aload 0
aload 1
aload 4
invokevirtual com.sun.media.sound.WaveFloatFileWriter.write:(Ljavax/sound/sampled/AudioInputStream;Lcom/sun/media/sound/RIFFWriter;)V
5: aload 4
invokevirtual com.sun.media.sound.RIFFWriter.getFilePointer:()J
l2i
istore 5
start local 5 6: aload 4
invokevirtual com.sun.media.sound.RIFFWriter.close:()V
7: iload 5
ireturn
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 8 0 this Lcom/sun/media/sound/WaveFloatFileWriter;
0 8 1 stream Ljavax/sound/sampled/AudioInputStream;
0 8 2 fileType Ljavax/sound/sampled/AudioFileFormat$Type;
0 8 3 out Ljava/io/OutputStream;
4 8 4 writer Lcom/sun/media/sound/RIFFWriter;
6 8 5 fpointer I
Exceptions:
throws java.io.IOException
MethodParameters:
Name Flags
stream
fileType
out
public int write(javax.sound.sampled.AudioInputStream, javax.sound.sampled.AudioFileFormat$Type, java.io.File);
descriptor: (Ljavax/sound/sampled/AudioInputStream;Ljavax/sound/sampled/AudioFileFormat$Type;Ljava/io/File;)I
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=6, args_size=4
start local 0 start local 1 start local 2 start local 3 0: aload 0
aload 2
aload 1
invokevirtual com.sun.media.sound.WaveFloatFileWriter.checkFormat:(Ljavax/sound/sampled/AudioFileFormat$Type;Ljavax/sound/sampled/AudioInputStream;)V
1: aload 1
invokevirtual javax.sound.sampled.AudioInputStream.getFormat:()Ljavax/sound/sampled/AudioFormat;
invokevirtual javax.sound.sampled.AudioFormat.isBigEndian:()Z
ifeq 3
2: aload 0
aload 1
invokevirtual com.sun.media.sound.WaveFloatFileWriter.toLittleEndian:(Ljavax/sound/sampled/AudioInputStream;)Ljavax/sound/sampled/AudioInputStream;
astore 1
3: StackMap locals:
StackMap stack:
new com.sun.media.sound.RIFFWriter
dup
aload 3
ldc "WAVE"
invokespecial com.sun.media.sound.RIFFWriter.<init>:(Ljava/io/File;Ljava/lang/String;)V
astore 4
start local 4 4: aload 0
aload 1
aload 4
invokevirtual com.sun.media.sound.WaveFloatFileWriter.write:(Ljavax/sound/sampled/AudioInputStream;Lcom/sun/media/sound/RIFFWriter;)V
5: aload 4
invokevirtual com.sun.media.sound.RIFFWriter.getFilePointer:()J
l2i
istore 5
start local 5 6: aload 4
invokevirtual com.sun.media.sound.RIFFWriter.close:()V
7: iload 5
ireturn
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 8 0 this Lcom/sun/media/sound/WaveFloatFileWriter;
0 8 1 stream Ljavax/sound/sampled/AudioInputStream;
0 8 2 fileType Ljavax/sound/sampled/AudioFileFormat$Type;
0 8 3 out Ljava/io/File;
4 8 4 writer Lcom/sun/media/sound/RIFFWriter;
6 8 5 fpointer I
Exceptions:
throws java.io.IOException
MethodParameters:
Name Flags
stream
fileType
out
}
SourceFile: "WaveFloatFileWriter.java"
NestMembers:
com.sun.media.sound.WaveFloatFileWriter$NoCloseOutputStream
InnerClasses:
private NoCloseOutputStream = com.sun.media.sound.WaveFloatFileWriter$NoCloseOutputStream of com.sun.media.sound.WaveFloatFileWriter
public Type = javax.sound.sampled.AudioFileFormat$Type of javax.sound.sampled.AudioFileFormat
public Encoding = javax.sound.sampled.AudioFormat$Encoding of javax.sound.sampled.AudioFormat