|
Generated by JDiff |
||||||||
PREV PACKAGE NEXT PACKAGE FRAMES NO FRAMES |
This file contains all the changes in documentation in the packagejava.awt.datatransfer
as colored differences. Deletions are shownlike this, and additions are shown like this.
If no deletions or additions are shown in an entry, the HTML tags will be what has changed. The new HTML tags are shown in the differences. If no documentation existed, and then some was added in a later version, this change is noted in the appropriate class pages of differences, but the change is not shown on this page. Only changes in existing text are shown here. Similarly, documentation which was inherited from another class or interface is not shown here.
Note that an HTML error in the new documentation may cause the display of other documentation changes to be presented incorrectly. For instance, failure to close a <code> tag will cause all subsequent paragraphs to be displayed differently.
A class which implements a mechanism to transfer data using cut/copy/paste operations. @version 1.10 0412 02/2202/9900 @author Amy Fowler
Defines the interface for classes that will provide data to a clipboard. @version 1.5 097 02/2102/9800 @author Amy Fowler
Each instance represents the opaque concept of a data format as would appear on a clipboard during drag and drop or in a file system.Class DataFlavor, constructor DataFlavor(String)@version 1.48
DataFlavor
objects are constant and never change once instantiated.3302/08/00 @author Blake Sullivan @author Laurence P. G. Cable @author Jeff Dunn
Construct a DataFlavor from a Mime Type string. The stringClass DataFlavor, boolean equals(DataFlavor)mustcan specify a "class=" parameter intoorder to succeed in constructing acreate a DataFlavor with the desiredDataFlavorrepresentation class. If the string does not contain "class=" parameter java.io.InputStream is used as default. @param mimeType the string used to identify the MIME type for this flavor. If thethe mimeType does notclassspecify aspecified by "class=" parameteror if the classis not successfully loaded then an IllegalArgumentException is thrown.
Class DataFlavor, boolean equals(Object)Compare this DataFlavor against anotherTwo DataFlavors are considered equalDataFlavorif and onlyobjectif their MIME primarybothtype andmimeTypesubtype andrepresentationClassrepresentation class areconsideredequal. Additionally if the primary type is "text" the charset parameter must also be equal. If either DataFlavor is of primary type "text" but no charset is specified the platform default charset is assumed for that DataFlavor. @return if the DataFlavors represent exactly the same type.
If the object is an instance of DataFlavor representationClass and MIME type will be compared. This method does not use equals(String)Class DataFlavor, boolean equals(String)whilemethod so itwilldoes notbereturniftrue
the object is afor the objects of String type. @return if the objects are equal
Compare only theClass DataFlavor, int hashCode()mineTypemimeType against the passed in String and representationClass is not considered in the comparison. If representationClass needs to be compared then equals(new DataFlavor(s)) may be used. @deprecated As inconsistent withhashCode()
contract useisMimeTypeEqual(String)
instead. @return if the String (MimeType) is equal
ReturnsClass DataFlavor, boolean isMimeTypeEqual(String)ahash codevalue for the object. This method is supportedforthe benefit of hashtables such as those provided by java.util.Hashtable. The general contract ofthis
hashCodeDataFlavoris: Whenever it is invoked on the same object more than once during an execution of a Java application the hashCode method must consistently return the same integer provided no information used in equals comparisons on the object is modified. This integer need not remain consistent from one execution of an application to another execution of the same application.IfFor twoobjects areequalaccording to the equals(Object) method then calling the hashCode method on each of the two objects must produceDataFlavorsthe same integer resulthash codes are equal.It isFornottherequiredString thatif two objects are unequal accordingmatchesto the java.langDataFlavor.
Object#equals(java.lang.ObjectString)method then calling the hashCode method on each of the two objects must produce distinct integer results. However the programmer should be aware that producing distinct integer results for unequal objects may improve the performance of hashtables. As muchasit isreasonably practical the hashCode method defined by class Object does return distinctnotintegers forguaranteed thatdistinctDataFlavor'sobjects.hash(Thiscode istypically implemented byequalconvertingto theinternalhashaddresscode of theobject into an integer but this implementation technique is not required by the JavaTM programming languageString.)@return a hash codevaluefor thisobject. @see java.lang.Object#equals(java.lang.Object) @see java.util.HashtableDataFlavor
Is the string representation of the MIME type passed in equivalent to the MIME type of this DataFlavor Parameters are not incuded in the comparison. This may involve adding default attributes for some MIME types (like adding charset=US-ASCII to text/plain MIME types that have no charset parameter specified) When null is passed as a parameter the result is false
. @return if the string representation of the MIME type passed is equivalent to the MIME type of this DataFlavor.
Class DataFlavor, DataFlavor plainTextFlavorThe DataFlavor representing plain text with unicode encoding where:representationClass = InputStream
mimeType = "text/plain; charset=unicode"This DataFlavor has been deprecated because (1) Its representation is an InputStream an 8-bit based representation while Unicode is a 16-bit character set; and (2) The charset "unicode" is not well-defined. "unicode" implies a particular platform's implementation of Unicode not a cross-platform implementation. @deprecated as of 1.3. Use
DataFlavor.getReaderForText( Transferable)
instead ofTransferable. getTransferData(DataFlavor.plainTextFlavor)
.
The FlavorMap is an interface to a map that maps platform native type names (strings) to MIME type strings and also their associated DataFlavors.
This map is used by the DnD system to map platform data types to MIME types to enable the transfer of objects between Java and the platform via the platform DnD System. @see SystemFlavorMap @version 1.914 02/02/00 @sinceJDK11.2
AClass StringSelection, constructor StringSelection(String)classTransferable which implements the capability required to transfer asimpleString.javaThisStringTransferable properly supportsDataFlavor.stringFlavor
and all equivalent flavors. Support forDataFlavor.plainTextFlavor
and allin plain textequivalent flavors isformatdeprecated. No other DataFlavors are supported. @see java.awt.datatransfer.DataFlavor.stringFlavor @see java.awt.datatransfer.DataFlavor.plainTextFlavor
Creates aClass StringSelection, Object getTransferData(DataFlavor)transferableTransferableobjectcapable of transferring the specifiedstring in plain text formatString.
Class StringSelection, DataFlavor[] getTransferDataFlavors()IfReturns the Transferable's datawasin the requestedin theDataFlavor if"java.langpossible.String"If the desired flavorreturnisDataFlavor.stringFlavor
or an equivalent flavor the String representing the selection is returned. If the desired flavor is DataFlavor.plainTextFlavor or an equivalent flavor a Reader is returned. Note: The behavior of this method for DataFlavor.plainTextFlavor and equivalent DataFlavors is inconsistent with the definition ofDataFlavor.plainTextFlavor
. @param flavor the requested flavor for the data @exceptionreturn the data in the requested flavor as outlined above. @throws UnsupportedFlavorException if the requested data flavor is notsupported in theequivalent to either"or
javaDataFlavor.langstringFlavorDataFlavor.
StringplainTextFlavor".flavor@see java.io.Reader
ReturnsClass StringSelection, boolean isDataFlavorSupported(DataFlavor)thean array of flavors in whichitthis Transferable can provide the data.DataFlavor.stringFlavor
is properly supported. Support forDataFlavor.plainTextFlavor
is deprecated. @return an array of length two whose elements areDataFlavor. stringFlavor
andDataFlavor.plainTextFlavor
.
Returns whether the requested flavor is supported by thisobjectTransferable. @param flavor the requested flavor for the data @return true if flavor is equal toDataFlavor.stringFlavor
orDataFlavor.plainTextFlavor
false otherwise.
The SystemFlavorMap is an externally configurable map that maps platform native type names (strings) to MIME type strings and also their associated DataFlavors.
This map is used by the DnD system to map platform data types to MIME types to enable the transfer of objects between Java and the platform via the platform DnD System. @version 1.1119 02/02/00 @sinceJDK11.2
Defines the interface for classes that can be used to provide data for a transfer operation. @version 1.6 098 02/2102/9800 @author Amy Fowler
Signals that the requested data is not supported in this flavor. @see Transferable#getTransferData @version 1.6 098 02/2102/9800 @author Amy Fowler