Keine Cache-Version

Caching deaktiviert Standardeinstellung für diese Seite:aktiviert (code LNG204)
Wenn die Anzeige zu langsam ist, können Sie den Benutzermodus deaktivieren, um die zwischengespeicherte Version anzuzeigen.
javax.sound.midi.spi

Class MidiFileReader


  • public abstract class MidiFileReader
    extends Object
    A MidiFileReader supplies MIDI file-reading services. Classes implementing this interface can parse the format information from one or more types of MIDI file, and can produce a Sequence object from files of these types.
    Since:
    1.3
    • Constructor Detail

      • MidiFileReader

        public MidiFileReader()
    • Method Detail

      • getMidiFileFormat

        public abstract MidiFileFormat getMidiFileFormat(InputStream stream)
                                                  throws InvalidMidiDataException,
                                                         IOException
        Obtains the MIDI file format of the input stream provided. The stream must point to valid MIDI file data. In general, MIDI file readers may need to read some data from the stream before determining whether they support it. These parsers must be able to mark the stream, read enough data to determine whether they support the stream, and, if not, reset the stream's read pointer to its original position. If the input stream does not support this, this method may fail with an IOException.
        Parameters:
        stream - the input stream from which file format information should be extracted
        Returns:
        a MidiFileFormat object describing the MIDI file format
        Throws:
        InvalidMidiDataException - if the stream does not point to valid MIDI file data recognized by the system
        IOException - if an I/O exception occurs
        See Also:
        InputStream.markSupported(), InputStream.mark(int)
      • getMidiFileFormat

        public abstract MidiFileFormat getMidiFileFormat(URL url)
                                                  throws InvalidMidiDataException,
                                                         IOException
        Obtains the MIDI file format of the URL provided. The URL must point to valid MIDI file data.
        Parameters:
        url - the URL from which file format information should be extracted
        Returns:
        a MidiFileFormat object describing the MIDI file format
        Throws:
        InvalidMidiDataException - if the URL does not point to valid MIDI file data recognized by the system
        IOException - if an I/O exception occurs
      • getMidiFileFormat

        public abstract MidiFileFormat getMidiFileFormat(File file)
                                                  throws InvalidMidiDataException,
                                                         IOException
        Obtains the MIDI file format of the File provided. The File must point to valid MIDI file data.
        Parameters:
        file - the File from which file format information should be extracted
        Returns:
        a MidiFileFormat object describing the MIDI file format
        Throws:
        InvalidMidiDataException - if the File does not point to valid MIDI file data recognized by the system
        IOException - if an I/O exception occurs
      • getSequence

        public abstract Sequence getSequence(InputStream stream)
                                      throws InvalidMidiDataException,
                                             IOException
        Obtains a MIDI sequence from the input stream provided. The stream must point to valid MIDI file data. In general, MIDI file readers may need to read some data from the stream before determining whether they support it. These parsers must be able to mark the stream, read enough data to determine whether they support the stream, and, if not, reset the stream's read pointer to its original position. If the input stream does not support this, this method may fail with an IOException.
        Parameters:
        stream - the input stream from which the Sequence should be constructed
        Returns:
        a Sequence object based on the MIDI file data contained in the input stream.
        Throws:
        InvalidMidiDataException - if the stream does not point to valid MIDI file data recognized by the system
        IOException - if an I/O exception occurs
        See Also:
        InputStream.markSupported(), InputStream.mark(int)
      • getSequence

        public abstract Sequence getSequence(URL url)
                                      throws InvalidMidiDataException,
                                             IOException
        Obtains a MIDI sequence from the URL provided. The URL must point to valid MIDI file data.
        Parameters:
        url - the URL for which the Sequence should be constructed
        Returns:
        a Sequence object based on the MIDI file data pointed to by the URL
        Throws:
        InvalidMidiDataException - if the URL does not point to valid MIDI file data recognized by the system
        IOException - if an I/O exception occurs
      • getSequence

        public abstract Sequence getSequence(File file)
                                      throws InvalidMidiDataException,
                                             IOException
        Obtains a MIDI sequence from the File provided. The File must point to valid MIDI file data.
        Parameters:
        file - the File from which the Sequence should be constructed
        Returns:
        a Sequence object based on the MIDI file data pointed to by the File
        Throws:
        InvalidMidiDataException - if the File does not point to valid MIDI file data recognized by the system
        IOException - if an I/O exception occurs

Deutsche Übersetzung

Sie haben gebeten, diese Seite auf Deutsch zu besuchen. Momentan ist nur die Oberfläche übersetzt, aber noch nicht der gesamte Inhalt.

Wenn Sie mir bei Übersetzungen helfen wollen, ist Ihr Beitrag willkommen. Alles, was Sie tun müssen, ist, sich auf der Website zu registrieren und mir eine Nachricht zu schicken, in der Sie gebeten werden, Sie der Gruppe der Übersetzer hinzuzufügen, die Ihnen die Möglichkeit gibt, die gewünschten Seiten zu übersetzen. Ein Link am Ende jeder übersetzten Seite zeigt an, dass Sie der Übersetzer sind und einen Link zu Ihrem Profil haben.

Vielen Dank im Voraus.

Dokument erstellt 11/06/2005, zuletzt geändert 04/03/2020
Quelle des gedruckten Dokuments:https://www.gaudry.be/de/java-api-rf-javax/sound/midi/spi/midifilereader.html

Die Infobro ist eine persönliche Seite, deren Inhalt in meiner alleinigen Verantwortung liegt. Der Text ist unter der CreativeCommons-Lizenz (BY-NC-SA) verfügbar. Weitere Informationen auf die Nutzungsbedingungen und dem Autor.

Referenzen

  1. Zeigen Sie - html-Dokument Sprache des Dokuments:fr Manuel PHP : https://docs.oracle.com

Diese Verweise und Links verweisen auf Dokumente, die während des Schreibens dieser Seite konsultiert wurden, oder die zusätzliche Informationen liefern können, aber die Autoren dieser Quellen können nicht für den Inhalt dieser Seite verantwortlich gemacht werden.
Der Autor Diese Website ist allein dafür verantwortlich, wie die verschiedenen Konzepte und Freiheiten, die mit den Nachschlagewerken gemacht werden, hier dargestellt werden. Denken Sie daran, dass Sie mehrere Quellinformationen austauschen müssen, um das Risiko von Fehlern zu reduzieren.

Inhaltsverzeichnis Haut