Example usage for Java java.awt.datatransfer DataFlavor fields, constructors, methods, implement or subclass
The text is from its open source code.
DataFlavor | stringFlavor The DataFlavor representing a Java Unicode String class, where: representationClass = java.lang.String mimeType = "application/x-java-serialized-object" |
DataFlavor | imageFlavor The DataFlavor representing a Java Image class, where: representationClass = java.awt.Image mimeType = "image/x-java-image"Will be null if java.awt.Image is not visible, the java.desktop module is not loaded, or the java.desktop module is not in the run-time image. |
DataFlavor | plainTextFlavor The DataFlavor representing plain text with Unicode encoding, where: representationClass = InputStream mimeType = "text/plain; charset=unicode"This DataFlavor has been deprecated because:
|
String | javaSerializedObjectMimeType A MIME Content-Type of application/x-java-serialized-object represents a graph of Java object(s) that have been made persistent. |
DataFlavor | javaFileListFlavor 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. |
String | javaJVMLocalObjectMimeType 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 . |
String | javaRemoteObjectMimeType 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. |
DataFlavor(Class> representationClass, String humanPresentableName) Constructs a DataFlavor that represents a Java class. | |
DataFlavor(String mimeType, String humanPresentableName) Constructs a DataFlavor that represents a MimeType . | |
DataFlavor(String mimeType) Constructs a DataFlavor from a mimeType string. |
Object | clone() Returns a clone of this DataFlavor . |
boolean | equals(Object o) The equals comparison for the DataFlavor class is implemented as follows: Two DataFlavor s are considered equal if and only if their MIME primary type and subtype and representation class are equal. |
boolean | equals(DataFlavor that) This method has the same behavior as #equals(Object) . |
boolean | equals(String s) Compares only the mimeType against the passed in String and representationClass is not considered in the comparison. |
Class> | getDefaultRepresentationClass() Returns the default representation class. |
String | getHumanPresentableName() Returns the human presentable name for the data format that this DataFlavor represents. |
String | getMimeType() Returns the MIME type string for this DataFlavor . |
String | getParameter(String paramName) Returns the human presentable name for this DataFlavor if paramName equals "humanPresentableName". |
String | getPrimaryType() Returns the primary MIME type for this DataFlavor . |
Reader | getReaderForText(Transferable transferable) Gets a Reader for a text flavor, decoded, if necessary, for the expected charset (encoding). |
Class> | getRepresentationClass() Returns the Class which objects supporting this DataFlavor will return when this DataFlavor is requested. |
String | getSubType() Returns the sub MIME type of this DataFlavor . |
DataFlavor | getTextPlainUnicodeFlavor() Returns a DataFlavor representing plain text with Unicode encoding, where: representationClass = java.io.InputStream mimeType = "text/plain; charset=<platform default Unicode encoding>" |
int | hashCode() Returns hash code for this DataFlavor . |
boolean | isFlavorJavaFileListType() Returns true if the DataFlavor specified represents a list of file objects. |
boolean | isFlavorRemoteObjectType() Returns true if the DataFlavor specified represents a remote object. |
boolean | isFlavorSerializedObjectType() Returns true if the DataFlavor specified represents a serialized object. |
boolean | isFlavorTextType() Returns whether this DataFlavor is a valid text flavor for this implementation of the Java platform. |
boolean | isMimeTypeEqual(String mimeType) Returns whether the string representation of the MIME type passed in is equivalent to the MIME type of this DataFlavor . |
boolean | isMimeTypeEqual(DataFlavor dataFlavor) Compares the mimeType of two DataFlavor objects. |
boolean | isMimeTypeEqual(MimeType mtype) Compares the mimeType of two DataFlavor objects. |
boolean | isMimeTypeSerializedObject() Does the DataFlavor represent a serialized object? |
boolean | isRepresentationClassByteBuffer() Returns whether the representation class for this DataFlavor is java.nio.ByteBuffer or a subclass thereof. |
boolean | isRepresentationClassCharBuffer() Returns whether the representation class for this DataFlavor is java.nio.CharBuffer or a subclass thereof. |
boolean | isRepresentationClassInputStream() Does the DataFlavor represent a java.io.InputStream ? |
boolean | isRepresentationClassReader() Returns whether the representation class for this DataFlavor is java.io.Reader or a subclass thereof. |
boolean | isRepresentationClassRemote() Returns true if the representation class is Remote . |
boolean | isRepresentationClassSerializable() Returns true if the representation class can be serialized. |
boolean | match(DataFlavor that) Identical to #equals(DataFlavor) . |
DataFlavor | selectBestTextFlavor(DataFlavor[] availableFlavors) Selects the best text DataFlavor from an array of DataFlavor s. |
void | setHumanPresentableName(String humanPresentableName) Sets the human presentable name for the data format that this DataFlavor represents. |
String | toString() String representation of this DataFlavor and its parameters. |