public final class Destination extends javax.print.attribute.URISyntax implements javax.print.attribute.PrintJobAttribute, javax.print.attribute.PrintRequestAttribute
Destination attribute provides a URI for an alternate
destination of the printing output.
As not an IPP attribute many print services will not support this attribute and only provide the printer device as a destination. An alternate output destination would be a file on the local harddisk given as a file scheme URI.
If a print service does not support the destination attributes URI it
will throw a PrintException. This exception may further implement the
interface URIException.
IPP Compatibility: Destination is not an IPP 1.1 attribute.
PrintException,
URIException,
Serialized Form| Constructor and Description |
|---|
Destination(java.net.URI uri)
Constructs a
Destination object. |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object obj)
Tests if the given object is equal to this object.
|
java.lang.Class<? extends javax.print.attribute.Attribute> |
getCategory()
Returns category of this class.
|
java.lang.String |
getName()
Returns the name of this attribute.
|
public Destination(java.net.URI uri)
Destination object.uri - the URI of the output destination.java.lang.NullPointerException - if the given uri is null.public boolean equals(java.lang.Object obj)
equals in class javax.print.attribute.URISyntaxobj - the object to testtrue if both objects are equal,
false otherwise.Object.hashCode()public java.lang.Class<? extends javax.print.attribute.Attribute> getCategory()
getCategory in interface javax.print.attribute.AttributeDestination itself.public java.lang.String getName()
getName in interface javax.print.attribute.Attribute