JDK 11 java.datatransfer.jmod - Data Transfer Module

JDK 11 java.datatransfer.jmod is the JMOD file for JDK 11 Desktop module.

JDK 11 Data Transfer module compiled class files are stored in \fyicenter\jdk-11.0.1\jmods\java.datatransfer.jmod.

JDK 11 Data Transfer module compiled class files are also linked and stored in the \fyicenter\jdk-11.0.1\lib\modules JImage file.

JDK 11 Data Transfer module source code files are stored in \fyicenter\jdk-11.0.1\lib\src.zip\java.datatransfer.

You can click and view the content of each source code file in the list below.

✍: FYIcenter

sun/datatransfer/DesktopDatatransferService.java

/*
 * Copyright (c) 2014, 2017, Oracle and/or its affiliates. All rights reserved.
 * ORACLE PROPRIETARY/CONFIDENTIAL. Use is subject to license terms.
 *
 *
 *
 *
 *
 *
 *
 *
 *
 *
 *
 *
 *
 *
 *
 *
 *
 *
 *
 *
 */

package sun.datatransfer;

import java.awt.datatransfer.DataFlavor;
import java.awt.datatransfer.FlavorMap;
import java.util.LinkedHashSet;
import java.util.function.Supplier;

/**
 * Contains services which desktop provides to the datatransfer system to enrich
 * it's functionality.
 *
 * @author Petr Pchelko
 * @since 9
 */
public interface DesktopDatatransferService {

    /**
     * If desktop is present - invokes a {@code Runnable} on the event dispatch
     * thread. Otherwise invokes a {@code run()} method directly.
     *
     * @param  r a {@code Runnable} to invoke
     */
    void invokeOnEventThread(Runnable r);

    /**
     * Get a platform-dependent default unicode encoding to use in datatransfer
     * system.
     *
     * @return default unicode encoding
     */
    String getDefaultUnicodeEncoding();

    /**
     * Takes an appropriate {@code FlavorMap} from the desktop. If no
     * appropriate table is found - uses a provided supplier to instantiate a
     * table. If the desktop is absent - creates and returns a system singleton.
     *
     * @param  supplier a constructor that should be used to create a new
     *         instance of the {@code FlavorMap}
     * @return a {@code FlavorMap}
     */
    FlavorMap getFlavorMap(Supplier<FlavorMap> supplier);

    /**
     * Checks if desktop is present.
     *
     * @return {@code true} is the desktop is present
     */
    boolean isDesktopPresent();

    /**
     * Returns platform-specific mappings for the specified native format. If
     * there are no platform-specific mappings for this native, the method
     * returns an empty {@code Set}.
     *
     * @param  nat a native format to return flavors for
     * @return set of platform-specific mappings for a native format
     */
    LinkedHashSet<DataFlavor> getPlatformMappingsForNative(String nat);

    /**
     * Returns platform-specific mappings for the specified flavor. If there are
     * no platform-specific mappings for this flavor, the method returns an
     * empty {@code Set}.
     *
     * @param  df {@code DataFlavor} to return mappings for
     * @return set of platform-specific mappings for a {@code DataFlavor}
     */
    LinkedHashSet<String> getPlatformMappingsForFlavor(DataFlavor df);

    /**
     * This method is called for text flavor mappings established while parsing
     * the default flavor mappings file. It stores the "eoln" and "terminators"
     * parameters which are not officially part of the MIME type. They are MIME
     * parameters specific to the flavormap.properties file format.
     */
    void registerTextFlavorProperties(String nat, String charset,
                                      String eoln, String terminators);
}

sun/datatransfer/DesktopDatatransferService.java

 

Or download all of them as a single archive file:

File name: java.datatransfer-11.0.1-src.zip
File size: 47481 bytes
Release date: 2018-11-04
Download 

 

JDK 11 java.desktop.jmod - Desktop Module

JDK 11 java.compiler.jmod - Compiler Module

Download and Use JDK 11

⇑⇑ FAQ for JDK (Java Development Kit)

2021-08-22, 7157👍, 1💬