flavormap.properties 3.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778
  1. #
  2. # This properties file is used to initialize the default
  3. # java.awt.datatransfer.SystemFlavorMap. It contains the Win32 platform-
  4. # specific, default mappings between common Win32 Clipboard atoms and platform-
  5. # independent MIME type strings, which will be converted into
  6. # java.awt.datatransfer.DataFlavors.
  7. #
  8. # These default mappings may be augmented by specifying the
  9. #
  10. # AWT.DnD.flavorMapFileURL
  11. #
  12. # property in the appropriate awt.properties file. The specified properties URL
  13. # will be loaded into the SystemFlavorMap.
  14. #
  15. # The standard format is:
  16. #
  17. # <native>=<MIME type>
  18. #
  19. # <native> should be a string identifier that the native platform will
  20. # recognize as a valid data format. <MIME type> should specify both a MIME
  21. # primary type and a MIME subtype separated by a '/'. The MIME type may include
  22. # parameters, where each parameter is a key/value pair separated by '=', and
  23. # where each parameter to the MIME type is separated by a ';'.
  24. #
  25. # Because SystemFlavorMap implements FlavorTable, developers are free to
  26. # duplicate both native keys and DataFlavor values. If a mapping contains a
  27. # duplicate key or value, earlier mappings which included this key or value
  28. # will be preferred.
  29. #
  30. # Mappings whose values specify DataFlavors with primary MIME types of
  31. # "text", and which support the charset parameter, should specify the exact
  32. # format in which the native platform expects the data. The "charset"
  33. # parameter specifies the char to byte encoding, the "eoln" parameter
  34. # specifies the end-of-line marker, and the "terminators" parameter specifies
  35. # the number of terminating NUL bytes. Note that "eoln" and "terminators"
  36. # are not standardized MIME type parameters. They are specific to this file
  37. # format ONLY. They will not appear in any of the DataFlavors returned by the
  38. # SystemFlavorMap at the Java level.
  39. #
  40. # If the "charset" parameter is omitted, or has zero length, the platform
  41. # default encoding is assumed. If the "eoln" parameter is omitted, or has
  42. # zero length, "\n" is assumed. If the "terminators" parameter is omitted,
  43. # or has a value less than zero, zero is assumed.
  44. #
  45. # Upon initialization, the data transfer subsystem will record the specified
  46. # details of the native text format, but the default SystemFlavorMap will
  47. # present a large set of synthesized DataFlavors which map, in both
  48. # directions, to the native. After receiving data from the application in one
  49. # of the synthetic DataFlavors, the data transfer subsystem will transform
  50. # the data stream into the format specified in this file before passing the
  51. # transformed stream to the native system.
  52. #
  53. # Mappings whose values specify DataFlavors with primary MIME types of
  54. # "text", but which do not support the charset parameter, will be treated as
  55. # opaque, 8-bit data. They will not undergo any transformation process, and
  56. # any "charset", "eoln", or "terminators" parameters specified in this file
  57. # will be ignored.
  58. #
  59. # See java.awt.datatransfer.DataFlavor.selectBestTextFlavor for a list of
  60. # text flavors which support the charset parameter.
  61. UNICODE\ TEXT=text/plain;charset=utf-16le;eoln="\r\n";terminators=2
  62. TEXT=text/plain;eoln="\r\n";terminators=1
  63. HTML\ Format=text/html;charset=utf-8;eoln="\r\n";terminators=1
  64. Rich\ Text\ Format=text/rtf
  65. HDROP=application/x-java-file-list;class=java.util.List
  66. PNG=image/x-java-image;class=java.awt.Image
  67. JFIF=image/x-java-image;class=java.awt.Image
  68. DIB=image/x-java-image;class=java.awt.Image
  69. ENHMETAFILE=image/x-java-image;class=java.awt.Image
  70. METAFILEPICT=image/x-java-image;class=java.awt.Image
  71. LOCALE=application/x-java-text-encoding;class="[B"
  72. UniformResourceLocator=application/x-java-url;class=java.net.URL
  73. UniformResourceLocator=text/uri-list;eoln="\r\n";terminators=1
  74. UniformResourceLocator=text/plain;eoln="\r\n";terminators=1
  75. FileGroupDescriptorW=application/x-java-file-list;class=java.util.List
  76. FileGroupDescriptor=application/x-java-file-list;class=java.util.List