jdk/src/java.desktop/share/classes/java/awt/datatransfer/DataFlavor.java
changeset 28059 e576535359cc
parent 26037 508779ce6619
equal deleted inserted replaced
28058:87940c838900 28059:e576535359cc
   382      *    mimeType            = application/x-java-serialized-object
   382      *    mimeType            = application/x-java-serialized-object
   383      * </pre>
   383      * </pre>
   384      * @param representationClass the class used to transfer data in this flavor
   384      * @param representationClass the class used to transfer data in this flavor
   385      * @param humanPresentableName the human-readable string used to identify
   385      * @param humanPresentableName the human-readable string used to identify
   386      *                 this flavor; if this parameter is <code>null</code>
   386      *                 this flavor; if this parameter is <code>null</code>
   387      *                 then the value of the the MIME Content Type is used
   387      *                 then the value of the MIME Content Type is used
   388      * @exception NullPointerException if <code>representationClass</code> is null
   388      * @exception NullPointerException if <code>representationClass</code> is null
   389      */
   389      */
   390     public DataFlavor(Class<?> representationClass, String humanPresentableName) {
   390     public DataFlavor(Class<?> representationClass, String humanPresentableName) {
   391         this("application", "x-java-serialized-object", null, representationClass, humanPresentableName);
   391         this("application", "x-java-serialized-object", null, representationClass, humanPresentableName);
   392         if (representationClass == null) {
   392         if (representationClass == null) {
   416      *                 "class=" parameter, or if the class is not successfully
   416      *                 "class=" parameter, or if the class is not successfully
   417      *                 loaded, then an <code>IllegalArgumentException</code>
   417      *                 loaded, then an <code>IllegalArgumentException</code>
   418      *                 is thrown
   418      *                 is thrown
   419      * @param humanPresentableName the human-readable string used to identify
   419      * @param humanPresentableName the human-readable string used to identify
   420      *                 this flavor; if this parameter is <code>null</code>
   420      *                 this flavor; if this parameter is <code>null</code>
   421      *                 then the value of the the MIME Content Type is used
   421      *                 then the value of the MIME Content Type is used
   422      * @exception IllegalArgumentException if <code>mimeType</code> is
   422      * @exception IllegalArgumentException if <code>mimeType</code> is
   423      *                 invalid or if the class is not successfully loaded
   423      *                 invalid or if the class is not successfully loaded
   424      * @exception NullPointerException if <code>mimeType</code> is null
   424      * @exception NullPointerException if <code>mimeType</code> is null
   425      */
   425      */
   426     public DataFlavor(String mimeType, String humanPresentableName) {
   426     public DataFlavor(String mimeType, String humanPresentableName) {