< prev index next >

src/java.activation/share/classes/javax/activation/ActivationDataFlavor.java

Print this page

        

*** 29,42 **** import java.io.IOException; import javax.activation.MimeType; /** * The ActivationDataFlavor class is a special subclass of ! * <code>java.awt.datatransfer.DataFlavor</code>. It allows the JAF to * set all three values stored by the DataFlavor class via a new ! * constructor. It also contains improved MIME parsing in the <code>equals ! * </code> method. Except for the improved parsing, its semantics are * identical to that of the JDK's DataFlavor class. * * @since 1.6 */ --- 29,42 ---- import java.io.IOException; import javax.activation.MimeType; /** * The ActivationDataFlavor class is a special subclass of ! * {@code java.awt.datatransfer.DataFlavor}. It allows the JAF to * set all three values stored by the DataFlavor class via a new ! * constructor. It also contains improved MIME parsing in the {@code equals} ! * method. Except for the improved parsing, its semantics are * identical to that of the JDK's DataFlavor class. * * @since 1.6 */
*** 68,78 **** * The returned DataFlavor will have the following characteristics: * <p> * representationClass = representationClass<br> * mimeType = mimeType<br> * humanName = humanName - * <p> * * @param representationClass the class used in this DataFlavor * @param mimeType the MIME type of the data represented by this class * @param humanPresentableName the human presentable name of the flavor */ --- 68,77 ----
*** 96,106 **** * DataFlavor(Class.forName()) as above. * <p> * otherwise: * <p> * representationClass = InputStream<p> ! * mimeType = mimeType<p> * * @param representationClass the class used in this DataFlavor * @param humanPresentableName the human presentable name of the flavor */ public ActivationDataFlavor(Class representationClass, --- 95,105 ---- * DataFlavor(Class.forName()) as above. * <p> * otherwise: * <p> * representationClass = InputStream<p> ! * mimeType = mimeType * * @param representationClass the class used in this DataFlavor * @param humanPresentableName the human presentable name of the flavor */ public ActivationDataFlavor(Class representationClass,
*** 173,183 **** this.humanPresentableName = humanPresentableName; } /** * Compares the DataFlavor passed in with this DataFlavor; calls ! * the <code>isMimeTypeEqual</code> method. * * @param dataFlavor the DataFlavor to compare with * @return true if the MIME type and representation class * are the same */ --- 172,182 ---- this.humanPresentableName = humanPresentableName; } /** * Compares the DataFlavor passed in with this DataFlavor; calls ! * the {@code isMimeTypeEqual} method. * * @param dataFlavor the DataFlavor to compare with * @return true if the MIME type and representation class * are the same */
< prev index next >