public class SpeexAudioFileWriter
extends javax.sound.sampled.spi.AudioFileWriter
| Modifier and Type | Field and Description |
|---|---|
static javax.sound.sampled.AudioFileFormat.Type[] |
NO_FORMAT |
static javax.sound.sampled.AudioFileFormat.Type[] |
SPEEX_FORMAT |
| Constructor and Description |
|---|
SpeexAudioFileWriter() |
| Modifier and Type | Method and Description |
|---|---|
javax.sound.sampled.AudioFileFormat.Type[] |
getAudioFileTypes()
Obtains the file types for which file writing support is provided by this audio file writer.
|
javax.sound.sampled.AudioFileFormat.Type[] |
getAudioFileTypes(javax.sound.sampled.AudioInputStream stream)
Obtains the file types that this audio file writer can write from the
audio input stream specified.
|
int |
write(javax.sound.sampled.AudioInputStream stream,
javax.sound.sampled.AudioFileFormat.Type fileType,
java.io.File out)
Writes a stream of bytes representing an audio file of the file format
indicated to the external file provided.
|
int |
write(javax.sound.sampled.AudioInputStream stream,
javax.sound.sampled.AudioFileFormat.Type fileType,
java.io.OutputStream out)
Writes a stream of bytes representing an audio file of the file type
indicated to the output stream provided.
|
private int |
write(javax.sound.sampled.AudioInputStream stream,
java.io.OutputStream out)
Writes a stream of bytes representing an audio file of the file type
indicated to the output stream provided.
|
public static final javax.sound.sampled.AudioFileFormat.Type[] NO_FORMAT
public static final javax.sound.sampled.AudioFileFormat.Type[] SPEEX_FORMAT
public javax.sound.sampled.AudioFileFormat.Type[] getAudioFileTypes()
getAudioFileTypes in class javax.sound.sampled.spi.AudioFileWriterpublic javax.sound.sampled.AudioFileFormat.Type[] getAudioFileTypes(javax.sound.sampled.AudioInputStream stream)
getAudioFileTypes in class javax.sound.sampled.spi.AudioFileWriterstream - - the audio input stream for which audio file type support
is queried.public int write(javax.sound.sampled.AudioInputStream stream,
javax.sound.sampled.AudioFileFormat.Type fileType,
java.io.OutputStream out)
throws java.io.IOException
write in class javax.sound.sampled.spi.AudioFileWriterstream - - the audio input stream containing audio data to be written
to the output stream.fileType - - file type to be written to the output stream.out - - stream to which the file data should be written.java.io.IOException - - if an I/O exception occurs.java.lang.IllegalArgumentException - - if the file type is not supported by the system.AudioFileWriter.isFileTypeSupported(AudioFileFormat.Type, AudioInputStream),
getAudioFileTypes()public int write(javax.sound.sampled.AudioInputStream stream,
javax.sound.sampled.AudioFileFormat.Type fileType,
java.io.File out)
throws java.io.IOException
write in class javax.sound.sampled.spi.AudioFileWriterstream - - the audio input stream containing audio data to be written
to the file.fileType - - file type to be written to the file.out - - external file to which the file data should be written.java.io.IOException - - if an I/O exception occurs.java.lang.IllegalArgumentException - - if the file format is not supported by the systemAudioFileWriter.isFileTypeSupported(javax.sound.sampled.AudioFileFormat.Type),
getAudioFileTypes()private int write(javax.sound.sampled.AudioInputStream stream,
java.io.OutputStream out)
throws java.io.IOException
stream - - the audio input stream containing audio data to be written
to the output stream.out - - stream to which the file data should be written.java.io.IOException - - if an I/O exception occurs.Copyright © 1999-2004 Wimba S.A. All Rights Reserved.