API Overview API Index Package Overview Direct link to this page
JDK 1.6
  java.awt.datatransfer. SystemFlavorMap View Source
Author(s)
Since
1.2
Version
1.37, 11/17/05
Serial
Hierarchy
 Object
      SystemFlavorMap
Implements
 FlavorMap
 FlavorTable
Subclasses
Description
publicfinal class SystemFlavorMap
  The SystemFlavorMap is a configurable map between "natives" (Strings), which correspond to platform-specific data formats, and "flavors" (DataFlavors), which correspond to platform-independent MIME types.
See also:   
Constructors
private SystemFlavorMap ()
Constructs a SystemFlavorMap by reading flavormap.properties and AWT.DnD.flavorMapFileURL.
Methods
Hide/Show inherited methods
publicsynchronized void addFlavorForUnencodedNative (String nat, DataFlavor flav)
  Adds a mapping from a single String native to a single DataFlavor.
publicsynchronized void addUnencodedNativeForFlavor (DataFlavor flav, String nat)
  Adds a mapping from the specified DataFlavor (and all DataFlavors equal to the specified DataFlavor) to the specified String native.
publicstatic DataFlavor decodeDataFlavor (String nat) throws ClassNotFoundException
  Decodes a String native for use as a DataFlavor.
publicstatic String decodeJavaMIMEType (String nat)
  Decodes a String native for use as a Java MIME type.
publicstatic String encodeDataFlavor (DataFlavor flav)
  Encodes a DataFlavor for use as a String native.
publicstatic String encodeJavaMIMEType (String mimeType)
  Encodes a MIME type for use as a String native.
publicstatic FlavorMap getDefaultFlavorMap ()
Returns the default FlavorMap for this thread's ClassLoader.
publicsynchronized List<DataFlavor> getFlavorsForNative (String nat) [Specified in FlavorTable]
  Returns a List of DataFlavors to which the specified String native can be translated by the data transfer subsystem.
publicsynchronized Map<String, DataFlavor> getFlavorsForNatives (String natives) [Specified in FlavorMap]
  Returns a Map of the specified String natives to their most preferred DataFlavor.
publicsynchronized List<String> getNativesForFlavor (DataFlavor flav) [Specified in FlavorTable]
  Returns a List of String natives to which the specified DataFlavor can be translated by the data transfer subsystem.
publicsynchronized Map<DataFlavor, String> getNativesForFlavors (DataFlavor flavors) [Specified in FlavorMap]
  Returns a Map of the specified DataFlavors to their most preferred String native.
publicstatic boolean isJavaMIMEType (String str)
  Returns whether the specified String is an encoded Java MIME type.
publicsynchronized void setFlavorsForNative (String nat, DataFlavor flavors)
  Discards the current mappings for the specified String native, and creates new mappings to the specified DataFlavors.
publicsynchronized void setNativesForFlavor (DataFlavor flav, String natives)
  Discards the current mappings for the specified DataFlavor and all DataFlavors equal to the specified DataFlavor, and creates new mappings to the specified String natives.
Fields
Hide/Show inherited fields
Nested Classes
Generated By: JavaOnTracks Doclet 0.1.4     ©Thibaut Colar