Lines Matching defs:flavors

121  * The concept of "flavors" and "natives" is extended to include "formats",
372 * text DataFlavors, and for non-charset text flavors, this method returns
397 * parameter. Must only be called for flavors with a primary type of
539 public Map getNativesForFlavors(DataFlavor[] flavors) {
540 return map.getNativesForFlavors(flavors);
558 Map flavors =
560 DataFlavor flavor = (DataFlavor)flavors.get(nat);
645 * Transferable's transfer data flavors can be translated. The value of
654 DataFlavor[] flavors = contents.getTransferDataFlavors();
655 if (flavors == null) {
658 return getFormatsForFlavors(flavors, map);
684 * @param flavors the data flavors
687 * @throws NullPointerException if flavors or map is <code>null</code>
689 public SortedMap getFormatsForFlavors(DataFlavor[] flavors, FlavorTable map) {
690 Map formatMap = new HashMap(flavors.length);
691 Map textPlainMap = new HashMap(flavors.length);
695 Map indexMap = new HashMap(flavors.length);
696 Map textPlainIndexMap = new HashMap(flavors.length);
703 for (int i = flavors.length - 1; i >= 0; i--) {
704 DataFlavor flavor = flavors[i];
769 public long[] getFormatsForFlavorsAsArray(DataFlavor[] flavors,
771 return keysToLongArray(getFormatsForFlavors(flavors, map));
805 List flavors = map.getFlavorsForNative(nat);
807 for (Iterator iter = flavors.iterator(); iter.hasNext(); ) {
881 List flavors = map.getFlavorsForNative(nat);
883 for (Iterator iter = flavors.iterator(); iter.hasNext(); ) {
1258 // Source data is a ByteBuffer. For arbitrary flavors, simply return
1259 // the array. For text flavors, decode back to a String and recur to
1276 // Source data is a byte array. For arbitrary flavors, simply return
1277 // the array. For text flavors, decode back to a String and recur to
1364 // Source data is an InputStream. For arbitrary flavors, just grab the
1365 // bytes and dump them into a byte array. For text flavors, decode back
1662 // Target data is an InputStream. For arbitrary flavors, just return
1663 // the raw bytes. For text flavors, decode to strip terminators and
1714 // Target data is a ByteBuffer. For arbitrary flavors, just return
1715 // the raw bytes. For text flavors, convert to a String to strip
1735 // Target data is a byte array. For arbitrary flavors, just return
1736 // the raw bytes. For text flavors, convert to a String to strip
1792 * For arbitrary flavors, just use the raw InputStream. For text flavors,
2422 DataFlavor[] flavors = new DataFlavor[flavorsSet.size()];
2423 flavorsSet.toArray(flavors);
2426 Arrays.sort(flavors, comparator);
2427 return flavors;
2439 DataFlavor[] flavors = new DataFlavor[flavorsSet.size()];
2440 flavorsSet.toArray(flavors);
2444 Arrays.sort(flavors, comparator);
2445 return flavors;
2719 * An IndexedComparator which compares two DataFlavors. For text flavors,
2721 * DataFlavor.selectBestTextFlavor. For non-text flavors, unknown
2725 * most descriptive one. For flavors which are otherwise equal, the
2726 * flavors' native formats are compared, with greater long values
2920 // 1. Both flavors are stringFlavor, in which case the