aboutsummaryrefslogtreecommitdiff
path: root/libjava/java/awt/datatransfer/DataFlavor.java
diff options
context:
space:
mode:
Diffstat (limited to 'libjava/java/awt/datatransfer/DataFlavor.java')
-rw-r--r--libjava/java/awt/datatransfer/DataFlavor.java12
1 files changed, 9 insertions, 3 deletions
diff --git a/libjava/java/awt/datatransfer/DataFlavor.java b/libjava/java/awt/datatransfer/DataFlavor.java
index 3c6b272..5bce866 100644
--- a/libjava/java/awt/datatransfer/DataFlavor.java
+++ b/libjava/java/awt/datatransfer/DataFlavor.java
@@ -87,6 +87,8 @@ public static final DataFlavor stringFlavor;
*/
public static final DataFlavor javaFileListFlavor;
+public static final DataFlavor imageFlavor;
+
/**
* This is the MIME type used for transferring a serialized object.
* The representation class is the type of object be deserialized.
@@ -125,6 +127,10 @@ static
"Java File List");
// javaFileListFlavor.mimeType = "application/x-java-file-list";
+
+ imageFlavor
+ = new DataFlavor(java.awt.Image.class,
+ "Java Image");
}
/*************************************************************************/
@@ -498,7 +504,7 @@ setHumanPresentableName(String humanPresentableName)
* @return <code>true</code> if the MIME type is equal to this object's
* MIME type, <code>false</code> otherwise.
*/
-public boolean
+public final boolean
isMimeTypeEqual(String mimeType)
{
// FIXME: Need to handle default attributes and parameters
@@ -861,7 +867,7 @@ getTextPlainUnicodeFlavor()
*
* @since 1.3
*/
-public static final Class
+public final Class
getDefaultRepresentationClass()
{
return(java.io.InputStream.class);
@@ -871,7 +877,7 @@ getDefaultRepresentationClass()
/**
* XXX - Currently returns <code>java.io.InputStream</code>.
*/
-public static final String
+public final String
getDefaultRepresentationClassAsString()
{
return(getDefaultRepresentationClass().getName());