javax.print.attribute.standard
public final class Destination extends URISyntax implements PrintJobAttribute, 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 FormConstructor and Description |
---|
Destination(URI uri)
Constructs a
Destination object. |
public Destination(URI uri)
Destination
object.uri
- the URI of the output destination.NullPointerException
- if the given uri is null.public boolean equals(Object obj)
equals
in class URISyntax
obj
- the object to testtrue
if both objects are equal,
false
otherwise.Object.hashCode()
public Class<? extends Attribute> getCategory()
getCategory
in interface Attribute
Destination
itself.