Lines Matching defs:is

5  * This code is free software; you can redistribute it and/or modify it
11 * This code is distributed in the hope that it will be useful, but WITHOUT
14 * version 2 for more details (a copy is included in the LICENSE file that
37 * is typically used to access data on the clipboard, or during
43 * A content type is typically referred to as a MIME type.
53 * transferred. In other words, the representation class is the type of
55 * For example, the MIME type of {@link #imageFlavor} is
57 * the primary type is {@code image}, the subtype is
58 * {@code x-java-image}, and the representation class is
59 * {@code java.awt.Image}. When {@code getTransferData} is invoked
61 * {@code java.awt.Image} is returned.
63 * against the representation class. It is up to consumers of
69 * representation class is used. See appropriate documentation for
78 * Equality of {@code DataFlavors} is determined by the primary type,
109 * the context loader (if one is present) and finally the loader specified.
114 * @exception ClassNotFoundException if class is not found
193 * (1) Its representation is an InputStream, an 8-bit based representation,
194 * while Unicode is a 16-bit character set; and (2) The charset "unicode"
195 * is not well-defined. "unicode" implies a particular platform's
217 * representation class of <code>java.util.List</code> is used.
218 * Each element of the list is required/guaranteed to be of type
227 * with this type/subtype is used, with a <code>representationClass</code>
233 * with this MIME Content-Type is required to be
249 * Constructs a new <code>DataFlavor</code>. This constructor is
251 * <code>Externalizable</code> interface. It is not
264 * <code>subType</code> or <code>representationClass</code> is null
312 * this flavor; if this parameter is <code>null</code>
313 * then the value of the the MIME Content Type is used
314 * @exception NullPointerException if <code>representationClass</code> is null
330 * If the <code>mimeType</code> is
332 * the result is the same as calling
342 * "class=" parameter, or if the class is not successfully
344 * is thrown
346 * this flavor; if this parameter is <code>null</code>
347 * then the value of the the MIME Content Type is used
348 * @exception IllegalArgumentException if <code>mimeType</code> is
349 * invalid or if the class is not successfully loaded
350 * @exception NullPointerException if <code>mimeType</code> is null
373 * If the mimeType is
375 * the result is the same as calling
387 * @exception ClassNotFoundException if the class is not loaded
388 * @exception IllegalArgumentException if <code>mimeType</code> is
390 * @exception NullPointerException if <code>mimeType</code> is null
409 * <code>java.io.InputStream</code> is used as default.
412 * if the class specified by "class=" parameter is not
414 * <code>ClassNotFoundException</code> is thrown
415 * @exception ClassNotFoundException if the class is not loaded
416 * @exception IllegalArgumentException if <code>mimeType</code> is
418 * @exception NullPointerException if <code>mimeType</code> is null
442 * @throws NullPointerException if <code>mimeType</code> is null
484 * flavor's charset is also included. See <code>selectBestTextFlavor</code>
606 * check whether the parameter is explicitly listed in an arbitrarily
609 * parameter and will not check again. If the parameter is not explicitly
612 * this check is performed on an arbitrarily chosen
615 * the charset parameter if it is supported by that MIME type. Developers
637 * representation is one of the four explicitly listed, then one of those
659 * if <code>availableFlavors</code> is <code>null</code>,
692 * <code>DataFlavor</code> is worse than, equal to, or better than the
701 * argument is worse, equal to, or better than the second
702 * @throws ClassCastException if either of the arguments is not an
704 * @throws NullPointerException if either of the arguments is
738 * if this method is called for such a flavor, this method will treat the
750 * is not one of the seven listed above
753 * @exception NullPointerException if the <code>Transferable</code> is
756 * is <code>java.io.InputStream</code>,
758 * this flavor's encoding is not supported by this
805 throw new IllegalArgumentException("transfer data is not Reader, String, CharBuffer, char array, InputStream, ByteBuffer, or byte array");
825 * is requested.
828 * is requested
868 * if there is no associated value
892 * The equals comparison for the {@code DataFlavor} class is implemented
895 * equal. Additionally, if the primary type is "text", the subtype denotes
897 * representation class is not <code>java.io.Reader</code>,
900 * If a charset is not explicitly specified for one or both
901 * <code>DataFlavor</code>s, the platform default encoding is assumed. See
906 * @return <code>true</code> if <code>that</code> is equivalent to this
921 * @return <code>true</code> if <code>that</code> is equivalent to this
981 * <code>String</code> and <code>representationClass</code> is
989 * @return true if the String (MimeType) is equal; false otherwise or if
990 * {@code s} is {@code null}
1003 * that matches <code>DataFlavor.equals(String)</code>, it is not
1004 * guaranteed that <code>DataFlavor</code>'s hash code is equal
1024 // subTypes is '*', regardless of the other subType.
1051 * @return <code>true</code> if <code>that</code> is equivalent to this
1062 * is equivalent to the MIME type of this <code>DataFlavor</code>.
1066 * @return true if the string representation of the MIME type passed in is
1069 * @throws NullPointerException if mimeType is <code>null</code>
1072 // JCK Test DataFlavor0117: if 'mimeType' is null, throw NPE
1141 * <code>DataFlavor</code> is <code>java.io.Reader</code> or a subclass
1152 * <code>DataFlavor</code> is <code>java.nio.CharBuffer</code> or a
1163 * <code>DataFlavor</code> is <code>java.nio.ByteBuffer</code> or a
1182 * Returns true if the representation class is <code>Remote</code>.
1183 * @return true if the representation class is <code>Remote</code>
1231 * Returns whether this <code>DataFlavor</code> is a valid text flavor for
1241 * <code>[B</code>. If the representation is
1245 * is not specified, then the platform default charset, which is always
1246 * supported, is assumed.
1255 * @return <code>true</code> if this <code>DataFlavor</code> is a valid
1285 public synchronized void readExternal(ObjectInput is) throws IOException , ClassNotFoundException {
1287 mimeType = (MimeType)is.readObject();
1301 representationClass = (Class)is.readObject();
1335 * This method is called for each parameter name/value pair and should
1338 * This method is never invoked by this implementation from 1.1 onwards.
1349 * the opportunity to change how the normalization of MIME types is
1354 * This method is never invoked by this implementation from 1.1 onwards.