public class AuFileWriter
extends javax.sound.sampled.spi.AudioFileWriter
| Modifier and Type | Field and Description |
|---|---|
protected static int |
bisBufferSize |
protected static int |
bufferSize |
static int |
UNKNOWN_SIZE |
| Constructor and Description |
|---|
AuFileWriter()
Constructs a new AuFileWriter 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) |
public static final int UNKNOWN_SIZE
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.IOExceptionpublic int write(javax.sound.sampled.AudioInputStream stream,
javax.sound.sampled.AudioFileFormat.Type fileType,
java.io.File out)
throws java.io.IOException
java.io.IOExceptionpublic javax.sound.sampled.AudioFileFormat.Type[] getAudioFileTypes()
getAudioFileTypes in class javax.sound.sampled.spi.AudioFileWriterprotected int rllong(java.io.DataInputStream dis)
throws java.io.IOException
DataInputStream - java.io.IOExceptionprotected int big2little(int i)
int - protected short rlshort(java.io.DataInputStream dis)
throws java.io.IOException
DataInputStream - java.io.IOExceptionprotected short big2littleShort(short i)
int -