javax.activation
Class ActivationDataFlavor
java.lang.Object
java.awt.datatransfer.DataFlavor
javax.activation.ActivationDataFlavor
- All Implemented Interfaces:
- Cloneable, Externalizable, Serializable
- public class ActivationDataFlavor
- extends DataFlavor
Activation-specific DataFlavor with improved MIME parsing.
- See Also:
- Serialized Form
Methods inherited from class java.awt.datatransfer.DataFlavor |
clone, equals, equals, getDefaultRepresentationClass, getDefaultRepresentationClassAsString, getParameter, getPrimaryType, getReaderForText, getSubType, getTextPlainUnicodeFlavor, hashCode, isFlavorJavaFileListType, isFlavorRemoteObjectType, isFlavorSerializedObjectType, isFlavorTextType, isMimeTypeEqual, isMimeTypeSerializedObject, isRepresentationClassByteBuffer, isRepresentationClassCharBuffer, isRepresentationClassInputStream, isRepresentationClassReader, isRepresentationClassRemote, isRepresentationClassSerializable, match, readExternal, selectBestTextFlavor, toString, tryToLoadClass, writeExternal |
ActivationDataFlavor
public ActivationDataFlavor(Class representationClass,
String mimeType,
String humanPresentableName)
- Constructor.
- Parameters:
representationClass
- the representation classmimeType
- the MIME type of the datahumanPresentableName
- the human-presentable name of the data
flavor
ActivationDataFlavor
public ActivationDataFlavor(Class representationClass,
String humanPresentableName)
- Constructor.
- Parameters:
representationClass
- the representation classhumanPresentableName
- the human-presentable name of the data
flavor
ActivationDataFlavor
public ActivationDataFlavor(String mimeType,
String humanPresentableName)
- Constructor. The representation class is an InputStream.
- Parameters:
mimeType
- the MIME type of the datahumanPresentableName
- the human-presentable name of the data
flavor
getMimeType
public String getMimeType()
getRepresentationClass
public Class getRepresentationClass()
getHumanPresentableName
public String getHumanPresentableName()
setHumanPresentableName
public void setHumanPresentableName(String humanPresentableName)
equals
public boolean equals(DataFlavor dataFlavor)
isMimeTypeEqual
public boolean isMimeTypeEqual(String mimeType)
normalizeMimeTypeParameter
protected String normalizeMimeTypeParameter(String parameterName,
String parameterValue)
normalizeMimeType
protected String normalizeMimeType(String mimeType)