Uses of Class javax.sound.sampled.UnsupportedAudioFileException (Java Platform SE 8 )
Date: 2026-01-21

## 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 and 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 and 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.

Submit a bug or feature
For further API reference and developer documentation, see Java SE Documentation. That documentation contains more detailed, developer-targeted descriptions, with conceptual overviews, definitions of terms, workarounds, and working code examples.
Copyright © 1993, 2026, Oracle and/or its affiliates. All rights reserved. Use is subject to license terms. Also see the documentation redistribution policy.