javax.print.attribute.standard

Class Destination

public final class Destination extends URISyntax implements PrintJobAttribute, PrintRequestAttribute

The 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 {@link javax.print.URIException}.

IPP Compatibility: Destination is not an IPP 1.1 attribute.

See Also: PrintException

Constructor Summary
Destination(URI uri)
Constructs a Destination object.
Method Summary
booleanequals(Object obj)
Tests if the given object is equal to this object.
Class<? extends Attribute>getCategory()
Returns category of this class.
StringgetName()
Returns the name of this attribute.

Constructor Detail

Destination

public Destination(URI uri)
Constructs a Destination object.

Parameters: uri the URI of the output destination.

Throws: NullPointerException if the given uri is null.

Method Detail

equals

public boolean equals(Object obj)
Tests if the given object is equal to this object.

Parameters: obj the object to test

Returns: true if both objects are equal, false otherwise.

getCategory

public Class<? extends Attribute> getCategory()
Returns category of this class.

Returns: The class Destination itself.

getName

public String getName()
Returns the name of this attribute.

Returns: The name "spool-data-destination"