
 
        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 
AudioSystem.NOT_SPECIFIED.
        
        
Returns:
    the number of bytes written to the output stream 
Parameters:
 - 
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
Throws:
  - 
IOException - if an I/O exception occurs
  - 
IllegalArgumentException - if the file type is not supported by
 the system
See Also:
  AudioFileWriter.isFileTypeSupported(AudioFileFormat.Type, AudioInputStream), 
  
AudioFileWriter.getAudioFileTypes(),