Liking cljdoc? Tell your friends :D

javax.activation.ActivationDataFlavor

The ActivationDataFlavor class is a special subclass of java.awt.datatransfer.DataFlavor. It allows the JAF to set all three values stored by the DataFlavor class via a new constructor. It also contains improved MIME parsing in the equals method. Except for the improved parsing, its semantics are identical to that of the JDK's DataFlavor class.

The ActivationDataFlavor class is a special subclass of
java.awt.datatransfer.DataFlavor. It allows the JAF to
set all three values stored by the DataFlavor class via a new
constructor. It also contains improved MIME parsing in the equals
 method. Except for the improved parsing, its semantics are
identical to that of the JDK's DataFlavor class.
raw docstring

->activation-data-flavorclj

(->activation-data-flavor representation-class human-presentable-name)
(->activation-data-flavor representation-class mime-type human-presentable-name)

Constructor.

Construct a DataFlavor that represents an arbitrary Java object. This constructor is an extension of the JDK's DataFlavor in that it allows the explicit setting of all three DataFlavor attributes.

The returned DataFlavor will have the following characteristics:

representationClass = representationClass mimeType = mimeType humanName = humanName

representation-class - the class used in this DataFlavor - java.lang.Class mime-type - the MIME type of the data represented by this class - java.lang.String human-presentable-name - the human presentable name of the flavor - java.lang.String

Constructor.

Construct a DataFlavor that represents an arbitrary
 Java object. This constructor is an extension of the
 JDK's DataFlavor in that it allows the explicit setting
 of all three DataFlavor attributes.

 The returned DataFlavor will have the following characteristics:

 representationClass = representationClass
 mimeType            = mimeType
 humanName           = humanName

representation-class - the class used in this DataFlavor - `java.lang.Class`
mime-type - the MIME type of the data represented by this class - `java.lang.String`
human-presentable-name - the human presentable name of the flavor - `java.lang.String`
raw docstring

equalsclj

(equals this data-flavor)

Compares the DataFlavor passed in with this DataFlavor; calls the isMimeTypeEqual method.

data-flavor - the DataFlavor to compare with - java.awt.datatransfer.DataFlavor

returns: true if the MIME type and representation class are the same - boolean

Compares the DataFlavor passed in with this DataFlavor; calls
 the isMimeTypeEqual method.

data-flavor - the DataFlavor to compare with - `java.awt.datatransfer.DataFlavor`

returns: true if the MIME type and representation class
                          are the same - `boolean`
raw docstring

get-human-presentable-nameclj

(get-human-presentable-name this)

Return the Human Presentable name.

returns: the human presentable name - java.lang.String

Return the Human Presentable name.

returns: the human presentable name - `java.lang.String`
raw docstring

get-mime-typeclj

(get-mime-type this)

Return the MIME type for this DataFlavor.

returns: the MIME type - java.lang.String

Return the MIME type for this DataFlavor.

returns: the MIME type - `java.lang.String`
raw docstring

get-representation-classclj

(get-representation-class this)

Return the representation class.

returns: the representation class - java.lang.Class

Return the representation class.

returns: the representation class - `java.lang.Class`
raw docstring

mime-type-equal?clj

(mime-type-equal? this mime-type)

Is the string representation of the MIME type passed in equivalent to the MIME type of this DataFlavor.

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.

mime-type - the MIME type - java.lang.String

returns: true if the same MIME type - boolean

Is the string representation of the MIME type passed in equivalent
 to the MIME type of this DataFlavor.

 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.

mime-type - the MIME type - `java.lang.String`

returns: true if the same MIME type - `boolean`
raw docstring

set-human-presentable-nameclj

(set-human-presentable-name this human-presentable-name)

Set the human presentable name.

human-presentable-name - the name to set - java.lang.String

Set the human presentable name.

human-presentable-name - the name to set - `java.lang.String`
raw docstring

cljdoc is a website building & hosting documentation for Clojure/Script libraries

× close