Discards the current mappings for the specified
String
native, and creates new mappings to the specified
DataFlavor
s. Unlike
getFlavorsForNative
, the mappings will only be established in one direction, and the natives need not be encoded. To establish two-way mappings, call
setNativesForFlavor
as well. The first
DataFlavor
in the array will represent the highest priority mapping. Subsequent
DataFlavor
s will represent mappings of decreasing priority.
If the array contains several elements that reference equal DataFlavor
s, this method will establish new mappings for the first of those elements and ignore the rest of them.
It is recommended that client code not reset mappings established by the data transfer subsystem. This method should only be used for application-level mappings.