src/java.datatransfer/unix/classes/sun/datatransfer/resources/flavormap.properties
author lancea
Thu, 14 Nov 2019 10:54:32 -0500
changeset 59083 3e4d8b5856f3
parent 47216 71c04702a3d5
permissions -rw-r--r--
8234080: jdk/nio/zipfs/CRCWriteTest.java fails Reviewed-by: clanger, amlu
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
25782
5a832643a534 8047336: Read flavormap.properties as resource
pchelko
parents:
diff changeset
     1
#
5a832643a534 8047336: Read flavormap.properties as resource
pchelko
parents:
diff changeset
     2
# This properties file is used to initialize the default
5a832643a534 8047336: Read flavormap.properties as resource
pchelko
parents:
diff changeset
     3
# java.awt.datatransfer.SystemFlavorMap. It contains the X11 platform-specific,
5a832643a534 8047336: Read flavormap.properties as resource
pchelko
parents:
diff changeset
     4
# default mappings between common X11 selection atoms and platform-independent
5a832643a534 8047336: Read flavormap.properties as resource
pchelko
parents:
diff changeset
     5
# MIME type strings, which will be converted into
5a832643a534 8047336: Read flavormap.properties as resource
pchelko
parents:
diff changeset
     6
# java.awt.datatransfer.DataFlavors.
5a832643a534 8047336: Read flavormap.properties as resource
pchelko
parents:
diff changeset
     7
#
5a832643a534 8047336: Read flavormap.properties as resource
pchelko
parents:
diff changeset
     8
# The standard format is:
5a832643a534 8047336: Read flavormap.properties as resource
pchelko
parents:
diff changeset
     9
#
5a832643a534 8047336: Read flavormap.properties as resource
pchelko
parents:
diff changeset
    10
# <native>=<MIME type>,<MIME type>, ...
5a832643a534 8047336: Read flavormap.properties as resource
pchelko
parents:
diff changeset
    11
#
5a832643a534 8047336: Read flavormap.properties as resource
pchelko
parents:
diff changeset
    12
# <native> should be a string identifier that the native platform will
5a832643a534 8047336: Read flavormap.properties as resource
pchelko
parents:
diff changeset
    13
# recognize as a valid data format. <MIME type> should specify both a MIME
5a832643a534 8047336: Read flavormap.properties as resource
pchelko
parents:
diff changeset
    14
# primary type and a MIME subtype separated by a '/'. The MIME type may include
5a832643a534 8047336: Read flavormap.properties as resource
pchelko
parents:
diff changeset
    15
# parameters, where each parameter is a key/value pair separated by '=', and
5a832643a534 8047336: Read flavormap.properties as resource
pchelko
parents:
diff changeset
    16
# where each parameter to the MIME type is separated by a ';'.
5a832643a534 8047336: Read flavormap.properties as resource
pchelko
parents:
diff changeset
    17
#
5a832643a534 8047336: Read flavormap.properties as resource
pchelko
parents:
diff changeset
    18
# Because SystemFlavorMap implements FlavorTable, developers are free to
5a832643a534 8047336: Read flavormap.properties as resource
pchelko
parents:
diff changeset
    19
# duplicate DataFlavor values and set multiple values for a single native by
5a832643a534 8047336: Read flavormap.properties as resource
pchelko
parents:
diff changeset
    20
# separating them with ",". If a mapping contains a duplicate key or value,
5a832643a534 8047336: Read flavormap.properties as resource
pchelko
parents:
diff changeset
    21
# earlier mappings which included this key or value will be preferred.
5a832643a534 8047336: Read flavormap.properties as resource
pchelko
parents:
diff changeset
    22
#
5a832643a534 8047336: Read flavormap.properties as resource
pchelko
parents:
diff changeset
    23
# Mappings whose values specify DataFlavors with primary MIME types of
5a832643a534 8047336: Read flavormap.properties as resource
pchelko
parents:
diff changeset
    24
# "text", and which support the charset parameter, should specify the exact
5a832643a534 8047336: Read flavormap.properties as resource
pchelko
parents:
diff changeset
    25
# format in which the native platform expects the data. The "charset"
5a832643a534 8047336: Read flavormap.properties as resource
pchelko
parents:
diff changeset
    26
# parameter specifies the char to byte encoding, the "eoln" parameter
5a832643a534 8047336: Read flavormap.properties as resource
pchelko
parents:
diff changeset
    27
# specifies the end-of-line marker, and the "terminators" parameter specifies
5a832643a534 8047336: Read flavormap.properties as resource
pchelko
parents:
diff changeset
    28
# the number of terminating NUL bytes. Note that "eoln" and "terminators"
5a832643a534 8047336: Read flavormap.properties as resource
pchelko
parents:
diff changeset
    29
# are not standardized MIME type parameters. They are specific to this file
5a832643a534 8047336: Read flavormap.properties as resource
pchelko
parents:
diff changeset
    30
# format ONLY. They will not appear in any of the DataFlavors returned by the
5a832643a534 8047336: Read flavormap.properties as resource
pchelko
parents:
diff changeset
    31
# SystemFlavorMap at the Java level.
5a832643a534 8047336: Read flavormap.properties as resource
pchelko
parents:
diff changeset
    32
#
5a832643a534 8047336: Read flavormap.properties as resource
pchelko
parents:
diff changeset
    33
# If the "charset" parameter is omitted, or has zero length, the platform
5a832643a534 8047336: Read flavormap.properties as resource
pchelko
parents:
diff changeset
    34
# default encoding is assumed. If the "eoln" parameter is omitted, or has
5a832643a534 8047336: Read flavormap.properties as resource
pchelko
parents:
diff changeset
    35
# zero length, "\n" is assumed. If the "terminators" parameter is omitted,
5a832643a534 8047336: Read flavormap.properties as resource
pchelko
parents:
diff changeset
    36
# or has a value less than zero, zero is assumed.
5a832643a534 8047336: Read flavormap.properties as resource
pchelko
parents:
diff changeset
    37
#
5a832643a534 8047336: Read flavormap.properties as resource
pchelko
parents:
diff changeset
    38
# Upon initialization, the data transfer subsystem will record the specified
5a832643a534 8047336: Read flavormap.properties as resource
pchelko
parents:
diff changeset
    39
# details of the native text format, but the default SystemFlavorMap will
5a832643a534 8047336: Read flavormap.properties as resource
pchelko
parents:
diff changeset
    40
# present a large set of synthesized DataFlavors which map, in both
5a832643a534 8047336: Read flavormap.properties as resource
pchelko
parents:
diff changeset
    41
# directions, to the native. After receiving data from the application in one
5a832643a534 8047336: Read flavormap.properties as resource
pchelko
parents:
diff changeset
    42
# of the synthetic DataFlavors, the data transfer subsystem will transform
5a832643a534 8047336: Read flavormap.properties as resource
pchelko
parents:
diff changeset
    43
# the data stream into the format specified in this file before passing the
5a832643a534 8047336: Read flavormap.properties as resource
pchelko
parents:
diff changeset
    44
# transformed stream to the native system.
5a832643a534 8047336: Read flavormap.properties as resource
pchelko
parents:
diff changeset
    45
#
5a832643a534 8047336: Read flavormap.properties as resource
pchelko
parents:
diff changeset
    46
# Mappings whose values specify DataFlavors with primary MIME types of
5a832643a534 8047336: Read flavormap.properties as resource
pchelko
parents:
diff changeset
    47
# "text", but which do not support the charset parameter, will be treated as
5a832643a534 8047336: Read flavormap.properties as resource
pchelko
parents:
diff changeset
    48
# opaque, 8-bit data. They will not undergo any transformation process, and
5a832643a534 8047336: Read flavormap.properties as resource
pchelko
parents:
diff changeset
    49
# any "charset", "eoln", or "terminators" parameters specified in this file
5a832643a534 8047336: Read flavormap.properties as resource
pchelko
parents:
diff changeset
    50
# will be ignored.
5a832643a534 8047336: Read flavormap.properties as resource
pchelko
parents:
diff changeset
    51
#
5a832643a534 8047336: Read flavormap.properties as resource
pchelko
parents:
diff changeset
    52
# See java.awt.datatransfer.DataFlavor.selectBestTextFlavor for a list of
5a832643a534 8047336: Read flavormap.properties as resource
pchelko
parents:
diff changeset
    53
# text flavors which support the charset parameter.
5a832643a534 8047336: Read flavormap.properties as resource
pchelko
parents:
diff changeset
    54
5a832643a534 8047336: Read flavormap.properties as resource
pchelko
parents:
diff changeset
    55
UTF8_STRING=text/plain;charset=UTF-8;eoln="\n";terminators=0
5a832643a534 8047336: Read flavormap.properties as resource
pchelko
parents:
diff changeset
    56
5a832643a534 8047336: Read flavormap.properties as resource
pchelko
parents:
diff changeset
    57
# The COMPOUND_TEXT support for inter-client text transfer is disabled by 
5a832643a534 8047336: Read flavormap.properties as resource
pchelko
parents:
diff changeset
    58
# default. The reason is that many native applications prefer this format over 
5a832643a534 8047336: Read flavormap.properties as resource
pchelko
parents:
diff changeset
    59
# other native text formats, but are unable to decode the textual data in this 
5a832643a534 8047336: Read flavormap.properties as resource
pchelko
parents:
diff changeset
    60
# format properly. This results in java-to-native text transfer failures.
5a832643a534 8047336: Read flavormap.properties as resource
pchelko
parents:
diff changeset
    61
# To enable the COMPOUND_TEXT support for this JRE installation uncomment 
5a832643a534 8047336: Read flavormap.properties as resource
pchelko
parents:
diff changeset
    62
# the line below.
5a832643a534 8047336: Read flavormap.properties as resource
pchelko
parents:
diff changeset
    63
5a832643a534 8047336: Read flavormap.properties as resource
pchelko
parents:
diff changeset
    64
# COMPOUND_TEXT=text/plain;charset=x-compound-text;eoln="\n";terminators=0
5a832643a534 8047336: Read flavormap.properties as resource
pchelko
parents:
diff changeset
    65
5a832643a534 8047336: Read flavormap.properties as resource
pchelko
parents:
diff changeset
    66
TEXT=text/plain;eoln="\n";terminators=0
5a832643a534 8047336: Read flavormap.properties as resource
pchelko
parents:
diff changeset
    67
STRING=text/plain;charset=iso8859-1;eoln="\n";terminators=0
5a832643a534 8047336: Read flavormap.properties as resource
pchelko
parents:
diff changeset
    68
FILE_NAME=application/x-java-file-list;class=java.util.List
5a832643a534 8047336: Read flavormap.properties as resource
pchelko
parents:
diff changeset
    69
text/uri-list=application/x-java-file-list;class=java.util.List
5a832643a534 8047336: Read flavormap.properties as resource
pchelko
parents:
diff changeset
    70
PNG=image/x-java-image;class=java.awt.Image
5a832643a534 8047336: Read flavormap.properties as resource
pchelko
parents:
diff changeset
    71
JFIF=image/x-java-image;class=java.awt.Image