| Modifier and Type | Field and Description |
|---|---|
| private static ImageTypeSpecifier | |
| pack-priv static final XAtom | |
| pack-priv static final XAtom | |
| pack-priv static final XAtom | |
| pack-priv static final XAtom | |
| pack-priv static final XAtom | |
| pack-priv static final XAtom | |
| pack-priv static final XAtom | |
| private static XDataTransferer |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| protected ByteArrayOutputStream | convertFileListToBytes(ArrayList<String> fileList)
Implements abstract sun.
|
| protected String[] | dragQueryFile(byte[] bytes)
Implements abstract sun. Decodes a byte array into a set of String filenames. |
| protected URI[] | dragQueryURIs(InputStream stream, long format, Transferable localeTransferable)
Overrides sun. Decodes URIs from either a byte array or a stream. |
| protected String | |
| private ImageTypeSpecifier | |
| public String | getDefaultUnicodeEncoding()
Implements abstract sun. Returns the default Unicode encoding for the platform. |
| protected Long | getFormatForNativeAsLong(String str)
Implements abstract sun. Looks-up or registers the String native with the native data transfer system and returns a long format corresponding to that native. |
| pack-priv static synchronized XDataTransferer | |
| protected String | getNativeForFormat(long format)
Implements abstract sun. Looks-up the String native corresponding to the specified long format in the native data transfer system. |
| public LinkedHashSet | getPlatformMappingsForFlavor(DataFlavor df)
Overrides sun. Returns platform-specific mappings for the specified flavor. |
| public LinkedHashSet | getPlatformMappingsForNative(String nat)
Overrides sun. Returns platform-specific mappings for the specified native. |
| private String | |
| public ToolkitThreadBlockedHandler | |
| protected byte[] | imageToPlatformBytes(Image image, long format)
Implements abstract sun. Translates a Java Image into a byte array which contains platform- specific image data in the given format. |
| public boolean | isFileFormat(long format)
Implements abstract sun. Determines whether the DataFlavor corresponding to the specified long format is DataFlavor.javaFileListFlavor. |
| public boolean | isImageFormat(long format)
Implements abstract sun. Determines whether the DataFlavor corresponding to the specified long format is DataFlavor.imageFlavor. |
| public boolean | isLocaleDependentTextFormat(long format)
Implements abstract sun. Specifies whether text imported from the native system in the specified format is locale-dependent. |
| private boolean | isMimeFormat(long format, String primaryType)
Returns true if and only if the name of the specified format Atom constitutes a valid MIME type with the specified primary type. |
| public boolean | isTextFormat(long format)
Overrides sun. Determines whether the native corresponding to the specified long format was listed in the flavormap.properties file. |
| protected boolean | isURIListFormat(long format)
Overrides sun. Determines whether the format is a URI list we can convert to a DataFlavor.javaFileListFlavor. |
| protected Image | platformImageBytesToImage(byte[] bytes, long format)
Implements abstract sun. Translates either a byte array or an input stream which contain platform-specific image data in the given format into an Image. |
| defaultSpecifier | back to summary |
|---|---|
| private static ImageTypeSpecifier defaultSpecifier | |
| DT_NET_FILE_ATOM | back to summary |
|---|---|
| pack-priv static final XAtom DT_NET_FILE_ATOM | |
| FILE_NAME_ATOM | back to summary |
|---|---|
| pack-priv static final XAtom FILE_NAME_ATOM | |
| INCR_ATOM | back to summary |
|---|---|
| pack-priv static final XAtom INCR_ATOM | |
| JFIF_ATOM | back to summary |
|---|---|
| pack-priv static final XAtom JFIF_ATOM | |
| MULTIPLE_ATOM | back to summary |
|---|---|
| pack-priv static final XAtom MULTIPLE_ATOM | |
| PNG_ATOM | back to summary |
|---|---|
| pack-priv static final XAtom PNG_ATOM | |
| TARGETS_ATOM | back to summary |
|---|---|
| pack-priv static final XAtom TARGETS_ATOM | |
| transferer | back to summary |
|---|---|
| private static XDataTransferer transferer | |
| XDataTransferer | back to summary |
|---|---|
| private XDataTransferer() Singleton constructor | |
| convertFileListToBytes | back to summary |
|---|---|
| protected ByteArrayOutputStream convertFileListToBytes(ArrayList<String> fileList) throws IOException Implements abstract sun.
| |
| dragQueryFile | back to summary |
|---|---|
| protected String[] dragQueryFile(byte[] bytes) Implements abstract sun. Doc from sun. Decodes a byte array into a set of String filenames.
| |
| dragQueryURIs | back to summary |
|---|---|
| protected URI[] dragQueryURIs(InputStream stream, long format, Transferable localeTransferable) throws IOException Overrides sun. Doc from sun. Decodes URIs from either a byte array or a stream.
| |
| getCharsetForTextFormat | back to summary |
|---|---|
| protected String getCharsetForTextFormat(Long lFormat) Overrides sun.
| |
| getDefaultImageTypeSpecifier | back to summary |
|---|---|
| private ImageTypeSpecifier getDefaultImageTypeSpecifier() | |
| getDefaultUnicodeEncoding | back to summary |
|---|---|
| public String getDefaultUnicodeEncoding() Implements abstract sun. Doc from sun. Returns the default Unicode encoding for the platform. The encoding need not be canonical. This method is only used by the archaic function DataFlavor.getTextPlainUnicodeFlavor().
| |
| getFormatForNativeAsLong | back to summary |
|---|---|
| protected Long getFormatForNativeAsLong(String str) Implements abstract sun. Doc from sun. Looks-up or registers the String native with the native data transfer system and returns a long format corresponding to that native.
| |
| getInstanceImpl | back to summary |
|---|---|
| pack-priv static synchronized XDataTransferer getInstanceImpl() | |
| getNativeForFormat | back to summary |
|---|---|
| protected String getNativeForFormat(long format) Implements abstract sun. Doc from sun. Looks-up the String native corresponding to the specified long format in the native data transfer system.
| |
| getPlatformMappingsForFlavor | back to summary |
|---|---|
| public LinkedHashSet Overrides sun. Doc from sun. Returns platform-specific mappings for the specified flavor.
If there are no platform-specific mappings for this flavor, the method
returns an empty
| |
| getPlatformMappingsForNative | back to summary |
|---|---|
| public LinkedHashSet Overrides sun. Doc from sun. Returns platform-specific mappings for the specified native.
If there are no platform-specific mappings for this native, the method
returns an empty
| |
| getTargetNameForAtom | back to summary |
|---|---|
| private String getTargetNameForAtom(long atom) Gets an format name for a given format (atom) | |
| getToolkitThreadBlockedHandler | back to summary |
|---|---|
| public ToolkitThreadBlockedHandler getToolkitThreadBlockedHandler() Implements abstract sun.
| |
| imageToPlatformBytes | back to summary |
|---|---|
| protected byte[] imageToPlatformBytes(Image image, long format) throws IOException Implements abstract sun. Doc from sun. Translates a Java Image into a byte array which contains platform- specific image data in the given format.
| |
| isFileFormat | back to summary |
|---|---|
| public boolean isFileFormat(long format) Implements abstract sun. Doc from sun. Determines whether the DataFlavor corresponding to the specified long format is DataFlavor.javaFileListFlavor.
| |
| isImageFormat | back to summary |
|---|---|
| public boolean isImageFormat(long format) Implements abstract sun. Doc from sun. Determines whether the DataFlavor corresponding to the specified long format is DataFlavor.imageFlavor.
| |
| isLocaleDependentTextFormat | back to summary |
|---|---|
| public boolean isLocaleDependentTextFormat(long format) Implements abstract sun. Doc from sun. Specifies whether text imported from the native system in the specified format is locale-dependent. If so, when decoding such text, 'nativeCharsets' should be ignored, and instead, the Transferable should be queried for its javaTextEncodingFlavor data for the correct encoding.
| |
| isMimeFormat | back to summary |
|---|---|
| private boolean isMimeFormat(long format, String primaryType) Returns true if and only if the name of the specified format Atom constitutes a valid MIME type with the specified primary type. | |
| isTextFormat | back to summary |
|---|---|
| public boolean isTextFormat(long format) Overrides sun. Doc from sun. Determines whether the native corresponding to the specified long format was listed in the flavormap.properties file.
| |
| isURIListFormat | back to summary |
|---|---|
| protected boolean isURIListFormat(long format) Overrides sun. Doc from sun. Determines whether the format is a URI list we can convert to a DataFlavor.javaFileListFlavor.
| |
| platformImageBytesToImage | back to summary |
|---|---|
| protected Image platformImageBytesToImage(byte[] bytes, long format) throws IOException Implements abstract sun. Translates either a byte array or an input stream which contain platform-specific image data in the given format into an Image.
| |