Home » openjdk-7 » java » awt » datatransfer » [javadoc | source]
java.awt.datatransfer
public interface: FlavorMap [javadoc | source]

All Known Implementing Classes:
    FlavorTable, SystemFlavorMap

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.
Method from java.awt.datatransfer.FlavorMap Summary:
getFlavorsForNatives,   getNativesForFlavors
Method from java.awt.datatransfer.FlavorMap Detail:
 public 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.
 public 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.