public class AiffFileWriter
extends javax.sound.sampled.spi.AudioFileWriter
Modifier and Type | Field and Description |
---|---|
protected static int |
bisBufferSize |
protected static int |
bufferSize |
Constructor and Description |
---|
AiffFileWriter()
Constructs a new AiffFileWriter object.
|
Modifier and Type | Method and Description |
---|---|
protected int |
big2little(int i)
big2little
Protected helper method to swap the order of bytes in a 32 bit int
|
protected short |
big2littleShort(short i)
big2little
Protected helper method to swap the order of bytes in a 16 bit short
|
javax.sound.sampled.AudioFileFormat.Type[] |
getAudioFileTypes() |
javax.sound.sampled.AudioFileFormat.Type[] |
getAudioFileTypes(javax.sound.sampled.AudioInputStream stream) |
protected int |
rllong(java.io.DataInputStream dis)
rllong
Protected helper method to read 64 bits and changing the order of
each bytes.
|
protected short |
rlshort(java.io.DataInputStream dis)
rlshort
Protected helper method to read 16 bits value.
|
int |
write(javax.sound.sampled.AudioInputStream stream,
javax.sound.sampled.AudioFileFormat.Type fileType,
java.io.File out) |
int |
write(javax.sound.sampled.AudioInputStream stream,
javax.sound.sampled.AudioFileFormat.Type fileType,
java.io.OutputStream out) |
protected static final int bufferSize
protected static final int bisBufferSize
public javax.sound.sampled.AudioFileFormat.Type[] getAudioFileTypes(javax.sound.sampled.AudioInputStream stream)
public int write(javax.sound.sampled.AudioInputStream stream, javax.sound.sampled.AudioFileFormat.Type fileType, java.io.OutputStream out) throws java.io.IOException
java.io.IOException
public int write(javax.sound.sampled.AudioInputStream stream, javax.sound.sampled.AudioFileFormat.Type fileType, java.io.File out) throws java.io.IOException
java.io.IOException
public javax.sound.sampled.AudioFileFormat.Type[] getAudioFileTypes()
getAudioFileTypes
in class javax.sound.sampled.spi.AudioFileWriter
protected int rllong(java.io.DataInputStream dis) throws java.io.IOException
DataInputStream
- java.io.IOException
protected int big2little(int i)
int
- protected short rlshort(java.io.DataInputStream dis) throws java.io.IOException
DataInputStream
- java.io.IOException
protected short big2littleShort(short i)
int
-