src/share/classes/java/awt/datatransfer/DataFlavor.java

Print this page

        

*** 105,115 **** * </pre> * As mentioned, {@code flavor1} and {@code flavor2} are considered identical. * As such, asking a {@code Transferable} for either {@code DataFlavor} returns * the same results. * <p> ! * For more information on the using data transfer with Swing see * the <a href="http://docs.oracle.com/javase/tutorial/uiswing/dnd/index.html"> * How to Use Drag and Drop and Data Transfer</a>, * section in <em>Java Tutorial</em>. * * @author Blake Sullivan --- 105,115 ---- * </pre> * As mentioned, {@code flavor1} and {@code flavor2} are considered identical. * As such, asking a {@code Transferable} for either {@code DataFlavor} returns * the same results. * <p> ! * For more information on using data transfer with Swing see * the <a href="http://docs.oracle.com/javase/tutorial/uiswing/dnd/index.html"> * How to Use Drag and Drop and Data Transfer</a>, * section in <em>Java Tutorial</em>. * * @author Blake Sullivan
*** 403,421 **** * characteristics: * <p> * If the <code>mimeType</code> is * "application/x-java-serialized-object; class=&lt;representation class&gt;", * the result is the same as calling ! * <code>new DataFlavor(Class:forName(&lt;representation class&gt;)</code>. * <p> * Otherwise: * <pre> * representationClass = InputStream * mimeType = mimeType * </pre> * @param mimeType the string used to identify the MIME type for this flavor; ! * if the the <code>mimeType</code> does not specify a * "class=" parameter, or if the class is not successfully * loaded, then an <code>IllegalArgumentException</code> * is thrown * @param humanPresentableName the human-readable string used to identify * this flavor; if this parameter is <code>null</code> --- 403,421 ---- * characteristics: * <p> * If the <code>mimeType</code> is * "application/x-java-serialized-object; class=&lt;representation class&gt;", * the result is the same as calling ! * <code>new DataFlavor(Class.forName(&lt;representation class&gt;)</code>. * <p> * Otherwise: * <pre> * representationClass = InputStream * mimeType = mimeType * </pre> * @param mimeType the string used to identify the MIME type for this flavor; ! * if the <code>mimeType</code> does not specify a * "class=" parameter, or if the class is not successfully * loaded, then an <code>IllegalArgumentException</code> * is thrown * @param humanPresentableName the human-readable string used to identify * this flavor; if this parameter is <code>null</code>
*** 446,456 **** * characteristics: * <p> * If the mimeType is * "application/x-java-serialized-object; class=&lt;representation class&gt;", * the result is the same as calling ! * <code>new DataFlavor(Class:forName(&lt;representation class&gt;)</code>. * <p> * Otherwise: * <pre> * representationClass = InputStream * mimeType = mimeType --- 446,456 ---- * characteristics: * <p> * If the mimeType is * "application/x-java-serialized-object; class=&lt;representation class&gt;", * the result is the same as calling ! * <code>new DataFlavor(Class.forName(&lt;representation class&gt;)</code>. * <p> * Otherwise: * <pre> * representationClass = InputStream * mimeType = mimeType