API Overview API Index Package Overview Direct link to this page
JDK 1.6
  javax.activation. ActivationDataFlavor View Source
Author(s)
Since
1.6
Version
Serial
Hierarchy
 Object
      DataFlavor
          ActivationDataFlavor
Implements
Subclasses
Description
public class ActivationDataFlavor
  The ActivationDataFlavor class is a special subclass of java.awt.datatransfer.DataFlavor.
See also:   
Constructors
public ActivationDataFlavor (Class representationClass, String humanPresentableName)
  Construct a DataFlavor that represents a MimeType.
public ActivationDataFlavor (Class representationClass, String mimeType, String humanPresentableName)
  Construct a DataFlavor that represents an arbitrary Java object.
public ActivationDataFlavor (String mimeType, String humanPresentableName)
  Construct a DataFlavor that represents a MimeType.
Methods
Hide/Show inherited methods
public Object clone () throws CloneNotSupportedException [Inherited From DataFlavor]
  Returns a clone of this DataFlavor.
public boolean equals (DataFlavor dataFlavor) [Overrides DataFlavor]
  Compares the DataFlavor passed in with this DataFlavor; calls the isMimeTypeEqual method.
public boolean equals (Object o) [Inherited From DataFlavor]
  Tests an arbitrary Object to this DataFlavor for equality.
@Deprecated
public boolean equals (String s) [Inherited From DataFlavor]
  Compares only the mimeType against the passed in String and representationClass is not considered in the comparison.
publicfinal Class<Object> getDefaultRepresentationClass () [Inherited From DataFlavor]
publicfinal String getDefaultRepresentationClassAsString () [Inherited From DataFlavor]
public String getHumanPresentableName () [Overrides DataFlavor]
  Return the Human Presentable name.
public String getMimeType () [Overrides DataFlavor]
  Return the MIME type for this DataFlavor.
public String getParameter (String paramName) [Inherited From DataFlavor]
  Returns the human presentable name for this DataFlavor if paramName equals "humanPresentableName".
public String getPrimaryType () [Inherited From DataFlavor]
  Returns the primary MIME type for this DataFlavor.
public Reader getReaderForText (Transferable transferable) throws UnsupportedFlavorException IOException [Inherited From DataFlavor]
  Gets a Reader for a text flavor, decoded, if necessary, for the expected charset (encoding).
public Class getRepresentationClass () [Overrides DataFlavor]
  Return the representation class.
public String getSubType () [Inherited From DataFlavor]
  Returns the sub MIME type of this DataFlavor.
publicfinalstatic DataFlavor getTextPlainUnicodeFlavor () [Inherited From DataFlavor]
  Returns a DataFlavor representing plain text with Unicode encoding, where:
public int hashCode () [Inherited From DataFlavor]
  Returns hash code for this DataFlavor.
public boolean isFlavorJavaFileListType () [Inherited From DataFlavor]
  Returns true if the DataFlavor specified represents a list of file objects.
public boolean isFlavorRemoteObjectType () [Inherited From DataFlavor]
  Returns true if the DataFlavor specified represents a remote object.
public boolean isFlavorSerializedObjectType () [Inherited From DataFlavor]
  Returns true if the DataFlavor specified represents a serialized object.
public boolean isFlavorTextType () [Inherited From DataFlavor]
  Returns whether this DataFlavor is a valid text flavor for this implementation of the Java platform.
publicfinal boolean isMimeTypeEqual (DataFlavor dataFlavor) [Inherited From DataFlavor]
  Compares the mimeType of two DataFlavor objects.
public boolean isMimeTypeEqual (String mimeType) [Overrides DataFlavor]
  Is the string representation of the MIME type passed in equivalent to the MIME type of this DataFlavor.
public boolean isMimeTypeSerializedObject () [Inherited From DataFlavor]
Does the DataFlavor represent a serialized object?
public boolean isRepresentationClassByteBuffer () [Inherited From DataFlavor]
  Returns whether the representation class for this DataFlavor is java.nio.ByteBuffer or a subclass thereof.
public boolean isRepresentationClassCharBuffer () [Inherited From DataFlavor]
  Returns whether the representation class for this DataFlavor is java.nio.CharBuffer or a subclass thereof.
public boolean isRepresentationClassInputStream () [Inherited From DataFlavor]
Does the DataFlavor represent a java.io.InputStream?
public boolean isRepresentationClassReader () [Inherited From DataFlavor]
  Returns whether the representation class for this DataFlavor is java.io.Reader or a subclass thereof.
public boolean isRepresentationClassRemote () [Inherited From DataFlavor]
  Returns true if the representation class is Remote.
public boolean isRepresentationClassSerializable () [Inherited From DataFlavor]
  Returns true if the representation class can be serialized.
public boolean match (DataFlavor that) [Inherited From DataFlavor]
  Tests a DataFlavor to this DataFlavor for equality.
protected String normalizeMimeType (String mimeType) [Overrides DataFlavor]
  Called for each MIME type string to give DataFlavor subtypes the opportunity to change how the normalization of MIME types is accomplished.
protected String normalizeMimeTypeParameter (String parameterName, String parameterValue) [Overrides DataFlavor]
  Called on DataFlavor for every MIME Type parameter to allow DataFlavor subclasses to handle special parameters like the text/plain charset parameters, whose values are case insensitive.
publicsynchronized void readExternal (ObjectInput is) throws IOException ClassNotFoundException [Inherited From DataFlavor]
Restores this DataFlavor from a Serialized state.
publicfinalstatic DataFlavor selectBestTextFlavor (DataFlavor availableFlavors) [Inherited From DataFlavor]
  Selects the best text DataFlavor from an array of DataFlavors.
public void setHumanPresentableName (String humanPresentableName) [Overrides DataFlavor]
  Set the human presentable name.
public String toString () [Inherited From DataFlavor]
  String representation of this DataFlavor and its parameters.
protectedfinalstatic Class<Object> tryToLoadClass (String className, ClassLoader fallback) throws ClassNotFoundException [Inherited From DataFlavor]
  Tries to load a class from: the bootstrap loader, the system loader, the context loader (if one is present) and finally the loader specified.
publicsynchronized void writeExternal (ObjectOutput os) throws IOException [Inherited From DataFlavor]
Serializes this DataFlavor.
Fields
Hide/Show inherited fields
publicfinalstatic DataFlavor imageFlavor [Inherited From DataFlavor]
  The DataFlavor representing a Java Image class, where:
publicfinalstatic DataFlavor javaFileListFlavor [Inherited From DataFlavor]
  To transfer a list of files to/from Java (and the underlying platform) a DataFlavor of this type/subtype and representation class of java.util.List is used.
publicfinalstatic String javaJVMLocalObjectMimeType = "application/x-java-jvm-local-objectref" [Inherited From DataFlavor]
  To transfer a reference to an arbitrary Java object reference that has no associated MIME Content-type, across a Transferable interface WITHIN THE SAME JVM, a DataFlavor with this type/subtype is used, with a representationClass equal to the type of the class/interface being passed across the Transferable.
publicfinalstatic String javaRemoteObjectMimeType = "application/x-java-remote-object" [Inherited From DataFlavor]
In order to pass a live link to a Remote object via a Drag and Drop ACTION_LINK operation a Mime Content Type of application/x-java-remote-object should be used, where the representation class of the DataFlavor represents the type of the Remote interface to be transferred.
publicfinalstatic String javaSerializedObjectMimeType = "application/x-java-serialized-object" [Inherited From DataFlavor]
  A MIME Content-Type of application/x-java-serialized-object represents a graph of Java object(s) that have been made persistent.
@Deprecated
publicfinalstatic DataFlavor plainTextFlavor [Inherited From DataFlavor]
  The DataFlavor representing plain text with Unicode encoding, where:
publicfinalstatic DataFlavor stringFlavor [Inherited From DataFlavor]
  The DataFlavor representing a Java Unicode String class, where:
Nested Classes
Generated By: JavaOnTracks Doclet 0.1.4     ©Thibaut Colar