# Uses of Class
javax.sound.sampled.UnsupportedAudioFileException

Packages that use UnsupportedAudioFileException
Package
Description
javax.sound.sampled
Provides interfaces and classes for capture, processing, and playback of sampled audio data.
javax.sound.sampled.spi
Supplies abstract classes for service providers to subclass when offering new audio devices, sound file readers and writers, or audio format converters.

## Uses of UnsupportedAudioFileException in javax.sound.sampled

Methods in javax.sound.sampled that throw UnsupportedAudioFileException
Modifier and Type
Method
Description
`static AudioFileFormat`
AudioSystem.`getAudioFileFormat(File file)`
Obtains the audio file format of the specified `File`.
`static AudioFileFormat`
AudioSystem.`getAudioFileFormat(InputStream stream)`
Obtains the audio file format of the provided input stream.
`static AudioFileFormat`
AudioSystem.`getAudioFileFormat(URL url)`
Obtains the audio file format of the specified `URL`.
`static AudioInputStream`
AudioSystem.`getAudioInputStream(File file)`
Obtains an audio input stream from the provided `File`.
`static AudioInputStream`
AudioSystem.`getAudioInputStream(InputStream stream)`
Obtains an audio input stream from the provided input stream.
`static AudioInputStream`
AudioSystem.`getAudioInputStream(URL url)`
Obtains an audio input stream from the `URL` provided.

## Uses of UnsupportedAudioFileException in javax.sound.sampled.spi

Methods in javax.sound.sampled.spi that throw UnsupportedAudioFileException
Modifier and Type
Method
Description
`abstract AudioFileFormat`
AudioFileReader.`getAudioFileFormat(File file)`
Obtains the audio file format of the `File` provided.
`abstract AudioFileFormat`
AudioFileReader.`getAudioFileFormat(InputStream stream)`
Obtains the audio file format of the input stream provided.
`abstract AudioFileFormat`
AudioFileReader.`getAudioFileFormat(URL url)`
Obtains the audio file format of the `URL` provided.
`abstract AudioInputStream`
AudioFileReader.`getAudioInputStream(File file)`
Obtains an audio input stream from the `File` provided.
`abstract AudioInputStream`
AudioFileReader.`getAudioInputStream(InputStream stream)`
Obtains an audio input stream from the input stream provided.
`abstract AudioInputStream`
AudioFileReader.`getAudioInputStream(URL url)`
Obtains an audio input stream from the `URL` provided.