javax.activation
Class ActivationDataFlavor
DataFlavor
javax.activation.ActivationDataFlavor
public class ActivationDataFlavor
extends DataFlavor
Activation-specific DataFlavor with improved MIME parsing.
ActivationDataFlavor
public ActivationDataFlavor(Class representationClass,
String humanPresentableName)
Constructor.
representationClass
- the representation classhumanPresentableName
- the human-presentable name of the data
flavor
ActivationDataFlavor
public ActivationDataFlavor(Class representationClass,
String mimeType,
String humanPresentableName)
Constructor.
representationClass
- the representation classmimeType
- the MIME type of the datahumanPresentableName
- the human-presentable name of the data
flavor
ActivationDataFlavor
public ActivationDataFlavor(String mimeType,
String humanPresentableName)
Constructor. The representation class is an InputStream.
mimeType
- the MIME type of the datahumanPresentableName
- the human-presentable name of the data
flavor
equals
public boolean equals(DataFlavor dataFlavor)
getHumanPresentableName
public String getHumanPresentableName()
getMimeType
public String getMimeType()
getRepresentationClass
public Class getRepresentationClass()
isMimeTypeEqual
public boolean isMimeTypeEqual(String mimeType)
normalizeMimeType
protected String normalizeMimeType(String mimeType)
normalizeMimeTypeParameter
protected String normalizeMimeTypeParameter(String parameterName,
String parameterValue)
setHumanPresentableName
public void setHumanPresentableName(String humanPresentableName)