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.sampled.spi

Class FormatConversionProvider


  • public abstract class FormatConversionProvider
    extends Object
    A format conversion provider provides format conversion services from one or more input formats to one or more output formats. Converters include codecs, which encode and/or decode audio data, as well as transcoders, etc. Format converters provide methods for determining what conversions are supported and for obtaining an audio stream from which converted data can be read.

    The source format represents the format of the incoming audio data, which will be converted.

    The target format represents the format of the processed, converted audio data. This is the format of the data that can be read from the stream returned by one of the getAudioInputStream methods.

    Since:
    1.3
    • Constructor Detail

      • FormatConversionProvider

        public FormatConversionProvider()
    • Method Detail

      • getSourceEncodings

        public abstract AudioFormat.Encoding[] getSourceEncodings()
        Obtains the set of source format encodings from which format conversion services are provided by this provider.
        Returns:
        array of source format encodings. If for some reason provider does not provide any conversion services, an array of length 0 is returned.
      • getTargetEncodings

        public abstract AudioFormat.Encoding[] getTargetEncodings()
        Obtains the set of target format encodings to which format conversion services are provided by this provider.
        Returns:
        array of target format encodings. If for some reason provider does not provide any conversion services, an array of length 0 is returned.
      • isSourceEncodingSupported

        public boolean isSourceEncodingSupported(AudioFormat.Encoding sourceEncoding)
        Indicates whether the format converter supports conversion from the specified source format encoding.
        Parameters:
        sourceEncoding - the source format encoding for which support is queried
        Returns:
        true if the encoding is supported, otherwise false
      • isTargetEncodingSupported

        public boolean isTargetEncodingSupported(AudioFormat.Encoding targetEncoding)
        Indicates whether the format converter supports conversion to the specified target format encoding.
        Parameters:
        targetEncoding - the target format encoding for which support is queried
        Returns:
        true if the encoding is supported, otherwise false
      • getTargetEncodings

        public abstract AudioFormat.Encoding[] getTargetEncodings(AudioFormat sourceFormat)
        Obtains the set of target format encodings supported by the format converter given a particular source format. If no target format encodings are supported for this source format, an array of length 0 is returned.
        Returns:
        array of supported target format encodings.
      • isConversionSupported

        public boolean isConversionSupported(AudioFormat.Encoding targetEncoding,
                                    AudioFormat sourceFormat)
        Indicates whether the format converter supports conversion to a particular encoding from a particular format.
        Parameters:
        targetEncoding - desired encoding of the outgoing data
        sourceFormat - format of the incoming data
        Returns:
        true if the conversion is supported, otherwise false
      • getTargetFormats

        public abstract AudioFormat[] getTargetFormats(AudioFormat.Encoding targetEncoding,
                                     AudioFormat sourceFormat)
        Obtains the set of target formats with the encoding specified supported by the format converter If no target formats with the specified encoding are supported for this source format, an array of length 0 is returned.
        Returns:
        array of supported target formats.
      • isConversionSupported

        public boolean isConversionSupported(AudioFormat targetFormat,
                                    AudioFormat sourceFormat)
        Indicates whether the format converter supports conversion to one particular format from another.
        Parameters:
        targetFormat - desired format of outgoing data
        sourceFormat - format of the incoming data
        Returns:
        true if the conversion is supported, otherwise false
      • getAudioInputStream

        public abstract AudioInputStream getAudioInputStream(AudioFormat.Encoding targetEncoding,
                                           AudioInputStream sourceStream)
        Obtains an audio input stream with the specified encoding from the given audio input stream.
        Parameters:
        targetEncoding - desired encoding of the stream after processing
        sourceStream - stream from which data to be processed should be read
        Returns:
        stream from which processed data with the specified target encoding may be read
        Throws:
        IllegalArgumentException - if the format combination supplied is not supported.
      • getAudioInputStream

        public abstract AudioInputStream getAudioInputStream(AudioFormat targetFormat,
                                           AudioInputStream sourceStream)
        Obtains an audio input stream with the specified format from the given audio input stream.
        Parameters:
        targetFormat - desired data format of the stream after processing
        sourceStream - stream from which data to be processed should be read
        Returns:
        stream from which processed data with the specified format may be read
        Throws:
        IllegalArgumentException - if the format combination supplied is not supported.

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/sampled/spi/formatconversionprovider.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