public abstract class AudioFileWriter extends Object
| Constructor and Description |
|---|
AudioFileWriter()
|
| Modifier and Type | Method and Description |
|---|---|
abstract AudioFileFormat |
getAudioFileTypes()
Obtains the file types for which file writing support is provided by this audio file writer.
|
abstract AudioFileFormat |
getAudioFileTypes(AudioInputStream
Obtains the file types that this audio file writer can write from the audio input stream specified.
|
boolean |
isFileTypeSupported(AudioFileFormat
Indicates whether file writing support for the specified file type is provided by this audio file writer.
|
boolean |
isFileTypeSupported(AudioFileFormat
Indicates whether an audio file of the type specified can be written from the audio input stream indicated.
|
abstract int |
write(AudioInputStream
Writes a stream of bytes representing an audio file of the file format indicated to the external file provided.
|
abstract int |
write(AudioInputStream
Writes a stream of bytes representing an audio file of the file type indicated to the output stream provided.
|
public abstract AudioFileFormat.Type [] getAudioFileTypes()
public boolean isFileTypeSupported(AudioFileFormat.Type fileType)
fileType - the file type for which write capabilities are queried
true if the file type is supported, otherwise
false
public abstract AudioFileFormat.Type [] getAudioFileTypes(AudioInputStream stream)
stream - the audio input stream for which audio file type support is queried
public boolean isFileTypeSupported(AudioFileFormat.Type fileType, AudioInputStream stream)
fileType - file type for which write capabilities are queried
stream - for which file writing support is queried
true if the file type is supported for this audio input stream, otherwise
false
public abstract int write(AudioInputStreamstream, AudioFileFormat .Type fileType, OutputStream out) throws IOException
AudioSystem.NOT_SPECIFIED.
stream - 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
IOException - if an I/O exception occurs
IllegalArgumentException - if the file type is not supported by the system
isFileTypeSupported(AudioFileFormat.Type, AudioInputStream),
getAudioFileTypes()
public abstract int write(AudioInputStreamstream, AudioFileFormat .Type fileType, File out) throws IOException
stream - 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
IOException - if an I/O exception occurs
IllegalArgumentException - if the file format is not supported by the system
isFileTypeSupported(javax.sound.sampled.AudioFileFormat.Type),
getAudioFileTypes()