java.awt.datatransfer

Interface FlavorMap

public interface FlavorMap

This interface maps between native platform type names and DataFlavors.
Method Summary
Map<String,DataFlavor>getFlavorsForNatives(String[] natives)
Maps the specified native type names to DataFlavor's.
Map<DataFlavor,String>getNativesForFlavors(DataFlavor[] flavors)
Maps the specified DataFlavor objects to the native data type name.

Method Detail

getFlavorsForNatives

public Map<String,DataFlavor> getFlavorsForNatives(String[] natives)
Maps the specified native type names to DataFlavor's. The returned Map has keys that are strings and values that are DataFlavor's. The returned map may be modified. This can be useful for implementing nested mappings.

Parameters: natives An array of native types to map or null for all native types.

Returns: A Map of data flavors.

getNativesForFlavors

public Map<DataFlavor,String> getNativesForFlavors(DataFlavor[] flavors)
Maps the specified DataFlavor objects to the native data type name. The returned Map has keys that are the data flavors and values that are strings. The returned map may be modified. This can be useful for implementing nested mappings.

Parameters: flavors An array of data flavors to map or null for all data flavors.

Returns: A Map of native data types.