Contents | Package | Class | Tree | Deprecated | Index | Help | |||
PREV | NEXT | SHOW LISTS | HIDE LISTS |
java.lang.Object | +----java.awt.datatransfer.DataFlavor | +----javax.activation.ActivationDataFlavor
equals
method. Besides the improved parsing, it's semantics are
identical to that of the JDK's DataFlavor class.
Fields inherited from class java.awt.datatransfer.DataFlavor |
plainTextFlavor, stringFlavor |
Constructor Summary | |
ActivationDataFlavor(java.lang.Class representationClass,
java.lang.String mimeType,
java.lang.String humanPresentableName)
|
|
ActivationDataFlavor(java.lang.Class representationClass,
java.lang.String humanPresentableName)
|
|
ActivationDataFlavor(java.lang.String mimeType,
java.lang.String humanPresentableName)
|
Method Summary | |
boolean | equals(java.awt.datatransfer.DataFlavor dataFlavor)
|
java.lang.String | getHumanPresentableName()
|
java.lang.String | getMimeType()
|
java.lang.Class | getRepresentationClass()
|
boolean | isMimeTypeEqual(java.lang.String mimeType)
|
java.lang.String | normalizeMimeType(java.lang.String mimeType)
|
java.lang.String | normalizeMimeTypeParameter(java.lang.String parameterName,
java.lang.String parameterValue)
|
void | setHumanPresentableName(java.lang.String humanPresentableName)
|
Methods inherited from class java.awt.datatransfer.DataFlavor |
clone, equals, equals, equals, equals, getHumanPresentableName, getMimeType, getParameter, getPrimaryType, getRepresentationClass, getSubType, isMimeTypeEqual, isMimeTypeEqual, isMimeTypeEqual, isMimeTypeSerializedObject, isRepresentationClassInputStream, isRepresentationClassSerializable, normalizeMimeType, normalizeMimeTypeParameter, readObject, setHumanPresentableName, writeObject |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public ActivationDataFlavor(java.lang.Class representationClass, java.lang.String mimeType, java.lang.String humanPresentableName)
The returned DataFlavor will have the following characteristics:
representationClass = representationClass
mimeType = mimeType
humanName = humanName
representationClass
- the class used in this DataFlavor
mimeType
- the MIME type of the data represented by this class
humanPresentableName
- the human presentable name of the flavor
public ActivationDataFlavor(java.lang.Class representationClass, java.lang.String humanPresentableName)
The returned DataFlavor will have the following characteristics:
If the mimeType is "application/x-java-serialized-object; class=", the result is the same as *calling new DataFlavor(Class:forName() as above
otherwise:
representationClass = InputStream
mimeType = mimeType
public ActivationDataFlavor(java.lang.String mimeType, java.lang.String humanPresentableName)
The returned DataFlavor will have the following characteristics:
If the mimeType is "application/x-java-serialized-object; class=", the result is the same as calling new DataFlavor(Class:forName() as above otherwise:
representationClass = InputStream
mimeType = mimeType
Method Detail |
public java.lang.String getMimeType()
public java.lang.Class getRepresentationClass()
public java.lang.String getHumanPresentableName()
public void setHumanPresentableName(java.lang.String humanPresentableName)
public boolean equals(java.awt.datatransfer.DataFlavor dataFlavor)
public boolean isMimeTypeEqual(java.lang.String mimeType)
ActivationDataFlavor delegates the comparison of MIME types to the MimeType class included as part of the JavaBeans Activation Framework. This provides a more robust comparison than is normally available in the DataFlavor class.
protected java.lang.String normalizeMimeTypeParameter(java.lang.String parameterName, java.lang.String parameterValue)
This method is called for each parameter name/value pair and should return the normalized representation of the parameterValue
protected java.lang.String normalizeMimeType(java.lang.String mimeType)
Contents | Package | Class | Tree | Deprecated | Index | Help | |||
PREV | NEXT | SHOW LISTS | HIDE LISTS |