< prev index next >

src/java.desktop/share/classes/javax/print/attribute/standard/Destination.java

Print this page

        

*** 38,48 **** * other than the printer device, and so will not support this attribute. * <p> * A common use for this attribute will be applications which want * to redirect output to a local disk file : eg."file:out.prn". * Note that proper construction of "file:" scheme URI instances should ! * be performed using the <code>toURI()</code> method of class * {@link java.io.File File}. * See the documentation on that class for more information. * <p> * If a destination URI is specified in a PrintRequest and it is not * accessible for output by the PrintService, a PrintException will be thrown. --- 38,48 ---- * other than the printer device, and so will not support this attribute. * <p> * A common use for this attribute will be applications which want * to redirect output to a local disk file : eg."file:out.prn". * Note that proper construction of "file:" scheme URI instances should ! * be performed using the {@code toURI()} method of class * {@link java.io.File File}. * See the documentation on that class for more information. * <p> * If a destination URI is specified in a PrintRequest and it is not * accessible for output by the PrintService, a PrintException will be thrown.
*** 62,72 **** * Constructs a new destination attribute with the specified URI. * * @param uri URI. * * @exception NullPointerException ! * (unchecked exception) Thrown if <CODE>uri</CODE> is null. */ public Destination(URI uri) { super (uri); } --- 62,72 ---- * Constructs a new destination attribute with the specified URI. * * @param uri URI. * * @exception NullPointerException ! * (unchecked exception) Thrown if {@code uri} is null. */ public Destination(URI uri) { super (uri); }
*** 74,94 **** * Returns whether this destination attribute is equivalent to the * passed in object. To be equivalent, all of the following conditions * must be true: * <OL TYPE=1> * <LI> ! * <CODE>object</CODE> is not null. * <LI> ! * <CODE>object</CODE> is an instance of class Destination. * <LI> ! * This destination attribute's URI and <CODE>object</CODE>'s URI * are equal. * </OL> * * @param object Object to compare to. * ! * @return True if <CODE>object</CODE> is equivalent to this destination * attribute, false otherwise. */ public boolean equals(Object object) { return (super.equals(object) && object instanceof Destination); --- 74,94 ---- * Returns whether this destination attribute is equivalent to the * passed in object. To be equivalent, all of the following conditions * must be true: * <OL TYPE=1> * <LI> ! * {@code object} is not null. * <LI> ! * {@code object} is an instance of class Destination. * <LI> ! * This destination attribute's URI and {@code object}'s URI * are equal. * </OL> * * @param object Object to compare to. * ! * @return True if {@code object} is equivalent to this destination * attribute, false otherwise. */ public boolean equals(Object object) { return (super.equals(object) && object instanceof Destination);
*** 109,119 **** /** * Get the name of the category of which this attribute value is an * instance. * <P> ! * For class Destination, the category name is <CODE>"spool-data-destination"</CODE>. * * @return Attribute category name. */ public final String getName() { return "spool-data-destination"; --- 109,119 ---- /** * Get the name of the category of which this attribute value is an * instance. * <P> ! * For class Destination, the category name is {@code "spool-data-destination"}. * * @return Attribute category name. */ public final String getName() { return "spool-data-destination";
< prev index next >