⇒ Index (Frames) |  ⇒ Index (No Frames) |  ⇒ Package |  ⇒ Package Tree |  ⇒ Full Tree 
javax.activation

Class ActivationDataFlavor

DataFlavor
|
+--javax.activation.ActivationDataFlavor


public class ActivationDataFlavor
extends DataFlavor

Activation-specific DataFlavor with improved MIME parsing.
Author:

Constructor Summary

ActivationDataFlavor(Class representationClass, String mimeType, String humanPresentableName)

Constructor.

ActivationDataFlavor(Class representationClass, String humanPresentableName)

Constructor.

ActivationDataFlavor(String mimeType, String humanPresentableName)

Constructor.

Method Summary

boolean

equals(DataFlavor dataFlavor)

String

getHumanPresentableName()

String

getMimeType()

Class

getRepresentationClass()

boolean

isMimeTypeEqual(String mimeType)

String

normalizeMimeType(String mimeType)

String

normalizeMimeTypeParameter(String parameterName, String parameterValue)

void

setHumanPresentableName(String humanPresentableName)

Constructor Details

ActivationDataFlavor

public ActivationDataFlavor(Class representationClass, String humanPresentableName)

Constructor.

Parameters:
representationClass - the representation class
humanPresentableName - the human-presentable name of the data flavor

ActivationDataFlavor

public ActivationDataFlavor(Class representationClass, String mimeType, String humanPresentableName)

Constructor.

Parameters:
representationClass - the representation class
mimeType - the MIME type of the data
humanPresentableName - 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 data
humanPresentableName - the human-presentable name of the data flavor

Method Details

equals

public boolean equals(DataFlavor dataFlavor)

Parameters:
dataFlavor

getHumanPresentableName

public String getHumanPresentableName()


getMimeType

public String getMimeType()


getRepresentationClass

public Class getRepresentationClass()


isMimeTypeEqual

public boolean isMimeTypeEqual(String mimeType)

Parameters:
mimeType

normalizeMimeType

protected String normalizeMimeType(String mimeType)

Parameters:
mimeType

normalizeMimeTypeParameter

protected String normalizeMimeTypeParameter(String parameterName, String parameterValue)

Parameters:
parameterName
parameterValue

setHumanPresentableName

public void setHumanPresentableName(String humanPresentableName)

Parameters:
humanPresentableName