net.beadsproject.beads.data.audiofile
Class JavaSoundAudioFileIOImplementation

java.lang.Object
  extended by net.beadsproject.beads.data.audiofile.AudioFileIOImplementation
      extended by net.beadsproject.beads.data.audiofile.JavaSoundAudioFileIOImplementation

public class JavaSoundAudioFileIOImplementation
extends AudioFileIOImplementation

The Class JavaSoundAudioFileIOImplementation is the default AudioFileIOImplementation and returns a JavaSoundAudioFile.


Constructor Summary
JavaSoundAudioFileIOImplementation()
           
 
Method Summary
 AudioFile getAudioFile(java.io.InputStream is)
          Retrieve an audio file from a given InputStream.
 AudioFile getAudioFile(java.lang.String filename)
          Retrieve an audio file from a given filename String.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JavaSoundAudioFileIOImplementation

public JavaSoundAudioFileIOImplementation()
Method Detail

getAudioFile

public AudioFile getAudioFile(java.lang.String filename)
                       throws java.io.IOException,
                              javax.sound.sampled.UnsupportedAudioFileException
Description copied from class: AudioFileIOImplementation
Retrieve an audio file from a given filename String.

Specified by:
getAudioFile in class AudioFileIOImplementation
Parameters:
filename - the filename.
Returns:
the audio file
Throws:
java.io.IOException - Signals that an I/O exception has occurred.
javax.sound.sampled.UnsupportedAudioFileException - an unsupported audio file exception.

getAudioFile

public AudioFile getAudioFile(java.io.InputStream is)
                       throws java.io.IOException,
                              javax.sound.sampled.UnsupportedAudioFileException
Description copied from class: AudioFileIOImplementation
Retrieve an audio file from a given InputStream.

Specified by:
getAudioFile in class AudioFileIOImplementation
Parameters:
is - the InputStream.
Returns:
the audio file
Throws:
java.io.IOException - Signals that an I/O exception has occurred.
javax.sound.sampled.UnsupportedAudioFileException - an unsupported audio file exception.