java.awt.datatransfer

Interface FlavorMap

  • All Known Subinterfaces:
    FlavorTable
    All Known Implementing Classes:
    SystemFlavorMap

    public interface FlavorMap
    A two-way Map between "natives" (Strings), which correspond to platform- specfic data formats, and "flavors" (DataFlavors), which corerspond to platform-independent MIME types. FlavorMaps need not be symmetric, but typically are.
    Since:
    1.2
    • Method Detail

      • getNativesForFlavors

        Map<DataFlavor,String> getNativesForFlavors(DataFlavor[] flavors)
        Returns a Map of the specified DataFlavors to their corresponding String native. The returned Map is a modifiable copy of this FlavorMap's internal data. Client code is free to modify the Map without affecting this object.
        Parameters:
        flavors - an array of DataFlavors which will be the key set of the returned Map. If null is specified, a mapping of all DataFlavors currently known to this FlavorMap to their corresponding String natives will be returned.
        Returns:
        a java.util.Map of DataFlavors to String natives
      • getFlavorsForNatives

        Map<String,DataFlavor> getFlavorsForNatives(String[] natives)
        Returns a Map of the specified String natives to their corresponding DataFlavor. The returned Map is a modifiable copy of this FlavorMap's internal data. Client code is free to modify the Map without affecting this object.
        Parameters:
        natives - an array of Strings which will be the key set of the returned Map. If null is specified, a mapping of all String natives currently known to this FlavorMap to their corresponding DataFlavors will be returned.
        Returns:
        a java.util.Map of String natives to DataFlavors

Traduction non disponible

Les API Java ne sont pas encore traduites en français sur l'infobrol. Seule la version anglaise est disponible pour l'instant.

Document créé le 31/08/2006, dernière modification le 04/03/2020
Source du document imprimé : https://www.gaudry.be/java-api-rf-java/awt/datatransfer/FlavorMap.html

L'infobrol est un site personnel dont le contenu n'engage que moi. Le texte est mis à disposition sous licence CreativeCommons(BY-NC-SA). Plus d'info sur les conditions d'utilisation et sur l'auteur.

Références

  1. Consulter le document html Langue du document :fr Manuel PHP : https://docs.oracle.com, FlavorMap

Ces références et liens indiquent des documents consultés lors de la rédaction de cette page, ou qui peuvent apporter un complément d'information, mais les auteurs de ces sources ne peuvent être tenus responsables du contenu de cette page.
L'auteur de ce site est seul responsable de la manière dont sont présentés ici les différents concepts, et des libertés qui sont prises avec les ouvrages de référence. N'oubliez pas que vous devez croiser les informations de sources multiples afin de diminuer les risques d'erreurs.

Table des matières Haut