Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

javax.activation
Class ActivationDataFlavor  view ActivationDataFlavor download ActivationDataFlavor.java

java.lang.Object
  extended byjava.awt.datatransfer.DataFlavor
      extended byjavax.activation.ActivationDataFlavor
All Implemented Interfaces:
java.lang.Cloneable, java.io.Externalizable, java.io.Serializable

public class ActivationDataFlavor
extends java.awt.datatransfer.DataFlavor

Version:
$Rev: 158704 $ $Date: 2005-03-22 17:53:37 -0800 (Tue, 22 Mar 2005) $

Field Summary
private  java.lang.String humanPresentableName
           
private  java.lang.String mimeType
           
private  java.lang.Class representationClass
           
 
Fields inherited from class java.awt.datatransfer.DataFlavor
imageFlavor, javaFileListFlavor, javaJVMLocalObjectMimeType, javaRemoteObjectMimeType, javaSerializedObjectMimeType, plainTextFlavor, stringFlavor
 
Constructor Summary
ActivationDataFlavor(java.lang.Class representationClass, java.lang.String humanPresentableName)
           
ActivationDataFlavor(java.lang.Class representationClass, java.lang.String mimeType, java.lang.String humanPresentableName)
           
ActivationDataFlavor(java.lang.String mimeType, java.lang.String humanPresentableName)
           
 
Method Summary
 boolean equals(java.awt.datatransfer.DataFlavor dataFlavor)
          This method test the specified DataFlavor for equality against this object.
 java.lang.String getHumanPresentableName()
          Returns the human presentable name for this flavor.
 java.lang.String getMimeType()
          Returns the MIME type of this flavor.
 java.lang.Class getRepresentationClass()
          Returns the representation class for this flavor.
 boolean isMimeTypeEqual(java.lang.String mimeType)
          Tests the MIME type of this object for equality against the specified MIME type.
protected  java.lang.String normalizeMimeType(java.lang.String mimeType)
          This method exists for backward compatibility.
protected  java.lang.String normalizeMimeTypeParameter(java.lang.String parameterName, java.lang.String parameterValue)
          This method exists for backward compatibility.
 void setHumanPresentableName(java.lang.String humanPresentableName)
          Sets the human presentable name to the specified value.
 
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
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

representationClass

private final java.lang.Class representationClass

mimeType

private final java.lang.String mimeType

humanPresentableName

private java.lang.String humanPresentableName
Constructor Detail

ActivationDataFlavor

public ActivationDataFlavor(java.lang.Class representationClass,
                            java.lang.String mimeType,
                            java.lang.String humanPresentableName)

ActivationDataFlavor

public ActivationDataFlavor(java.lang.Class representationClass,
                            java.lang.String humanPresentableName)

ActivationDataFlavor

public ActivationDataFlavor(java.lang.String mimeType,
                            java.lang.String humanPresentableName)
Method Detail

getMimeType

public java.lang.String getMimeType()
Description copied from class: java.awt.datatransfer.DataFlavor
Returns the MIME type of this flavor.


getRepresentationClass

public java.lang.Class getRepresentationClass()
Description copied from class: java.awt.datatransfer.DataFlavor
Returns the representation class for this flavor.


getHumanPresentableName

public java.lang.String getHumanPresentableName()
Description copied from class: java.awt.datatransfer.DataFlavor
Returns the human presentable name for this flavor.


setHumanPresentableName

public void setHumanPresentableName(java.lang.String humanPresentableName)
Description copied from class: java.awt.datatransfer.DataFlavor
Sets the human presentable name to the specified value.


equals

public boolean equals(java.awt.datatransfer.DataFlavor dataFlavor)
Description copied from class: java.awt.datatransfer.DataFlavor
This method test the specified DataFlavor for equality against this object. This will be true if the MIME type and representation type are the equal.


isMimeTypeEqual

public boolean isMimeTypeEqual(java.lang.String mimeType)
Description copied from class: java.awt.datatransfer.DataFlavor
Tests the MIME type of this object for equality against the specified MIME type. Ignores parameters.


normalizeMimeTypeParameter

protected java.lang.String normalizeMimeTypeParameter(java.lang.String parameterName,
                                                      java.lang.String parameterValue)
Description copied from class: java.awt.datatransfer.DataFlavor
This method exists for backward compatibility. It simply returns the same name/value pair passed in.


normalizeMimeType

protected java.lang.String normalizeMimeType(java.lang.String mimeType)
Description copied from class: java.awt.datatransfer.DataFlavor
This method exists for backward compatibility. It simply returns the MIME type string unchanged.