Spec-Zone .ru
спецификации, руководства, описания, API
|
|
JavaTM 2 Platform Standard Edition |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--java.awt.datatransfer.SystemFlavorMap
The SystemFlavorMap is an externally configurable map that maps platform native type names (strings) to MIME type strings, and also their associated DataFlavors.
This map is used by the DnD system to map platform data types to MIME types to enable the transfer of objects between Java and the platform via the platform DnD System.
Method Summary | |
static DataFlavor |
decodeDataFlavor(String atom)
|
static String |
decodeJavaMIMEType(String atom)
|
static String |
encodeDataFlavor(DataFlavor df)
|
static String |
encodeJavaMIMEType(String mimeType)
|
static FlavorMap |
getDefaultFlavorMap()
get the default system implementation |
Map |
getFlavorsForNatives(String[] natives)
map natives to corresponding flavors |
Map |
getNativesForFlavors(DataFlavor[] flavors)
map flavors to native data types names |
static boolean |
isJavaMIMEType(String atom)
|
Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
Method Detail |
public static FlavorMap getDefaultFlavorMap()
public Map getNativesForFlavors(DataFlavor[] flavors)
flavors
- The array of DataFlavors to map to native types, or nullpublic Map getFlavorsForNatives(String[] natives)
native
- The array of String native types to map to DataFlavors, or nullpublic static String encodeJavaMIMEType(String mimeType)
public static String encodeDataFlavor(DataFlavor df)
public static boolean isJavaMIMEType(String atom)
public static String decodeJavaMIMEType(String atom)
public static DataFlavor decodeDataFlavor(String atom) throws ClassNotFoundException
|
JavaTM 2 Platform Standard Edition |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |