jaxws/src/java.activation/share/classes/javax/activation/ActivationDataFlavor.java
equal
deleted
inserted
replaced
29 import java.io.IOException; |
29 import java.io.IOException; |
30 import javax.activation.MimeType; |
30 import javax.activation.MimeType; |
31 |
31 |
32 /** |
32 /** |
33 * The ActivationDataFlavor class is a special subclass of |
33 * The ActivationDataFlavor class is a special subclass of |
34 * <code>java.awt.datatransfer.DataFlavor</code>. It allows the JAF to |
34 * {@code java.awt.datatransfer.DataFlavor}. It allows the JAF to |
35 * set all three values stored by the DataFlavor class via a new |
35 * set all three values stored by the DataFlavor class via a new |
36 * constructor. It also contains improved MIME parsing in the <code>equals |
36 * constructor. It also contains improved MIME parsing in the {@code equals} |
37 * </code> method. Except for the improved parsing, its semantics are |
37 * method. Except for the improved parsing, its semantics are |
38 * identical to that of the JDK's DataFlavor class. |
38 * identical to that of the JDK's DataFlavor class. |
39 * |
39 * |
40 * @since 1.6 |
40 * @since 1.6 |
41 */ |
41 */ |
42 |
42 |
68 * The returned DataFlavor will have the following characteristics: |
68 * The returned DataFlavor will have the following characteristics: |
69 * <p> |
69 * <p> |
70 * representationClass = representationClass<br> |
70 * representationClass = representationClass<br> |
71 * mimeType = mimeType<br> |
71 * mimeType = mimeType<br> |
72 * humanName = humanName |
72 * humanName = humanName |
73 * <p> |
|
74 * |
73 * |
75 * @param representationClass the class used in this DataFlavor |
74 * @param representationClass the class used in this DataFlavor |
76 * @param mimeType the MIME type of the data represented by this class |
75 * @param mimeType the MIME type of the data represented by this class |
77 * @param humanPresentableName the human presentable name of the flavor |
76 * @param humanPresentableName the human presentable name of the flavor |
78 */ |
77 */ |
96 * DataFlavor(Class.forName()) as above. |
95 * DataFlavor(Class.forName()) as above. |
97 * <p> |
96 * <p> |
98 * otherwise: |
97 * otherwise: |
99 * <p> |
98 * <p> |
100 * representationClass = InputStream<p> |
99 * representationClass = InputStream<p> |
101 * mimeType = mimeType<p> |
100 * mimeType = mimeType |
102 * |
101 * |
103 * @param representationClass the class used in this DataFlavor |
102 * @param representationClass the class used in this DataFlavor |
104 * @param humanPresentableName the human presentable name of the flavor |
103 * @param humanPresentableName the human presentable name of the flavor |
105 */ |
104 */ |
106 public ActivationDataFlavor(Class representationClass, |
105 public ActivationDataFlavor(Class representationClass, |
173 this.humanPresentableName = humanPresentableName; |
172 this.humanPresentableName = humanPresentableName; |
174 } |
173 } |
175 |
174 |
176 /** |
175 /** |
177 * Compares the DataFlavor passed in with this DataFlavor; calls |
176 * Compares the DataFlavor passed in with this DataFlavor; calls |
178 * the <code>isMimeTypeEqual</code> method. |
177 * the {@code isMimeTypeEqual} method. |
179 * |
178 * |
180 * @param dataFlavor the DataFlavor to compare with |
179 * @param dataFlavor the DataFlavor to compare with |
181 * @return true if the MIME type and representation class |
180 * @return true if the MIME type and representation class |
182 * are the same |
181 * are the same |
183 */ |
182 */ |