Uses of Class javax.sound.midi.MidiFileFormat (Java Platform SE 8 )
Date: 2026-06-25

## Uses of Class
javax.sound.midi.MidiFileFormat

- Packages that use MidiFileFormat
  Package | Description
  --- | ---
  javax.sound.midi | Provides interfaces and classes for I/O, sequencing, and synthesis of MIDI (Musical Instrument Digital Interface) data.
  javax.sound.midi.spi | Supplies interfaces for service providers to implement when offering new MIDI devices, MIDI file readers and writers, or sound bank readers.

- - ### Uses of MidiFileFormat in javax.sound.midi

    Methods in javax.sound.midi that return MidiFileFormat
    Modifier and Type | Method and Description
    --- | ---
    `static MidiFileFormat` | MidiSystem.`getMidiFileFormat(File file)` Obtains the MIDI file format of the specified `File`.
    `static MidiFileFormat` | MidiSystem.`getMidiFileFormat(InputStream stream)` Obtains the MIDI file format of the data in the specified input stream.
    `static MidiFileFormat` | MidiSystem.`getMidiFileFormat(URL url)` Obtains the MIDI file format of the data in the specified URL.

  - ### Uses of MidiFileFormat in javax.sound.midi.spi

    Methods in javax.sound.midi.spi that return MidiFileFormat
    Modifier and Type | Method and Description
    --- | ---
    `abstract MidiFileFormat` | MidiFileReader.`getMidiFileFormat(File file)` Obtains the MIDI file format of the `File` provided.
    `abstract MidiFileFormat` | MidiFileReader.`getMidiFileFormat(InputStream stream)` Obtains the MIDI file format of the input stream provided.
    `abstract MidiFileFormat` | MidiFileReader.`getMidiFileFormat(URL url)` Obtains the MIDI file format of 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.