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 DataFlavor s to
their corresponding String native.
|
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 String
s 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
DataFlavor
s will be returned.
- Returns:
- a
java.util.Map
of String
natives to
DataFlavor
s
getNativesForFlavors
public Map getNativesForFlavors(DataFlavor[] flavors)
-
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 the
key set of the returned Map
. If null
is
specified, a mapping of all DataFlavor
s currently
known to this FlavorMap
to their corresponding
String
natives will be returned.
- Returns:
- a
java.util.Map
of DataFlavor
s 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:
The official Sun™ documentation can be found here at
http://java.sun.com/javase/6/docs/api/.