| java.awt.datatransfer.FlavorMap
All known Subclasses: java.awt.datatransfer.SystemFlavorMap,
FlavorMap | public interface FlavorMap (Code) | | 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.
version: 1.26, 05/05/07 since: 1.2 |
getFlavorsForNatives | Map<String, DataFlavor> getFlavorsForNatives(String[] natives)(Code) | | 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 String s which will be thekey set of the returned Map . If null isspecified, a mapping of all String natives currentlyknown to this FlavorMap to their correspondingDataFlavor s will be returned. a java.util.Map of String natives toDataFlavor s |
getNativesForFlavors | Map<DataFlavor, String> getNativesForFlavors(DataFlavor[] flavors)(Code) | | Returns a Map of the specified DataFlavor s 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 DataFlavor s which will be thekey set of the returned Map . If null isspecified, a mapping of all DataFlavor s currentlyknown to this FlavorMap to their corresponding String natives will be returned. a java.util.Map of DataFlavor s toString natives |
|
|