146 |
private final String mimeType; |
private final String mimeType; |
147 |
|
|
148 |
// The representation class for this flavor |
// The representation class for this flavor |
149 |
private final Class representationClass; |
private final Class<?> representationClass; |
150 |
|
|
151 |
// The human readable name of this flavor |
// The human readable name of this flavor |
152 |
private String humanPresentableName; |
private String humanPresentableName; |
169 |
* |
* |
170 |
* @exception ClassNotFoundException If the class cannot be loaded. |
* @exception ClassNotFoundException If the class cannot be loaded. |
171 |
*/ |
*/ |
172 |
protected static final Class |
protected static final Class<?> |
173 |
tryToLoadClass(String className, ClassLoader classLoader) |
tryToLoadClass(String className, ClassLoader classLoader) |
174 |
throws ClassNotFoundException |
throws ClassNotFoundException |
175 |
{ |
{ |
256 |
* @param humanPresentableName The display name of the object. |
* @param humanPresentableName The display name of the object. |
257 |
*/ |
*/ |
258 |
public |
public |
259 |
DataFlavor(Class representationClass, String humanPresentableName) |
DataFlavor(Class<?> representationClass, String humanPresentableName) |
260 |
{ |
{ |
261 |
this(representationClass, |
this(representationClass, |
262 |
"application/x-java-serialized-object" |
"application/x-java-serialized-object" |
381 |
* |
* |
382 |
* @return The representation class for this flavor. |
* @return The representation class for this flavor. |
383 |
*/ |
*/ |
384 |
public Class |
public Class<?> |
385 |
getRepresentationClass() |
getRepresentationClass() |
386 |
{ |
{ |
387 |
return(representationClass); |
return(representationClass); |
885 |
* |
* |
886 |
* @since 1.3 |
* @since 1.3 |
887 |
*/ |
*/ |
888 |
public final Class |
public final Class<?> |
889 |
getDefaultRepresentationClass() |
getDefaultRepresentationClass() |
890 |
{ |
{ |
891 |
return(java.io.InputStream.class); |
return(java.io.InputStream.class); |