This documentation differs from the official API. Jadeite adds extra features to the API including: variable font sizes, constructions examples, placeholders for classes and methods, and auto-generated “See Also” links. Additionally it is missing some items found in standard Javadoc documentation, including: generics type information, “Deprecated” tags and comments, “See Also” links, along with other minor differences. Please send any questions or feedback to bam@cs.cmu.edu.


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.


Method Summary
 Map

          Returns a Map of the specified String natives to their corresponding DataFlavor.
 Map

          Returns a Map of the specified DataFlavors to their corresponding String native.
 

Method Detail

getFlavorsForNatives

public Map 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

getNativesForFlavors

public Map 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


This documentation differs from the official API. Jadeite adds extra features to the API including: variable font sizes, constructions examples, placeholders for classes and methods, and auto-generated “See Also” links. Additionally it is missing some items found in standard Javadoc documentation, including: generics type information, “Deprecated” tags and comments, “See Also” links, along with other minor differences. Please send any questions or feedback to bam@cs.cmu.edu.
This page displays the Jadeite version of the documention, which is derived from the offical documentation that contains this copyright notice:
Copyright 2008 Sun Microsystems, Inc. All rights reserved. Use is subject to license terms. Also see the documentation redistribution policy.
The official Sun™ documentation can be found here at http://java.sun.com/javase/6/docs/api/.