net.beadsproject.beads.data.audiofile
Class AudioFileIOImplementation

java.lang.Object
  extended by net.beadsproject.beads.data.audiofile.AudioFileIOImplementation
Direct Known Subclasses:
JavaSoundAudioFileIOImplementation

public abstract class AudioFileIOImplementation
extends java.lang.Object

The Class AudioFileIOImplementation provides methods for how the system grabs an AudioFile from a file name or an InputStream. The default is JavaSoundAudioFileIOImplementation.


Constructor Summary
AudioFileIOImplementation()
           
 
Method Summary
abstract  AudioFile getAudioFile(java.io.InputStream is)
          Retrieve an audio file from a given InputStream.
abstract  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

AudioFileIOImplementation

public AudioFileIOImplementation()
Method Detail

getAudioFile

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

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 abstract AudioFile getAudioFile(java.io.InputStream is)
                                throws java.io.IOException,
                                       javax.sound.sampled.UnsupportedAudioFileException
Retrieve an audio file from a given InputStream.

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.