Writes a stream of bytes representing an audio file of the file type
indicated to the output stream provided. Some file types require that
the length be written into the file header, and cannot be written from
start to finish unless the length is known in advance. An attempt
to write such a file type will fail with an IOException if the length in
the audio file format is
{@link javax.sound.sampled.AudioSystem#NOT_SPECIFIED AudioSystem.NOT_SPECIFIED}.
param
stream the audio input stream containing audio data to be
written to the output stream
param
fileType file type to be written to the output stream
param
out stream to which the file data should be written
return
the number of bytes written to the output stream
throws
IOException if an I/O exception occurs
throws
IllegalArgumentException if the file type is not supported by
the system